Question: 1. Write a Java program that prompts the user to enter total sales and calls a value returning method named findTotalBill0. This method shoul method
1. Write a Java program that prompts the user to enter total sales and calls a value returning method named findTotalBill0. This method shoul method should also calculate the sales tax, using the class constant TAX. (Note: TAX 05) Finally the program will print out the total bill that the customer owes. d accept one input parameter, sales. This -The formula to calculate sales tax is: Sales x sales tax rate. (Example: Sales of $200.00 x .05 = $10.00 sales tax) -The formula to calculate the total bill is Sales + sales tax (Example: Sales of $200.00+$10.00 -$210.00 total bill) SAMPLE OUTPUT: Enter Total Sale: 200 The Customer's total bill is $210.00 Enter Total Sale: 100 The Customer's total bill is $105.00 Enter Total Sale: 20.50 The Customer's total bill is $21.53
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
