Question: Ex. 1- Simple I/O in C++ Write a short C++ program which prompts the user for the current year, the user's current age, and another

 Ex. 1- Simple I/O in C++ Write a short C++ program

Ex. 1- Simple I/O in C++ Write a short C++ program which prompts the user for the current year, the user's current age, and another year. The program should calculate the age that the user was or will be in the second year entered Input: three lines, the current year on the first, the current age on the second, and the other year on the third Output: one line showing the calculated age PART 2 Write a short C++ program which displays a menu for the user to choose between converting US dollars into Chinese RMB and Chinese RMB into US dollars. The user inputs the amount and the precision, then the program display the corresponding result. Note: use 1.00 USD = 6.20350 CNY as the exchange rate Precision means "how many digit are expected in the final result", e.g. 123.456 has precision 6 Input: three lines, the first one being 1 for USD or 2 for CNY, the amount on the second one, and the precision on the third one; Output: one line showing the result of the conversion

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!