Java Bootcamp Resources ->
Module 1 ->
6. Arrays, open Workbook 6.10.
In this workbook, the user is ordering a pizza. Your app will ask the user what toppings they want before dispatching a driver.
Ask the user:
How many pizza toppings do you want?. Then, pick up the result using
toppings that can store the number of toppings requested.
Great, enter each topping!
forloop that runs through the length of the array.
Print each index number followed by a dot.
Beside the number, pick up the user's topping and store it in the array.
Be careful from the
nextLine() trap (see cheat sheet).
This task is tricky.
After the user enters every topping, print
\nThank you! Here are the toppings your ordered
forloop that runs through the length of the array and prints each topping:
If you made it to task 5, you're almost home-free!
\nPress anything to confirm your order.
Once the user confirms the order, print:
Great, a driver is on the way!