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

  How much objective function coefficient decreases

Implement the following LP model in a spreadsheet. Use Solver to solver the problem and create a Sensitivity Report. How much can objective function coefficient for variable X2 decrease before changing optimal solution?

  Use regression analysis definition

Problem 3.  For the following set of points, calculate the value of 'r' and infer how are the points correlated. Use regression analysis definition or 'r' using covariance (x, y), var(x) and var(y).

  Design an algorithm that will prompt for and receive 10

A  flow chart for the following problem. Just a flowchart. Design an algorithm that will prompt for and receive 10 integers from an operator  at a termina

  What uid and pid have the highest amount of physical memory

What UID and PID have the highest amount of physical memory a process has used and is not swapped out? Show all processes and full output.

  Explaining health insurance portability-accountability act

Based on your knowledge of IT security management, argue for or against assertions that Epworth system is in compliance with Health Insurance Portability and Accountability Act (HIPAA).

  Define the term solvable

What does the term solvable mean to you? What does it mean to say that "you solved a problem"? Find examples of problems for which you believe there are no solutions.

  Macro running in response to form button

All of the following are events except: a macro running in response to a form button being clicked, changing the data in a cell, clicking on a control button or opening or closing an Excel workbook.

  What information is required to setup a new account

What information is required to setup a new account, what category information is collected by the site

  Create three integer variables and initialize them

Create three integer variables and initialize them to whichever value you'd like. ? Create three functions: ? A function that accepts two integers as parameters and subtracts the second from the first.

  Why the algorithm issorted is not sufficient to prove

Linda creates an algorithm that takes an input sequence S and produces an output sequence T that is a sorting of the n elements of S.

  Examples of emerging technologies

Assume you are an Information Systems educator, and you have been asked to make an article about emerging technologies and how important it is to be prepared to adapt to new technologies

  Reverse the string

Reverse the string. If the reversed string is the same (.equals()) as the original, pared down, string then it is a palindrome.Way 2: Look at the first and last letter and see if they are the same (using the charAt() method), then the second letter ..

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