Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please show input and output clearly Programming Assignment 3 (homework) CSCI 251 how much is my money worthy for program 3, you will create a
Please show input and output clearly
Programming Assignment 3 (homework) CSCI 251 how much is my money worthy for program 3, you will create a currency exchange program. The following are the seven currencies you must use and their exchange rate a British Pound: Great Britain 1 USD = 0.65 British Pounds a Yuan: China 1 USD = 6.35 Yuans a Euro France 1 USD = 0.89 Euros a Euro: Italy 1 USD = 0.89 Euros - Yen: Japan 1 USD=119.93 Yens Franc Switzerland 1 USD = 0.98 Francs a made-up currency where the country is your last name and the currency is your first name. The exchange rate is the last two digits of your student ID number. for example, for me, my country would be Xiong my currency Huland the exchange rate 1 USD (United States Dollar) = 0.14 Huis Prompt the user for both the amount of USD as well as the country for which they would like to exchange currency Program Requirements 1. You must use a switch statement to determine which country to use. You should accept a all variations of upper and lowercase (hint: use the lower or upper character string function) Within the case statement, determine the exchange rate. 2. List countries in alphabetical order. 3. You may only use ONE case statement for the European Union countries, France and Italy. 4, include an otherwise clause for countries whose currency cannot be determined 5. Output both the USD and foreign currency (keep 2 decimal places for both), including units. Name your program currency your LastName.m include header comments formatted exactly as shown below but with your name, student ID, and section number (i.e, these comments should be the FIRST LINES in your script). Be sure to include the Honor Code statement. Your electronic submission of the program file will represent your endorsement of the Honor Code statement. K Course: CSCI 251, Section X K Student Name: Jane Doe K Student ID: 12345678 * Programming Assignment 3 homework K Due Date: In keeping with the Honor Code of UM, I have neither Kiven nor received assistance from anyone other than the instructor. X Program Description Before each significant step, provide a comment explaining the step (do not comment every line of code)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started