Sam runs a local musical equipment store in your neighbourhood. He has contracted you to create an interactive application that will assist him with customer purchase . Create a class named Customer purchase that will contain get and set methods for a customer number, first name, surname, product , price and quantity. Create separate class called printing that will include a method called Print Details , that will print the customer invoice. In the printing class include another method called Purchase Report which will display the following information: REPORT OPTION PERCENTAGE TAX 15% COMMISSION 8.5% DISCOUNT 10% TOTAL (Price + Tax) - (Discount + Commission) In your main class, capture all the customer purchase details required to produce the reports Use java language
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Sam runs a local musical equipment store in your neighbourhood. He has contracted you to create an interactive application that will assist him with customer purchase . Create a class named Customer purchase that will contain get and set methods for a customer number, first name, surname, product , price and quantity. Create separate class called printing that will include a method called Print Details , that will print the customer invoice. In the printing class include another method called Purchase Report which will display the following information:
REPORT OPTION | PERCENTAGE |
TAX | 15% |
COMMISSION | 8.5% |
DISCOUNT | 10% |
TOTAL | (Price + Tax) - (Discount + Commission) |
In your main class, capture all the customer purchase details required to produce the reports
Use java language
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images