h7ex2: Basic C++ programming
You cannot submit for this problem because the homework's deadline is due.
Description
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
Format
Files
You should submit a tar file containing a c++ source file ex2.cpp
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
Sample 1
Input
1
100
6
Output
620.350
Limitation
1s, 32MiB for each test case.
Assignment 7
- Status
- Finished
- Problems
- 4
- Open Since
- 2018-07-17 00:00
- DDL
- 2018-07-26 14:00
- Extension
- 240.0 hour(s)