Question: Currency Conversion Write a program that will convert US Dollars to British Pounds ( GBP ) and Japanese ( JPY ) . 1 0 %
Currency Conversion
Write a program that will convert US Dollars to British Pounds GBP and Japanese JPY of the total amount of
US Dollars will be taken as an exchange fee. For the rest of the US Dollars, half will be changed to British Pounds and
the other half to JPY Assume the exchange rate is: US Dollar British Pound; US Dollar The
program should ask the user to input the amount of US dollars then print an appropriate output. Both GBP and dollar
units should be output to two decimal points. However, Yen are not divisible units so its output should only be a
whole number.
An example run would look something like the following:
Please input the total amount of US Dollars:
Fee :$
You get:
Instructions
Create a new source file named dollar.c
Write your complete program in this source file, be sure to choose appropriate data types for your variables
Compile and run your program as before:
dollar.
Test your program and answer the questions in your worksheet
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
