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

  What are disadvantages of low class

What are disadvantages of low class What are advantages of high value?

  Prove the following property of boolean algebra

prove the following property of Boolean algebra . give a reason for each step !!

  Explain most computer memories are composed of a large

Most computer memories are composed of a large number different devices that are interconnected to form the whole memory array which is accessed using the address bus.

  Project management tasks

Explain how the systems analyst may help along with the project management tasks. Also, explain how a new employee can contribute to the tasks.

  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.

  Process that handles the customervalidator''s servervalidate

Write down a method that handles the CustomerValidator's ServerValidate event. In addition, write a JavaScript function for the CustomValidator's CustomValidationFunction property. Each method should verify that the user entered an integer in each..

  Terminate and cause the zombie tasks to be deallocated

while a child process is fork()ed, a parent may wait for the successful completion of the child via the wait() service (or one of its variants) so that the return result of that application can be read from the process descriptor block.

  Use a database in this fashion ebay

however there is great risk in implementing a database in this fashion Ebay gained an extreme performance boost because the database didn't have to work as hard to ensure that the data "conformed."

  Pros and cons of the model-view-controller

define the benefits and limitations of the model-view-controller (MVC) principle. Identify one way in which MVC helps software designers create better code, and one way in which it deters them.

  What your relationship would be like with the technical

What instances of collaberation and communications do you and the technical staff explore.

  How the final web page must include

The final Web page should include the following HTML elements and formatting.

  Differentiated services and set of contiguous routers

Explain in scholarly detail why the differentiated services (DS) domain consists of the set of contiguous routers?

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