1.

Sigma Car Company has announced the following festive discounts on the purchase ofcertain Diesel and Petrol cars:Write a program in Java to input the cost of car and the type of car purchased (D for Diesel Car and P for Petrol Car) from a customer. Using the above criteria compute and print the net amount to be paid by a customer.discount = (discount rate /100) × amount of purchaseNet amount = amount of purchase – discoun​

Answer»

<P>ANSWER:

Write a program in Java to input the cost of car and the type of car PURCHASED (D for

Diesel Car and P for PETROL Car) from a customer. Using the above criteria compute

and print the net amount to be paid by a customer.

discount = (discount rate /100) × amount of purchase

Net amount = amount of purchase – discoun



Discussion

No Comment Found