Question: C++ lanuage only Part 1 Write a program that uses a recursive function to convert a number in decimal to a given base b, where

C++ lanuage only Part 1 Write a program that uses a recursive function to convert a number in decimal to a given base b, where b is 2, 8, or 16. Your program should prompt the user to enter the number in decimal and the desired base. Test your program on the following data: 9098 and base 8 692 and base 2 753 and base 16 Sample output: Please enter a number? 4598 Please enter a base between 2 and 16? 8 The decimal number 4598 is equal to 10766 in base 8. Please enter a number? 25354 Please enter a base between 2 and 16? 16 The decimal number 4598 is equal to 630A in base 16.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!