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 is the expected access time

Given a 64-byte cache block, a 512 KB fully associative cache (assume byte-addressable), and a 32 bit address reference, which bits could be used for tag, index, and offset.

  Contain what database applications are used

Analyzing the usage of databases in your organization. contain what database applications are used We use Oracle. Conclude by proposing improvements. For large organizations, restrict the scope of the paper to the department in which you work. I w..

  Authenticating the evidence

You will offer the POC additionally as a matter of procedure the known facts of incident and what are the procedures were utilized during the initial case reviews. Identification of any collection requirements for attaining and authenticating the ..

  Write ieee floating point representation of the following

Write IEEE floating point representation of the following decimal numbers.

  Project lacking the minority project

Give three examples of why a project might lack the technical feasibility.

  Describe different structures and areas within brain

make sure to discuss the location in the brain, their functions, disorders/pathology related to damage to these structures, and other important information in regards to these structures.

  Consider the fundamentals of object oriented programming

give an accompanying illustration for each of the fundamentals(example, code sample, etc.)Note: Try to use Java and not C++ for examples.

  Utilization of authentication

In the 802.11i, authentication always utilizes the SSL/TLS, Outer, Inner, Both A and B, Neither A nor B.

  Effcient automated inferencing system - automated reasoning

A very robust, fast, and efficient automated inferencing system with support for disjuction and functions called DLV to practice with knowledge representation and reasoning.

  Categorizing the threat

Download a password cracker developed for your operating system. Run the cracker on your system. Describe the results from cracker.

  Generating the cipher text

Consider the plaintext is 101101101. If CBC is not used, what is the resulting ciphertext? If CBC is utilized along with the IV = 111, specify the resulting ciphertext? Show all work.

  The application must calculate the average

make a Java Application that will ask the user for his or her name and to enter in three numbers. The application should calculate the average and then output the value to the user.

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