USING C++ develop a program for the following:
***Must not use “break” to exit loops. Must be original material and not recycled answers from others who have asked this question. thank you in advance.***
Company Sales
A company wants to be able to produce reports, for any year, of the annual profit for each of its three divisions, and for the company in total. The company tracks the sales of each division by quarter, but tracks the expenses on an annual basis only.
Profit is calculated as: sales less expenses less tax (tax is calculated on sales less expenses).
Declare in main a 3 by 5 array for the company’s sales and expenses (three divisions: each with four quarters of sales and one annual expense).
Also, declare an empty vector for the three divisions’ tax rates.
In main have the user repeatedly enter a year for which reports are to be produced (unknown number of years), call the two functions described below, and for the year entered display the year and the company’s annual sales, annual expenses, and annual profit…then repeat until the user has no more years to report.
The program will have two functions:
1) Have the user fill the 3 X 5 sales and expenses array with four quarterly sales and an associated annual expense for each division. Validate that the entries are zero or greater. Also have the user enter and store each division’s tax rate in the vector*.
2) Calculate and display each division’s annual sales, annual expenses, and profit (sales less expenses, minus tax on sales less expenses). For the year being processed use annual company reference variables to accumulate the three division totals. Return to main the company’s annual sales, annual expenses and annual profit, and display them in main.
* the tax rates for the three divisions are: 5.5%, 6.1%, and 4.8% (same for all years).
Provide screen prints for 2 years with the following data:
2012
division #1/sales: $25,000; $23,000; $28,000; $27,500/expenses: $81, 250
division #2/sales: $15,000; $13,500; $20,000; $17,250/expenses: $71, 050
division #3/sales: $29,000; $33,000; $38,000; $25,500/expenses: $100, 100
2015
division #1/sales: $25,100; $23,000; $25,000; $26,500/expenses: $91, 250
division #2/sales: $12,000; $11,500; $20,000; $13,250/expenses: $171, 050
division #3/sales: $28,000; $30,000; $39,000; $27,500/expenses: $130, 100
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more