02 Challenge Instructions
02 Challenge Instructions
Let’s have some programming fun with food and drink choices. You are not expected to
understand all of this program yet.
You know how to define and declare a String variable, display text on screen and read in
a number. In this challenge you will edit a program, FastFood.java, so that it reads in a
user letter choice from a menu and confirms that choice.
Create a new class called FastFood.java. Open and copy the FastFood program that came
with these instructions into your FastFood java class. The program will not run until you
add the missing statements.
The program should look like this after you run it:
Programming Tasks
1. Display a title at the start of the program “SNACK MENU”
SNACK MENU
----------
What would you like?
c coffee
d donut
s skipples
p peanuts
2. Display your name and correct date at the bottom of the program
SNACK MENU
----------
What would you like?
c coffee
d donut
s skipples
p peanuts
3. Extension Task: Add an extra food or drink option of your choice to the program
(for example, “biscuit”)
SNACK MENU
----------
What would you like?
B biscuit
c coffee
d donut
s skipples
p peanuts
Submission
1. You will copy the content of your program and email it to me (the code must be
indented).