Create a class that represents sales of sports equipment

Assignment Help Computer Engineering
Reference no: EM13324015

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.

Reference no: EM13324015

Questions Cloud

Explain the linear molecule feh2 has been observed : The linear molecule FeH2 has been observed in the gas phase. Assume that the iron atom can potentially use s, p, and d orbitals to interact with the hydrogens. If the z axis is collinear with the molecular axis
Suppose the government wants to improve the living standard : Suppose the government wants to improve the living standard of entry-level workers. Two policies are being considered – an increase in the minimum wage
Why central banks buy either their own currency : Describe when and why central banks buy either their own currency or the currency of another nation in an effort to control exchange rates and what did the central banks do to stabilize the financial systems in 2007-2009?
Depict orbital energy-level diagram of the nf molecule : Nitrogen monofluoride, NF, can serve as a ligand in transition-metal complexes. a. Prepare a molecule orbital energy-level diagram of the NF molecule, showing clearly how the atomic orbitals interact.
Create a class that represents sales of sports equipment : 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.
Keynesian economics to recent economic policy in the united : Does anyone know about the relevance of Keynesian economics to recent economic policy in the United States? If yes, please explain me about this, and if it's possible, give me some resources for this topic.
Benefits and challenges of managing diversity : Critically examine the benefits and challenges of managing diversity in an organisation. Then, referring to an organisation of your choice, describe how diversity is managed in practice and discuss how it can provide a competitive advantage.
Explain what is the pkb for the acetylsalicylate ion : What is the pKb for the acetylsalicylate (C9H7O4-) ion in a 0.10 M solution of sodium acetylsalicylate (NaC9H7O4). A. 3.52 B. 10.48 C. 3.0 x 10-4 D. 3.0 x 10-11 E. 8.26
Create an ios chart with the investment : The WACC is 7.75% with break points at $13 million and a new WACC of 8.12%. A final breakpoint occurs at $25 million boosting the WACC to 9.25%. Your banker has told you that beyond $25 million you will not be extended additional credit.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Show how to find out such a seating arrangement

Show how to find out such a seating arrangement and prove that no such seating plan is possible.

  What is the total fertilizer use in honduras

What is the total fertilizer use in Honduras (metric tons) What is the average application per cropped area (100 grams per hectare of arable land) Compare this to fertilizer use per cropped area in the US

  Determining the missing side of triangle

Write down a program which will figure out the missing side of the right triangle utilizing the Pythagorean Theorem. Suppose that the user entries will make a triangle.

  Build a code in preparation for creating a spell-checker

Write down a code in preparation for creating a spell-checker. For now don't worry about actually spell checking: Just write a program that can read in the dictionary word by word.

  Express a mechanism to access the telephone customer

express a mechanism to access the telephone customer.describe your selection and discuss the speed of the search operation. Keep in mind that a million records cannot be kept in one array. There is no need to code in C++.

  Design appropriate it infrastructures to manage data

In the unlikely event of any discrepancy between the Academic Regulations and any other publication, including this module guide, the Academic Regulations, as the definitive document, take precedence over all other publications and will be applied..

  Make use of a stack for the infix to postfix conversion

comprise a README file describing how to run your program and give an example.make Use of a stack for the infix to postfix conversion.

  What is network architecture

what is the most popular network architecture.

  The tabular output has to include these cross-totals

Thus, each salesperson passes in between 0 and 5 sales slips per day. suppose that the information from all the slips for last month is available.

  What is the largest positive number

What is the largest positive number one can repent in an 8-bit 2's complement code ? write your result in binary and decimal.

  Give the pseudocode for the flowchart

make a flowchart and give the pseudocode for searching an array for a specified value.

  Why appropriate organizational culture is needed

Company X is going to expand its information system. To do this, it is going to select and purchase new hardware and software and re-train its employees. The problem-solving team has been built and has specified hardware, software and staff-traini..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd