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

  How many bits are used for memory addresses

How many bits are used for memory addresses

  Design, simulate and verify a 16-bit ripple-carry

Design, simulate and verify a 16-bit ripple-carry adder by performing the following additions/subtractions (the values of a and b are given in decimal): (i) (-10) + (100), (ii) (63) - (-127), (iii) (15) + (95), (iv) (-32) + (79), (v) (-59) + (-16)..

  Given the dimensions of a crate

Given the dimensions of a crate (side 1, side 2, and side 3), find the largest surface area it can provide when used as a table. A test case provided is if side 1, side 2, and side 3 are 1, 2, and 3, respectively, the largest surface area is 6. Ca..

  Examine the following pseudocode module

Examine the following pseudocode module header and then write a statement that calls the module, passing 8 as an argument. Module showValue Integer values

  Calculation for programming and machine independency

Assume f is a function that returns the result of reversing string of symbols given as its input, and g is a function that returns concatenation of the 2-strings given as its input. If x is the string abcd,

  Derive taylor polynomials of degree

Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.

  Which accepts no value and returns an int

There is also an int variable called currentTemp , which has already been declared. Use the reference variable, to invoke a method to retrieve the previously set temperature and store the returned value in currentTemp .

  History of the use of social media for crm

Social Media is becoming integral in the marketing efforts and campaigns of organizations. The benefit and impact can be significant. Compare and contrast SMM to traditional marketing.

  Computing selection inputs for multiplexer system

Determine selection inputs are required if you used MUX A and MUX B system?

  Design a module

Design a module, using pseudocode, named getNumber, which uses a reference parameter variable to accept an Integer argument. The module should prompt the user to enter a number and then store the input in the reference paramter variable.

  Display the new list as well as the two old list

Display the new list as well as the two old list Thank you in advance.

  Will action alter or destroy any historical and scientific

Will action alter or destroy any historical, scientific, or archaeological site? New engineering building project doesn't have any reported historical, scientific.

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