subject

Assume that an int variable age has been declared and already given a value and assume that a char variable choice has been declared as well. assume further that the user has just been presented with the following menu: s: hangar steak, red potatoes, asparagus t: whole trout, long rice, brussel sprouts b: cheddar cheeseburger, steak fries, cole slaw (yes, this menu really is a menu! ) write some code that reads a single character (s or t or b) into choice. then the code prints out a recommended accompanying drink as follows: if the value of age is 21 or lower, the recommendation is "vegetable juice" for steak, "cranberry juice" for trout, and "soda" for the burger. otherwise, the recommendations are "cabernet", "chardonnay", and "ipa" for steak, trout, and burger respectively. regardless of the value of age, your code should print "invalid menu selection" if the character read into choice was not s or t or b. submit

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
You know the right answer?
Assume that an int variable age has been declared and already given a value and assume that a char v...
Questions
question
Mathematics, 09.11.2020 17:30
question
Mathematics, 09.11.2020 17:30
question
History, 09.11.2020 17:30
question
Biology, 09.11.2020 17:30
question
Computers and Technology, 09.11.2020 17:30
question
Spanish, 09.11.2020 17:30
question
German, 09.11.2020 17:30
question
History, 09.11.2020 17:30
Questions on the website: 13722360