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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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