Write a program that prompts a salesman

Assignment Help Basic Computer Science
Reference no: EM13306243

PROGRAM DESCRIPTION

At ACME Hammers, Inc., salesmen are paid a commission based on two different factors: whether they are full or part-time, and of course on how much they sell. Part-time salesmen are paid a simple commission on all amounts sold; however, full time salesmen earn a commission that varies based on the amount of sales.

SPECIFIC DIRECTIONS

Write a program that prompts a salesman to enter his/her status and total sales. Compute/display the following: their status; total sales; commission rate applied; the commission ($) earned (the appropriate rate times the sales); and the value of total sales minus commission (basically the company's profit from their work).

The following table details the commission rate paid, based on status and total sales:

STATUS*                              TOTAL SALES ($)                   RATE (%)

         P                                     Any amount                                3.5

         F                                     Below 10,000.00                            5

         F                                     10,000.00 & above                        7.5

(*P: part-time; F: full-time)

(Note: if you don't sense the need for a loop in this program, your senses are correct: a loop is not required. You will be looping in the final exam, thoughJ)

EXTRA CREDIT  Format this report as if this were just the first entry in a multi-page report of all salesmen in the company. The values need to be spaced across the page under column headers, just like a professional report would appear. Give the report an important-sounding title. Even though you will end up with only one set of sales data displayed, make it appear as if hundreds more lines will be forthcoming. (After the data is displayed, you could have a note like "To be continued...")

 

Reference no: EM13306243

Questions Cloud

Distinguish between baseband and broadband transmission : Distinguish in detail between baseband and broadband transmission?
Central issue for its senior managers : The strategic positioning of your chosen organisation is a central issue for its senior managers
Find the coefficient of volume expansion of the liquid : A flask is filled with 1.50 L (L = liter) of a liquid at 98.0 °C. What is the coefficient of volume expansion of the liquid
Determine the change in the period of the heated pendulum : A simple pendulum consists of a ball connected to one end of a thin brass wire. Determine the change in the period of the heated pendulum
Write a program that prompts a salesman : Write a program that prompts a salesman to enter his/her status and total sales. Compute/display the following: their status; total sales; commission rate applied; the commission ($) earned (the appropriate rate times the sales).
How antibodies recognize and neutralize viruses : Explain the how Natural Killer Cells and Cytotoxic T-cells recognize that a cell is infected with a virus and kills the infected cell and how antibodies recognize and neutralize viruses or target viruses for destruction.
How much work is done by the gas during the compression : A monatomic ideal gas that is initially at a pressure of 1.41 * 10^5 Pa, How much work is done by the gas during the compression
Write a program and create a flow chart : The game of Nim. This is a well-known game with a number of variants. We will consider the following variants, which has an interesting winning strategy. Two players alternately take marbles from a pile.
How are adc used in medical devices : How are ADC's used in medical devices? Please give examples

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What other patient data should be included in your database

In a larger category of "Vaccine," you might divide an MMR vaccine into separate antigens, such as measles, mumps, and rubella. What other larger categories must be included? What challenges do you encounter in organizing the data? Refer to Chapte..

  What is your opinion of the criteria used

Based on your understanding of how AES was chosen, what is your opinion of the criteria used?

  Explain the five activities of systems analysis

In a one-page paper: explain the five activities of systems analysis and offer any additional activities you feel should be added (from your reading or experience).

  Values for the items in the risk register

Recommend reasonable values for items in risk register for this asset and threat, and give justifications for your choices.

  Training data from gaussian distribution of variance

Suppose we have training data from a Gaussian distribution of known covariance S but unknown mean Mu.

  Create an applet to draw a digit using the method fillrect

In Java Programming, Create an applet to draw a digit using the method fillRect of the class Graphics. For instance, if the input is 4, the applet will display the digit 4. I will also need the HTML code along with the code

  Compute number of total bits needed to implement cache

Suppose a computer's address size is K bits (using byte addressing), the cache size is k bits (using byte addressing), the cache size is S bytes. Compute the number of total bits needed to implement the cache.

  What are the advantages of inheritance

In C++, What are the advantages of Inheritance? What are the advantages of Composition?

  Evaluate the technology, connectivity

Your company has assigned you the task of evaluating its computer networks. You are to write a memo covering 15 points on which you will evaluate the technology, connectivity, and functioning of the company's computer networks.

  What is the general algorithm for solving this problem

what is the general algorithm/approach for solving this problem? as a test case, move_robot 10 forward 3 = 13

  We enhance a machine making all floating-point instructions

Suppose we enhance a machine making all floating-point instructions run five times faster. If the execution time of some benchmark before the floating-point enhancement is 10 seconds, what will the speedup be if half of the 10 seconds is spent exe..

  Modify the definition of avl tree and require

Suppose that we modify the definition of AVL tree and require that for every node, the difference between the heights of its left and right sub-trees is at most 2. Is the height of the tree still O(log n)? Prove your answer using induction.

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