subject

//TO DO: Import the Scanner class class Main {
public static void main(String[] args) {
//TO DO: Build a Scanner object

//PROBLEM 3: Based on a user's selection from the menu below, print a message telling them what sort of meal they will receive.
System. out. println("Do you have any of the following dietary restrictions: ");
System. out. println("1.Vegetarian");
//If the user is vegetarian, display this message: "You'll be receiving a vegetarian dish."
System. out. println("2.Vegan");
//If the user is vegan, display this message: "You'll be receiving a vegan dish."
System. out. println("3.Food Allergies");
//If the user has food allergies, display this message: "Please email us your specific needs so we can create a dish just for you!"
System. out. println("4.No restrictions");
//If the user has no restrictions, display this message: "Thank you!"

System. out. println("Please enter your selection: ");
int selection = myScanner. nextInt();

//YOUR CODE GOES HERE:

//TO DO: Close the Scanner

}
}

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, hannahliebl2000
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, hunteryolanda82
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, bubbles173883
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a. edit the sizes and other characteristics of photos that have been inserted. b. take a screenshot of an image and copy it to the clipboard for pasting. c. search for drawings or other images from a library of prepared pictures. d. make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
You know the right answer?
//TO DO: Import the Scanner class class Main {
public static void main(String[] args) {
...

Questions in other subjects:

Konu
Social Studies, 03.12.2021 23:10
Konu
Mathematics, 03.12.2021 23:10