| | |
Cash Register Program
![]() |
•
•
Join Date: Nov 2009
Posts: 3
Reputation:
Solved Threads: 0
Hello everyone i know very little of Java and need help with a project. If anyone could send some code or even help explain where i should start i would very much appreciate it. This is what the teacher gave us for the project outline on what the code should contain.
o Store
o Products (3 classes)
Attributes
• Price
• Description
• UPC
• Inventory
• Taxable(y/n)
Methods
• Purchase(qty)
o Return price
o Decrement inventory
• Getprice
• Getdescription
• Getupc
• Getquantity
• getTaxStatus
o CashRegister (Shopping Cart)
Static TAX_RATE=1.06
Static Class
Methods
• calculateTotal
• enter payment (dollar/cents)
• give change
o Currency
Static variables of currency and coin
o Main Class
Add items
Enter purchase
Enter payment
o Store
o Products (3 classes)
Attributes
• Price
• Description
• UPC
• Inventory
• Taxable(y/n)
Methods
• Purchase(qty)
o Return price
o Decrement inventory
• Getprice
• Getdescription
• Getupc
• Getquantity
• getTaxStatus
o CashRegister (Shopping Cart)
Static TAX_RATE=1.06
Static Class
Methods
• calculateTotal
• enter payment (dollar/cents)
• give change
o Currency
Static variables of currency and coin
o Main Class
Add items
Enter purchase
Enter payment
Last edited by 00musdan; Nov 16th, 2009 at 7:35 pm. Reason: Help explain task
•
•
Join Date: Nov 2009
Posts: 3
Reputation:
Solved Threads: 0
0
#3 Nov 16th, 2009
I understand that and I am very serious about this program but i do not even know where to start. If someone could help me set up this program (classes, help planning, etc.) it would be very much appreciated.
0
#4 Nov 17th, 2009
Try to better explain your problem. What you posted is difficult to quite understand.
Also, don't tell me that your teacher hasn't showed how to write a single class with attributes and get/set methods. Or don't you have a book or notes with examples?
Also, don't tell me that your teacher hasn't showed how to write a single class with attributes and get/set methods. Or don't you have a book or notes with examples?
I murdered thousands for the Emperor and he gave me nothing except his damning silence. Now his lapdogs yap for every life I take, while the gods promise me the galaxy.
- Svane Vulfbad -
- Svane Vulfbad -
•
•
Join Date: Nov 2009
Posts: 3
Reputation:
Solved Threads: 0
SO far i have this for the cash register part of the program.... its not much and im getting a few errors and im not sure why...
Java Syntax (Toggle Plain Text)
package cashregister; public class CashRegister { public CashRegister(double purchase, double payment){ purch=purchase; pmt=payment; double giveChange(double price, double pmt){ double change = pmt-price; return pay; } } }
![]() |
Similar Threads
- Cash Register / c++ / loops issue (C++)
- Need help with decimal program. (C++)
- C++ Cash register (C++)
- cash register help..!! (C++)
- NEED Help? Cash Register modules (Computer Science)
- C++ Cash Register - Help Getting Started (C++)
- 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)
Other Threads in the Java Forum
- Previous Thread: beginner help with java!! student class
- Next Thread: drJava won't open!
Views: 557 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet arguments array arrays automation binary bluetooth c++ chat class classes client code combobox compiler component converter coordinates data database db design desktop detection eclipse error event exception fast file fractal game givemetehcodez graphics gridlayout gui helpwithhomework html image inheritance input integer interface j2me java javaprojects jmf jni jpanel jtable jtextfield julia list loop map method methods mobile netbeans newbie number object objects os pattern phone print problem program programming project read recursion regex remove robot scanner screen search server set size sms sort sql string swing test text threads time timer transfer tree update windows






