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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
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
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
You know the right answer?
//TO DO: Import the Scanner class class Main {
public static void main(String[] args) {
...
Questions
question
Social Studies, 15.07.2019 07:00
Questions on the website: 13722359