Question: Objective: Using basic operations for input and output (cin and cout) Using basic data types (int, double, etc.) Using selection statement (if else) Using repetition
Objective: Using basic operations for input and output (cin and cout) Using basic data types (int, double, etc.) Using selection statement (if else) Using repetition statement (loops) Due Date: Sunday, March 11, 2018 at the beginning of the lecture No late submissions will be accepted. If you cannot turn it in on Sunday, submit it via email a day before. Assignment Submission: Hard copy typed on a computer using C++compiler and include screenshots of your output. Notes: This assignment consists of two questions and is worth 5% of your total grade. Use proper (meaningful) naming conventions. Don't just usex, y, etc. Also, use comments to explain what you are doing. Question 1 (Worth 3 Pts.) Write a program for an ATM machine, which accepts a money amount as an integer and displays the total number of Dirham Notes (bills) in 1000, 500, 100, 50, 20, 10, and 5 denominations. For example, when user enters AED 1575, the results would be as follows: 1000: 1 500: 1 100: 0 50: 1 20: 1 10: 0 For simplicity we will assume the user will always insert multiples of 5. For example, AED 742 is not a valid amount. You don't have to do anything about it. Question 2 (Worth 2 Pts.) Write a program that allows the user to insert the ages of Ali, Mark, and Fatima and then displays the name of the youngest of the three
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
