Question: Write a function to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred
Write a function to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred (profit = sellingprice costprice ;). Costprice and selling price of an item are two arguments of your function ( void checkprofit(float costprice, float sellingprice) ). Call this function from main( ).
C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
