Question: in C language Write a program which asks the user to enter the cost price and selling price of an item. Determine whether the seller

in C language Write a program which asks the user to enterin C language

Write a program which asks the user to enter the cost price and selling price of an item. Determine whether the seller has made profit or loss. Now, If the seller has made profit, Government has applied taxes according to following criteria: If profit is less than or equal to 50 Rs, then tax is 2% of the profit. If profit is between 51 Rs and 100 Rs, then tax is 4% of the profit. If profit is between 100 Rs and 500 Rs, then tax is 5% of the profit. If profit is greater 500 Rs is 7 % of the profit. Your program should display following output: 1. Ask the user to enter the cost price and selling price of an object. 2. Whether the seller has made profit or loss? 3. Calculate total amount of profit or loss. 4. Total amount left with the seller after deduction of taxes. Sample Output The seller has made a loss of 55 Rs. Tax deduction is not applicable Sample Input Enter cost price in Rupees: 500 Enter selling price in Rupees: 445 Enter cost price in Rupees: 500 Enter selling price in Rupees: 600 --> The seller has made a profit of 100 Rs. The amount which is deducted as tax is 5 Rupees The total amount left with the seller is 595 Parta) Provide at least two more sample input and output [1 mark] Part b) Descriptive solution (upto 1 mark] OR step-wise pseudo-code (may or may not be executable) (upto 2 marks] OR Submit executable program code with proper indentation and comments (using C Language) (upto 4 marks]

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!