Write a program in Java(BlueJ) to calculate and print the final bill of a customer after adding 5% service tax to it. Assume that the bill before service tax added was Rs. 25,000.
Share
Write a program in Java(BlueJ) to calculate and print the final bill of a customer after adding 5% service tax to it. Assume that the bill before service tax added was Rs. 25,000.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
class BillTax{
void main(){
int bill = 25000;// you can edit it anytime
double netamount = bill + (5.0/100.0)*bill ;
System.out.println("Total bill amount is = "+netamount);
}
}