Question: 2. Write a program in C++ that prompts the user to enter a hexadecimal digit or an integer between 0-15 and display its corresponding decimal
2. Write a program in C++ that prompts the user to enter a hexadecimal digit or an integer between 0-15 and display its corresponding decimal number or hex decimal number. The program must first ask the user to choose what kind of conversion and then ask the user to enter a number to convert. Hint: Please refer to Programming Questions 4.13 and 4.14 for possible example and output format. (20 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
