Create a program that displays the result of a sales transaction. The calculation requires three numbers. The first number represents the product price. The second number is the salesperson commission. These two numbers should be added together. The third value represents a customer discount; subtract this third from the result of the addition. Create two classes, The first class, transaction contains the method to do the calculation. The three numbers are passed to this method by a statement in the other class. The display is in the class that calls the calculation method.
Submit both code (soft copy) and output (screen shot

Please show us the code you have so far and where you're stuck, what isn't working, or what is specifically confusing you about this homework assignment.

Also, you tagged your question c, c++, and java ... what language are you currently studying?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.