Computer Science, asked by parnika021105, 10 months ago

write a program that will accept the bill of a customer and add 5% service tax to it.​

Answers

Answered by priyarani6030
28

Answer:

class Servicetax

{

public void display (int bill)

{

double total_bill;

total_bill = bill + (bill * 5.0 / 100.0);

S.o.pln ("old bill is : Rs." + bill );

S.o.pln ("total bill including service

tax is : Rs." +total_bill );

}

}

OUTPUT => Old bill is : Rs. 500

Total bill including service tax

is : Rs. 525.0

Similar questions