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.
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.
|