The amount of sales as input and outputs the total amount

Assignment Help Basic Computer Science
Reference no: EM13318798

A sales person gets a base salary of $200. They also get 3% of any sales between $500 and $1000 and 5% of any sales over $1000. Write a driver program named Commission.java that takes in the amount of sales as input and outputs the total amount earned (the base salary plus commission). Make certain the output looks like money. Include a sentinel controlled while loop that ends when you type in -999 for the sales. Also keep track of the total amount of money for all salespeople and how many total sales people there are (a counter and an accumulator).

NOTE: this is calculated like income tax in the US. If a person sells $700, they get zero on the first $500 and 3% of the next $200 or $6.00 commission for a total salary of $206.00. If they sell $2500, they get zero on the first $500, 3% of the next 500, and 5% of anything over $1000.

Sample output:
Enter amount of sales (-999 to end):10
You earned $0.00 in commission for a total $200.00 salary.

Enter amount of sales (-999 to end):500
You earned $0.00 in commission for a total of $200.00 salary

Enter amount of sales (-999 to end):5000
You earned $215.00 in commission for a total of $415.00 salary.

The number of employees is 3 and the total paid out is $815.

Reference no: EM13318798

Questions Cloud

Define the diffie-hellman key exchange : Define the Diffie-Hellman key exchange? How is this information relevant to you?
Examine the interview structure presented in the sequencing : Examine the interview structure presented in the sequencing
Perform the physical design : Perform the physical design and implementation using SQL Data Definition Language
Design an e?cient algorithm to handle a sequence : Design an e?cient algorithm to handle a sequence of such operations.
The amount of sales as input and outputs the total amount : A sales person gets a base salary of $200. They also get 3% of any sales between $500 and $1000 and 5% of any sales over $1000. Write a driver program named Commission.java that takes in the amount of sales as input and outputs the total amo..
Ethics begins at home explain : Business ethicists claim that the recent spate of business leaders, especially bankers, who have admitted to unethical behavior, is not surprising. In fact, these experts explain that when rewards are high and risks are low, the brain often giv..
Ceo of marketing plus : Write a persuasive email message to Dick Elders founder and CEO of Marketing Plus.
Most data mining applications include intelligent systems : Most data mining applications include intelligent systems, such as artificial neural networks (ANN) and rule induction methods for expert systems (ES), to search for potentially profitable ________ in data.
Describe four approaches to understanding stress : 1.Describe four approaches to understanding stress. How does each add something new to our understanding of stress? Talk about the new research that says that stress can be managed in positive directions if an individual recognizes it and man..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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