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 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
In writing a paper for his english class, gavin quoted an author of the book. what should he include in his paper to credit the source? citation caption header entry
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, 02.02.2021 23:20
question
Physics, 02.02.2021 23:20
Questions on the website: 13722361