Write appropriate constructor that accepts the name of each


Write a java program to create customer's bill for a company. The company sells only five types of products: TV, VCR, CD Player, IPod, and Remote Control. The sales for each type of product for the current week are: $12500.55, $2250.00, $2350.00, $1450.50, and $29.95, .

Write a class called Sales. Convince yourself that this class requires two types of variables - instance variables, and class variables. Write appropriate constructor that accepts the name of each product and its associated sales amount for the current week. Provide instance methods to return the value for each instance variable named; also, provide class methods for each class variable used.

Solution Preview :

Prepared by a verified Expert
Mathematics: Write appropriate constructor that accepts the name of each
Reference No:- TGS02203739

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)