0:00
Hello.
00:01
For problem 18, you're going to be writing a program that will convert currency.
00:08
So you need to start by receiving the exchange rate and the direction of the conversion.
00:15
So the rate is going to just be equal to eval of input, enter the exchange rate from dollars to rmb.
00:25
And the direction is going to be equal to eval of input.
00:29
Enter 0 to.
00:30
Convert dollars to r &b and one for vice versa.
00:35
Once we have that information, we want to do the conversion and display the result.
00:42
So we need to first get the amount to convert, but we want to properly display what the units are.
00:52
So if direction is zero, the amount will be evout input, enter the dollar amount.
00:57
But if the direction is one, the amount will be ev input, enter the rmb amount.
01:06
We also want to have a case for incorrect input.
01:11
So if direction is something other than zero or one, it's going to print that the input was incorrect.
01:20
Once we have our amount, we just need to then print the converted amount...