473,385 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CASH REGISTER. How?

1
Uhmm. I need help! I need a code in our case study. And I don't know how to start it. Please, someone help. I need to pass this on thursday, August 21 2014. Huhu :'( I really don't know. I'm no IT/CompScie or whatever computer related courses but I have a subject Programming. We did not taught very well in our Prog1 that is why I dont know this. Please someone help me :(

It is to make a cash register.
This is the criteria:
***Requirements for the cash register case study.***

Your program should produce the following:

1. Display the following screens:

a. Offered Menu with its price. (Maximum of 10 menus ONLY)

b. Summary of order displaying the total amount and the payment of costumer.

c. Actual receipt displayed on screen.

2. Computes the appropriate tax and tax exceptions for senior citizen, total amount to be paid by the customer and change.

3. Program will only terminate when the user answers YES if asks to exit the program.

I am very thankful to someone who will help me.
Aug 14 '14 #1
1 2577
weaknessforcats
9,208 Expert Mod 8TB
A program is just a collection of functions. You write the functions one at a time.

For example, there is a tax calculation. Do that one first. It needs an argument for the purchase price and returns the tax.

Next, write the receipt function. It needs arguments for the purchase price, the tax and the change. This function displays the receipt on the screen. This is a display function so it should do calculations, like figuring out the change.

AT this point write a main() that calls these two functions with hard-coded values for the arguments so you can check that they work.

Next, write the purchase function. It needs argument for he purchase price, the customer's money. The function calls the tax function to get the tax and then calculates the total purchase. Then it calculates the change and then calls the receipt function to display the receipt on the screen.

This is the core of the cash register. The other items, like the menu of things to buy, can be added later after the purchase function is written and tested.

Post again when you have this part working.
Aug 14 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ryan Q. | last post by:
It works, i'm just posting it hoping someone could do better. print '' print ' *** CASH REGISTER ***' print ' PRESS 0 AND THEN ENTER TO TOTAL' b = 1 t = 0 v = 0 while b != 0: a = 1
1
by: Earl Anderson | last post by:
My brother is in the process of purchasing a neighborhood dry cleaners store. Having seen some of the process applications I've written in MS Access, he asked me if I could develop an application...
0
by: marko | last post by:
Hi all! I'm trying to make a access database for my fathers shop and I'm pretty stuck so if anyone could help me that would mean a great deal for me! I would like to make a database in wich the...
2
by: wahid_kalo | last post by:
Hi There I Have Finished A Point Of Sale Program On Access, I Still Need To ControlThe Cash Register Drawer By Code. In The Manual It Is Mentionned To Open The Drawer through com1 under qbasic...
1
by: Gen | last post by:
Hello there, I am a leader of a team, developing business application based on the ASP.NET platform. Now we need to add cash register support to the application and it seems to be a bit of a...
2
by: cwilber3249 | last post by:
I am tryign to make this code for a class i have and i can get it to compile and what not but it doesnt post the right change. Heres is my code, Please help. Its very basic and i think i am just...
1
by: vbsoft | last post by:
How do i develop a CASH REGISTER PROGRAM IN VB.NET and that user can put it on a CHIP I NEED UR HELP.
2
Fary4u
by: Fary4u | last post by:
Hi i'm trying to develop a software in VB for Cash Register - Till Operator the only problem is send amount using serial port that can display the amount to pay. i've got this machine Epos...
3
by: Dresse | last post by:
Hello I'm wondering what the easiest solution is for logging each sale that has been made. I just need to keep track of the total cost per sale and at the end of the day I want to make a report...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.