Question
C# QUESTION PLS HELP Change Counter Instructions You are on a team writing code to run a self-service checkout for grocery stores. Your module accepts
C# QUESTION PLS HELP
Change Counter | |
Instructions | |
You are on a team writing code to run a self-service checkout for grocery stores. Your module accepts the amount of change for the customer and determines how to issue that amount in currency. The machine accepts all legal currency denominations up to one hundred dollar bills and returns twenty, ten, five, and one dollar bills, quarter, dime, nickel, and penny coins. Write a program that accepts an amount of money and outputs the number of bills and coins in each denomination to equal that amount. The program should continue until the user chooses to end it (by entering 0 as the dollar amount needed for example). Example: Enter the dollar amount needed: $14.31 To give change in the amount $14.31 Dispense 1 Ten, 4 Ones, 1 Quarter, 1 Nickel, 1 Penny Enter the dollar amount needed: $1.62 To give change in the amount $1.62 Dispense 1 One, 2 Quarters, 1 Dime, 2 Pennies |
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