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

Edited by 00musdan: Help explain task

3
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by 00musdan
0

Check this out

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

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?

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...

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;
        }
    }

}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.