A total sales function that returns the monetary amount of


Create a class that represents sales of sports equipment for a sales person. Attributes are: pairs of skis sold, number of snowboards sold, tennis racquets sold, and baseball bats sold. Required methods are:

1) Default constructor with all attributes set to 0

2) Initial value constructor

3) Accessors for all attributes

4) Mutators for all attributes

5) A total sales function that returns the monetary amount of sales. Assume that each pair of skis is $800, each snowboard is $600, each tennis racquet is $400, and each baseball bat is $100.

6) A function that "subtracts" the monetary amount of sales between two sales people. The function should return an integer value.
Once the class library is created, write a main program that makes use of it. Create variables for 3 sales people. Sales person 1 sold 4 pairs of skis, 5 snowboards, 9 tennis recquets, and 12 baseball bats. Sales person 2 sold 5 pairs of skis and 6 snowboards. Ask the user to input the data for sales person 3. Output the total monetary amount sold by each sales person. Using the "subtraction" function, rank the sales people in order of monetary sales, from highest to lowest.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: A total sales function that returns the monetary amount of
Reference No:- TGS0662685

Expected delivery within 24 Hours