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).10% 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: 1 US Dollar =0.79 British Pound; 1 US Dollar =127.65JPY. 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: 100.00
Fee (10%):$10.00
You get:
35.55GBP
5744JPY
Instructions
Create a new source file named dollar.c
Write your complete C program in this source file, be sure to choose appropriate data types for your variables
Compile and run your program as before:
gcc dollar.c
???a.out
Test your program and answer the questions in your worksheet
Currency Conversion Write a program that will

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 Programming Questions!