Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Programming Lab #2-Cafeteria Ladies Introduction A new semester has begun and that culinary giant, the College of Staten Island cafeteria, and is once again
C++ Programming
Lab #2-Cafeteria Ladies Introduction A new semester has begun and that culinary giant, the College of Staten Island cafeteria, and is once again serving gourmet fare. The cafeteria personnel have decided that in order to help people quickly pay for their food, a new computer pro price of a customer's food and how much money the customer pays the cashier. To make things even easier (for the cashier, not for you!) it tells the cashier exactly how many dollar bills, quarters, dimes, nickels, and pennies are to be given back to the customer. It does this so that the least number of each is given in change gram is needed. This program will tell the cashier the change needed given the total For Example If the bill is $1.33 and the student pays with $10.00, the program will display: Enter the amount of the check: $1.33 Enter the amount the customer paid: $10.00 The change is $8.67 8 dollar bills 2 quarter(s) 1 dime(s) 1 nickel(s) 3 penny(s) ram Wil 1. 2. 3. prompt for a check amount prompt for the amount paid print the results as above uality Assuran Test your program using the following inputs 1. Check: $11.67 2. Check: $5.68 3. Select one of your own Amount Paid: $15.00 Amount Paid: $20.00 Hint: Convert everything to pennies IMPORTANT- Use good program style and make sure you comment your program! HAND IN- Your source code and the output generated from your quality assurance test(s)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