subject

Assume that an int variable age has been given a value. 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 the string (s or t or b) that the user types in into a variable choice and 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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
Memory aids that organize information for encoding are
Answers: 3
question
Computers and Technology, 25.06.2019 16:00
Which domain suffixes do businesses that sell products and services commonly use?
Answers: 2
You know the right answer?
Assume that an int variable age has been given a value. assume further that the user has just been p...
Questions
question
Mathematics, 18.03.2021 02:10
question
Mathematics, 18.03.2021 02:10
Questions on the website: 13722361