Question
Description: The CPlusPlus & LandMinusMinus company needs you to write a program which will produce a report, in both numbers and chart form, showing how
Description:
The CPlusPlus & LandMinusMinus company needs you to write a program which will produce a report, in both numbers and chart form, showing how their three divisions are doing, for any given month, in generating net sales.
The corporate tax rate for the company is 30% and the three divisions are East Coast, Mid West, and West Coast (define as constants).
Requirements
- Have the user enter a month name, and then process each division, one at a time:
- Have the user enter the sales amount and expense amount for the division, using the division name as a prompt. Each sales and expense amount must be zero or greater.
- Calculate the net sales amount for the division (sales less expense, less tax on sales minus expense).
- After the three divisions are processed, display a Net Sales report which displays, for each division:
- A line showing the division name and its net sales, followed by an asterisk (*) for each $1,000 in net sales (i.e., if a division had $3,700 in net sales, 3 asterisks would be displayed). If a divisions net sales were less than $1,000, display a single hyphen instead of any asterisks (hint: use a loop to display the asterisks).
- Then process the next month name, or end the loop (unknown number of months).
- After all months are processed, display the average sales for a month, and the name of the month and its net sales amount for the month with the highest net sales.
Use this data for the screen print:
March (division: sales, expense)
East Coast: $15,000, $1,500
Mid West: $20,000, $1,000
West Coast: $18,500, $2,000
August (division: sales, expense)
East Coast: $25,000, $5,500
Mid West: $17,000, $1,000
West Coast: $14,500, $3,000
Grading guidelines
Item | Range Low End (Did not do or did very little effort) | Range High End (Used correctly and spent time/effort on programming) |
Names of variables are meaningful and the program comments self-document the program. | 0 | 2 |
The output is easy to read | 0 | 1 |
Met stated requirements |
| 14 |
The program executes without error and the output is correct | 0 | 2 |
The zipped program folder and screens shots of the code and console are uploaded to dropbox. | 0 | 1 |
Total | 0 | 20 |
Below is an example of how the report might look (you must show the input as well):
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started