Question: all T-Mobile 1:02 PM mming Assignment 3 S17-currency ] Open with Print cscI 251 How much is my money worth? For program 3, you will
all T-Mobile 1:02 PM mming Assignment 3 S17-currency ] Open with Print cscI 251 How much is my money worth? For program 3, you will create a currency exchange program The following are the seven currencies you must use and their exchange rate 1 USD 0.66 British Pounds British Pound: Great Britain Yuan : China Euro : France Euro: Italy Yen: Japan Franc : Switzerland 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 1 USD . 6.35 Yuans USD 0.89 Euros USD 0.89 Euros USD 119.93 Yens 1 USD . 0.98 Francs * For example, for me, my country would be Xiong, my currency Hul, and 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 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. 4. 5. You may only use ONE case statement for the European Union countries, France and Italy Include an otherwise clause for countries whose currency cannot be determined Output both the USD and foreign currency (keep Zdecimalplaces for both), including units. Name your program currency_ yourLastName.m Include header comments formatted exactly as shown below but with your name, student ID, and section number 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. % Course. CSCI 251, Section % Student Name: Jane Doe Student ID: 12345678 % Programming Assignment 3 homework % Due Date: 96 In keeping with the Honor Code of UM, I have neither % given nor received assistance from anyone other than the instructor. % Program Description: ep, provide a comment explaining the step (do not comment every line of Before each significant code)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
