Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a C++ loop Program The CPlusPlus & LandMinusMinus company needs you to write a program which will produce a report, in both numbers and

write a C++ loop Program

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

Repeatedly:

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, $13,100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

image filter

Answered: 1 week ago

Question

How did you feel about taking piano lessons as a child? (general)

Answered: 1 week ago