(Solved) : Write C Program Calculate Display Profit Division Company Company S Total Profit Determine Q42702724 . . .

Write a C++ program to calculate and display the profit for each division of a company and the companys total profit, and deimage.pngWrite a C++ program to calculate and display the profit for each division of a company and the company’s total profit, and determine and display the division with the most profit. There are an unknown number of divisions. In main, have the user repeatedly: -have the user enter a division name (unknown number of divisions) -have the user enter the tax rate for this division, in percent format (prompt user with division name) -call overloaded function Get_Data in which the user inputs the sales for a division (prompt with division name) and the function assigns the sales back to main using a reference variable. Validate that the sales are zero or greater -call overloaded function Get_Data in which the user inputs the expenses for a division (prompt with division name) and the function returns the expenses back to main using a return statement. Validate that the expenses are zero or greater. We were unable to transcribe this imageShow transcribed image text Write a C++ program to calculate and display the profit for each division of a company and the company’s total profit, and determine and display the division with the most profit. There are an unknown number of divisions. In main, have the user repeatedly: -have the user enter a division name (unknown number of divisions) -have the user enter the tax rate for this division, in percent format (prompt user with division name) -call overloaded function Get_Data in which the user inputs the sales for a division (prompt with division name) and the function assigns the sales back to main using a reference variable. Validate that the sales are zero or greater -call overloaded function Get_Data in which the user inputs the expenses for a division (prompt with division name) and the function returns the expenses back to main using a return statement. Validate that the expenses are zero or greater.

Expert Answer


Answer to Write a C++ program to calculate and display the profit for each division of a company and the company’s total profit, a…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?