Write a c program utilizing printf and scanf


Problem

Write a C program utilizing printf and scanf (do not use cout or cin) that does the following:

A. Using the division algorithm introduced in class to convert between base 10 and any other number base:

B. Prompts the user to enter an unsigned integer in base 10 (decimal) from the keyboard.

C. Prompts the user a new base ( greater than or equal to 2 and less than or equal to 36** ) to convert the base 10 unsigned integer into (do not allow values less than 2 or greater than 36, if the user enters a value out of this range, prompt them to re-enter a base).

D. Constructs a string of digits that represents the user entered base 10 integer in the user entered new base.

E. Output the constructed string (do this as a char array of 32 digits instead of the C++ string class [makes possible converting to Assembly Language much easier]).

** for bases greater than 10, you will want to follow the notation that hexadecimal does (10=A, 11=B, 12=C, 13=D, 14=E, 15=F ) meaning that a base 36 number system, the number 35 would be represented with Z.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program utilizing printf and scanf
Reference No:- TGS03331574

Expected delivery within 24 Hours