•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 374,163 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,272 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 209 | Replies: 3
•
•
Join Date: May 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
You are required to provide an algorithm to operate a cash register that will keep count of all withdrawals and deposits made during a day’s business operation. For simplicity, this cash register will handle notes with the value of $50, $20, $10 and $5 only, and coins with value of $1, 20 cents and 10 cents only. The cash register must know the total of each denomination in the register at the start of the day. At closing time, the cash register must print out the totals of each denomination still in the register; the general total of money that is in the register; the total deposits and the total withdrawals for the day.
Your solution will require the user to enter the starting number of each note and coin present in the register at the start of the day. The algorithm should also request the type of transaction and amount each time. If it is a deposit then the number of each bill and coin needs to be known. In the case of a withdrawal, the operator must calculate the number of each denomination to be taken out of the register. The cash register cannot hold a balance of less than 10 cents. (HINT: totals of everything must be kept at all times)
Your solution will require the user to enter the starting number of each note and coin present in the register at the start of the day. The algorithm should also request the type of transaction and amount each time. If it is a deposit then the number of each bill and coin needs to be known. In the case of a withdrawal, the operator must calculate the number of each denomination to be taken out of the register. The cash register cannot hold a balance of less than 10 cents. (HINT: totals of everything must be kept at all times)
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
Similar Threads
- NEED Help? Cash Register modules (Computer Science and Software Design)
- C++ Cash Register - Help Getting Started (C++)
- RANT: McDonalds has fallen (Geeks' Lounge)
- simple cash register (pos) problem - please help!! (VB.NET)
- VB cash register needed (VB.NET)
- Adding Totals from Listbox DB (DAO) (Visual Basic 4 / 5 / 6)
- [Help] Looking For A... (Monitors, Displays and Video Cards)
Other Threads in the C++ Forum
- Previous Thread: Brainteaser codes
- Next Thread: function problem



Threaded Mode