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, respectively.
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.
Get Free Quote!
343 Experts Online