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
(
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here