How to use c++ to write a function called calcProfit() to find the gross profit and net profit of a business. The function will accept the amount for the revenue, cost and operating expenses. The...


How to use c++ to write a function called calcProfit() to find the gross profit and net profit of a business. The


function will accept the amount for the revenue, cost and operating expenses.


The function will calculate the gross profit which will be returned to the calling function


using the return statement. Then it will calculate the net profit which will be returned


through the output parameter. Below are the formulas to be used:


gross profit = revenue – cost


net profit = revenue – gross profit – operating expenses


 (


3. a) Write a function called calcProfit() to find the gross profit and net profit of a business. The<br>function will accept the amount for the revenue, cost and operating expenses.<br>The function will calculate the gross profit which will be returned to the calling function<br>using the return statement. Then it will calculate the net profit which will be returned<br>through the output parameter. Below are the formulas to be used:<br>gross profit = revenue – cost<br>net profit = revenue - gross profit – operating expenses<br>

Extracted text: 3. a) Write a function called calcProfit() to find the gross profit and net profit of a business. The function will accept the amount for the revenue, cost and operating expenses. The function will calculate the gross profit which will be returned to the calling function using the return statement. Then it will calculate the net profit which will be returned through the output parameter. Below are the formulas to be used: gross profit = revenue – cost net profit = revenue - gross profit – operating expenses

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here