(solution) Write the commands to do the following: (a) Convert a number of base 10 to a number of base 8 (b)…