mercredi 19 septembre 2018

While Loop in Java (Using Netbeans)

can someone help me with the following homework please? I really do not know how to setup the code. thanks for your help.

Fantasy Entertainment is accepting online orders for your party. They have developed a program that allows the user to select the options to purchase from a menu of items. Write a program that allows the user (customer)to select the services to purchase, calculates the price of the services ordered, and displays a receipt of this information to the customer (assume the sales tax rate is 6.5%).

Your program should prompt the user (customer) to enter the following information: 1)Customer name, 2)Service purchased. The program then outputs the following information:Customer’s name, Total number of services ordered,Price of menu services(per hour)before sales tax, Sales tax, Total amount due, Amount saved.

MENU

  1. Face Painting .... ..$50

  2. Balloon Twisting ....$45

  3. Puppet Shows.........$55

  4. Stilt Walkers .......$60

  5. Bounce House ........$80

  6. Rock Wall ...........$70

  7. Petting Zoo .........$65

10.EXIT

PROMOTION 1: if you select Face Painting and Balloons -> $10 OFF
PROMOTION 2: if you select all options -> $80 OFF

Note: When placing their order, the user will enter the number of the item, NOT the name of the item. For example, if the user wants to order Face Painting,he/she would type 1 (not “Face Painting”) to order Face Painting. Please refer to the Sample Output file for full details of what the program should look like when it runs.

Aucun commentaire:

Enregistrer un commentaire