Question: Scanner scanner = new ( System . in ) ; / / 1 ) ask the user for their satisfaction level ( Dissatisfied , Satisfied,
Scanner scanner new Systemin;
ask the user for their satisfaction level Dissatisfied Satisfied, Extremely Pleased
Enter satisfaction level Dissatisfied, Satisfied, Extremely
Pleased: ;
int satisfactionLevel scanner.nextInt;
ask the user for the number of people in the dinner party
System.out.printEnter number of people in the dinner party: ;
numberPeople ;
ask the user for the total cost of bill before tip & tax
System.out.printEnter total cost of bill before tip & tax: ;
totalCostBillBeforeTaxTip ;
STEP PROCESS Calculate:
Calculate the TIP AMOUNT of TOTAL COST BILL based on SATISFACTION LEVEL
Calculate TIP AMOUNT of TOTAL COST BILL
tipAmountOfTotalCostBill ;
if the customers are Dissatisfied
ifsatisfactionLevel
tipAmountOfTotalCostBill totalCostBillBeforeTaxTip ;
if the customers are Satisfied
ifsatisfactionLevel
tipAmountOfTotalCostBill totalCostBillBeforeTaxTip ;
if the customers are Extremely Pleased
if
totalCostBillBeforeTaxTip ;
Calculate the TAX based on TOTAL COST BILL
tax totalCostBillBeforeTaxTip ;
Calculate the TAX based on TOTAL COST BILL NJ Sales Tax Rate
totalCostBill totalCostBillBeforeTaxTip tax
tipAmountOfTotalCostBill;
Calculate how much each person should pay including TIP & TAX
totalCostPerPerson totalCostBill numberPeople;
STEP OUTPUT
Display the TOTAL COST of the BILL before tip & tax
Total Cost of Bill before tip & tax: $ totalCostBillBeforeTaxTip;
Display the TAX AMOUNT
Tax Amount: $ tax;
Display the TIP AMOUNT
Tip Amount: $ tipAmountOfTotalCostBill;
Display the TOTAL BILL including tip & tax
Total Bill including tip & tax: $ totalCostBill;
Display the COST PER PERSON
System.out.println: $ totalCostPerPerson;
Where it says "insert code" theses are the answers but not in the rigfht order below
Scanner
scanner.next.double
int
tipAmountOfTotalCostBill
satisfactionLevel
TotalCostPerPerson
import java.util.Scanner;
scanner.nextInt
System.out.println
System.out.println
System.out.println
System.out.println
System.out.println
double
double
double
double
double
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
