Using Python, create a program that asks the user for a non-negative amount of money (in Pesos). Once the user has given the amount, the program should print a menu of actions to be done on the input. The possible actions are the following: 1) Convert to US Dollars (51.07 Pesos = 1 Dollar) 2) Convert to Japanese Yen (1 Peso = 2.24 Yen) 3) Convert to Euro (1 Peso = 0.017 Euro) 4) Compute for Savings - The user will be asked how many % of the initial input will be saved and to what currency will the savings be converted (Must use functions created for 1-3 to convert).   Your program should have at least six functions 1) A function for the menu 2) A function for asking the initial input 3) Convert to US Dollars 4) Convert to Japanese Yen 5) Convert to Euro 6) Compute for Savings (Can ask for additional input. Will have to use functions 3-5 for conversion)   DO NOT USE GLOBAL VARIABLES for your functions. Make sure to pass your inputs as parameters. Then return the result.   ------------------------------------------------------------------------------------------------------------------ Sample run: Enter amount: 100 Convert to Dollars Convert to Yen Convert to Euro Compute for Savings Exit Enter your choice:1   100 pesos in US Dollars is 1.96 Convert to Dollars Convert to Yen Convert to Euro Compute for Savings Exit Enter your choice:2 100 pesos in Japanese Yen is 224.31 Convert to Dollars Convert to Yen Convert to Euro Compute for Savings Exit Enter your choice:3 100 pesos in Euro is 1.74 Convert to Dollars Convert to Yen Convert to Euro Compute for Savings Exit Enter your choice:4 How much in % would you like to save? 30 In what currency would you like to convert to? ([1] Dollars [2] Yen [3] Euro) 1 Your savings is 0.62 Convert to Dollars Convert to Yen Convert to Euro Compute for Savings Exit Enter your choice:0

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Using Python, create a program that asks the user for a non-negative amount of money (in Pesos). Once the user has given the amount, the program should print a menu of actions to be done on the input.

The possible actions are the following:

1) Convert to US Dollars (51.07 Pesos = 1 Dollar)

2) Convert to Japanese Yen (1 Peso = 2.24 Yen)

3) Convert to Euro (1 Peso = 0.017 Euro)

4) Compute for Savings - The user will be asked how many % of the initial input will be saved and to what currency will the savings be converted (Must use functions created for 1-3 to convert).

 

Your program should have at least six functions

1) A function for the menu

2) A function for asking the initial input

3) Convert to US Dollars

4) Convert to Japanese Yen

5) Convert to Euro

6) Compute for Savings (Can ask for additional input. Will have to use functions 3-5 for conversion)

 

DO NOT USE GLOBAL VARIABLES for your functions. Make sure to pass your inputs as parameters. Then return the result.

 

------------------------------------------------------------------------------------------------------------------

Sample run:

Enter amount: 100

  1. Convert to Dollars
  2. Convert to Yen
  3. Convert to Euro
  4. Compute for Savings
  5. Exit

Enter your choice:1

 

100 pesos in US Dollars is 1.96

  1. Convert to Dollars
  2. Convert to Yen
  3. Convert to Euro
  4. Compute for Savings
  5. Exit

Enter your choice:2

100 pesos in Japanese Yen is 224.31

  1. Convert to Dollars
  2. Convert to Yen
  3. Convert to Euro
  4. Compute for Savings
  5. Exit

Enter your choice:3

100 pesos in Euro is 1.74

  1. Convert to Dollars
  2. Convert to Yen
  3. Convert to Euro
  4. Compute for Savings
  5. Exit

Enter your choice:4

How much in % would you like to save? 30

In what currency would you like to convert to? ([1] Dollars [2] Yen [3] Euro) 1

Your savings is 0.62

  1. Convert to Dollars
  2. Convert to Yen
  3. Convert to Euro
  4. Compute for Savings
  5. Exit

Enter your choice:0

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY