Create an application called PizzaOrder.java based on this specification

Create the three (3) programs based on the specifications below.

Make sure your programs:

  1. Provide a pleasant user experience
  2. Contain appropriate comments throughout the code
  3. Adheres to proper style/conventions (e.g. indentation, case of identifiers, etc.)

 

Program #1 (40 points)

Create an application called PizzaOrder.java based on this specification.

  1. Ask which size pizza a customer wants. They should type in a single character.

Choices: (S)mall, (M)edium, (L)arge

  1. Ask which type of crust again using a single character.

Choices: (H)and-tossed, (D)eep-dish

  1. Ask if the user wants each of the toppings in the chart below using (Y)es or (N)o questions.
  2. Output the order details in a meaningful way. Remember you have “artistic” control over this part. Make sure it has all relevant data that an employee or customer might need including, but not limited to: pizza order details, subtotal, sales tax, and grand total.
  3. Ask how much payment is received from the customer.
  4. Output change due the customer.

 

Toppings Additional Cost
Size Cheese Pizza Cost * Pepperoni Sausage Onion Mushroom Extra Cheese
Small $10.00 $1.00 $1.00 $0.50 $0.50 $0.75
Medium $13.00 $2.00 $2.00 $0.75 $0.75 $1.00
Large $16.00 $3.00 $3.00 $1.00 $1.00 $1.25
  • Hand-Tossed or Deep-Dish price is the same
  • Sales tax rate 9.25%

 

Make sure your program has these components:

  1. A pleasant user experience
  2. Appropriate comments throughout your code
  3. Proper style/conventions (e.g. indentation, case of identifiers, etc.)

 

Program #2 (20 points)

Create an application called c based on this specification.

Put the name of your favorite animal in a variable called “name”. Using a WHILE loop, ask the user to guess an animal’s name until they get it correct. After they get it correct, tell them how many tries it took to guess.

 

Program #3 (20 points)

Create an application called BeerSongLoop.java based on this specification.

Using a FOR loop, create the song 99 Bottles of Beer on the Wall counting down from 99 to 0:

99 bottles of beer on the wall.

99 bottles of beer.

Take one down; pass it around.

98 bottles of beer on the wall. 

Etc.

Get assistance from our top rated tutors at Collegly ⭐⭐⭐⭐⭐

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

− 5 = 4