InterviewSolution
Saved Bookmarks
| 1. |
Write a program in Java to input the cost of car and the type of car purchased (D forDiesel 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 – discount. |
|
Answer» Nsnshsjslsnsdsnfnwufulflsjxltnlsnfnfjwuwywuuslshshssbbsdshrewenshfnsusushhsbriseshsvsbkrksbvsensnsnbxerseesnsnsnsnsnhshxlseseesnshsnxesushdsdwlwuntnteziziezeeeseseseseselsnshsnsesesdnsifbshx |
|