Java program to create a customer’s bill for a company

computer science

Description

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.


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.