Write a C program thats asks for your mood and in return giv

Write a C++ program that\'s asks for your mood and in return gives a suggestion on what restaurant to eat at.

Solution

#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int main(){
   int mood;
   cout<<\"1.Loved\ 2.Moody\ 3.Peaceful\ 4.Cheerful\ 5.Exit\"<<endl;
   cout<<\"Mood?\"<<endl;
   cin>>mood;
   switch(mood){
       case 1:
           cout<<\"Goto to \'be loved restaurant victoria\'\"<<endl;
           break;
       case 2:
           cout<<\"goto Bluegrass Barbeque\"<<endl;
           break;
       case 3:
           cout<<\"goto Geja\'s Cafe\"<<endl;
           break;
       case 4:
           cout<<\"goto Cheers Restaurant\"<<endl;
       case 5:
           exit(0);
       default:
           cout<<\"Enter correct Mood\"<<endl;
   }
  
getch();
return 0;
}

Write a C++ program that\'s asks for your mood and in return gives a suggestion on what restaurant to eat at.Solution#include<iostream> #include<conio.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site