Write a program that prompts a salesman to enter hisher


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...")

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that prompts a salesman to enter hisher
Reference No:- TGS0644932

Expected delivery within 24 Hours