Your boss has asked you to create a menu system. The goal of the menu system is
ID: 3692849 • Letter: Y
Question
Your boss has asked you to create a menu system. The goal of the menu system is that you can quickly display important pieces of information. Your boss has provided you with four options, and wants the user to choose an option and then output the provided response.
Create the text menu system that asks your user for an input and then displays the appropriate message. Your system should have the following options:
Choices
Output
Display Temperature
It is sunny and 85F, wind from the North
Display Stock Price
Stock Price as of 2pm is $3.45 per share
Display Word for the Day
achieve
Display Last Account Used
Mr. Jones, (# 12312) was selling his cat
This must be programmed in C++
Your boss has asked you to create a menu system. The goal of the menu system is that you can quickly display important pieces of information. Your boss has provided you with four options, and wants the user to choose an option and then output the provided response.
Explanation / Answer
#include <iostream>
using namespace std;
int main()
{
int choice;
cout<<"Welcome to Info Provider system"<<endl;
cout<<"Press 1 to Display Temperature, 2 to Display Stock Price, 3 to Display Word for the Day, 3 to Display Last Account Used"<<endl;
cout << "enter your choice: ";
cin>>choice;
switch(choice)
{
case 1:cout<<"It is sunny and 85F, wind from the North"<<endl;break;
case 2:cout<<"Stock Price as of 2pm is $3.45 per share"<<endl;break;
case 3:cout<<"Achieve"<<endl;break;
case 4:cout<<"Mr. Jones, (# 12312) was selling his cat"<<endl;break;
default: cout<<"Invalid choice!Please try again!!"<<endl;break;
}
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.