63 064
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #58799 in Java | JSP | JSF for kenya

Question #58799
Write a program called restaurant.js, that calculates the tab for a couple based on the use of a gift certificate and the items ordered. Since we are not collecting input from the users, use the same literal values for the appetizer, entrée, drinks and dessert that you see in my example below. The total for ordered items, restaurant tax, and tab should be calculation and not hardcoded print statements.



An example execution of the program is given below:



This program will calculate a restaurant tab for a couple with a gift certificate, with a restaurant tax of 8.0%



Amount of gift certificate: 200

Ordered Items for person 1

Appetizer: 5.50

Entrée: 21.50

Drinks: 4.25

Dessert: 6.00



Ordered Items for person 2

Appetizer: 6.25

Entrée: 18.50

Drinks: 6.50

Dessert: 5.50



Ordered Items: $74.00

Restaurant tax: $5.92

Tab: $ -120.08

(negative amount indicates unused amount of gift certificate)
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions