Question: AIET O points-C++Program) xclude any existing source code files that may already be in your IDE project and add a n aming it C1A1E1 main.cpp.
AIET O points-C++Program) xclude any existing source code files that may already be in your IDE project and add a n aming it C1A1E1 main.cpp. Write a program in that file to display two input values in oct exadecimal, and decimal. Your program must: one, 1. not use cout more than twice: 2. not use cin more than once: 3. not use a looping statement: 4. not test anything 5 use cout to prompt the user to enter two space-separated positive integer numeric values. The first must be in hexadecimal while the second must be in octal. Do not precede the values with 0x or 0 6. use cin to obtain and store and store those values in two type int variables: cout to display the first input value in hexadecimal, octal, and decimal in the format shown , and the same cout to display the second input value in octal w. D represents the 7. use on the first line below hexadecimal, and decimal in the format shown on the second line belo decimal value. O represents the octal value, and H represents the hexade ue: H hexadecimal 0 octal- D decimal o octal H hexadecimal D decima.l For example, when run on a machine having a 32-bit type int a user input of 7 7 produced: 7 hexadecimal7 octal7 decimal 7 octal 7 hexadecimal 7 decimal a user input of 1A 17 produced: 1a hexadecimal 32 octal 26 decimal 17 octal -f hexadecimal15 decimal a user input of abc 777 produced abc hexadecimal 5274 octal 2748 decimal 777 octal 1ff hexadecimal511 decimal Note that cout and printf both display integer octal and hexadecimal values as unsigned, which is the reason you will get "strange" results if you enter a negative value. Manually re-run your program several times, testing with at least the following 3 input value pairs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
