Question: 8 Update the following program. C++ data structures and algorithms Instructions: code to be update: //Rate conversion program #include #include //for exit function using namespace
8 Update the following program. C++ data structures and algorithms Instructions:

code to be update:
//Rate conversion program #include
//function prototypes float dollar_to_yen(int dollar); float dollar_to_euro(int dollar); float dollar_to_peso(int dollar);
int main() { int menu,amount; float yen, euro, peso; cout>amount; cout>menu;
switch(menu) { case 1: yen = dollar_to_yen(amount); cout
return 0; }//end of main function
float dollar_to_yen(int dollar) { return 113.26*dollar; }
float dollar_to_euro(int dollar) { return 0.93*dollar; }
float dollar_to_peso(int dollar) { return dollar*21.03; }
Update Assignment 1 Task 2. Pass the values by reference to complete the programming tasks. Using multiple functions and receiving user input. In your main function use a switch case to create a menu for the user. Create a program that converts user input in Dollars to Euro, Yen, or Peso. Prompt the user to enter amount If user input is less than or equal to zero prompt the user and stop the program. Create 4 Functions: 1) Converts and outputs conversion in Yen 2) Converts and outputs conversion in Euro 30 Converts and outputs conversion in Peso 4) Converts and outputs all 3 currencies. Update the program to accept user input for dollar amount to be converted. Attach Snipping photos of all 4 functions being executed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
