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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!