Question: Programming in C. If the user inputs negative number for currency it should say negative currency value and if the user inputs a number that's
Programming in C. If the user inputs negative number for currency it should say "negative currency value" and if the user inputs a number that's not 1 or 2 for conversion it should say "Invalid menu choice".

4. Currency Converter Write a simple program that can convert between Euros, Dollars, Yen, and Pounds To keep things simple we will only convert from Dollars or Euros to the other currencies Your program will look something like this Input currency value to convert: 100 Enter 1 if converting from Dollars or 2 if converting from EuroS Choice: 1 Converting to: 1 (Euros) Converting to: 2 (Dollars) Converting to: 3 (Yen) Converting to: 4 (Pounds) Choice: 1 100 dollars is equal to 85.00 euros For getting correct output, you *MUST* use the following conversion factors. Use of any other currency conversion will not be accepted 1 dollar 0.85 curo 1 dollar 110.03 yern 1 dollar1 dollar 1 dollar 0.78 pound 1 euro 1 euro 1 curo 129.47 yen 1 euro- 1.18 dollar 1 euro-0.91 pound
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
