PART TWO: Compute and print the total cost of the Pizza
according to the following:
- Plain Pizza (no toppings, thin crust)
- Small $6.95
- Medium $8.95
- Large $12.95
- For every size pizza add $0.50 per topping selected.
- Crust Types
- For small size pizza add $0.75 if thick crust
is desired, $1.00 for pan.
- For medium size pizza add $1.50 if thick
crust is desired, $2.00 for pan.
- For large size pizza add $3.00 if thick crust
is desired, $5.00 for pan.
- Add 8% sales tax to the total.
- Print the following out to the list
box:
- The title "Your Pizza Order"
- The size of pizza selected
- The type of crust selected
- A list of the toppings chosen
- The phone number
- The total cost of the order
HINT: Declare a variable for the base price then add
to that base price depending on the selections.
|