Print either “Fruit”, “Drink”, or “Unknown” (followed by a newline) depending on the value of user Item. Print “Unknown” (followed by a newline) if the value of user Item does not match any of the defined options. For example, if user Item = GR_APPLES, output should be:
Print either “Fruit”, “Drink”, or “Unknown” (followed by a newline) depending on the value of user Item. Print “Unknown” (followed by a newline) if the value of user Item does not match any of the defined options. For example, if user Item = GR_APPLES, output should be:
Fruit
Sample program:
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper Now#include using namespace std; int main() { enum GroceryItem {GR_APPLES, GR_BANANAS, GR_JUICE, GR_WATER}; GroceryItem userItem = GR_APPLES; return 0; }
Below, do not type an entire program. Only type the portion indicated by the above instructions (and if a sample program is shown above, only type the portion.)
The post Print either “Fruit”, “Drink”, or “Unknown” (followed by a newline) depending on the value of user Item. Print “Unknown” (followed by a newline) if the value of user Item does not match any of the defined options. For example, if user Item = GR_APPLES, output should be: appeared first on nursing assignment tutor.