• The Easy Living resort hotel wants you to write a program to calculate the base charge for its guests. The program should prompt the user for the room type ('G' for garden view, 'P' for pool view, or 'L' for lake view) and the number of days the guest is to stay. The program also should prompt for whether the guest is to have a refrigerator in the room and whether there is to be an extra bed in the room.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
char option;
int days;
cout<<"Welcome to Easy living resort Hotel"<<endl;
cout <<"Enter the room type \nG for garden view \nP for pool view \nL for lake view: "<<endl;
cin>>option;
cout<<"Enter the number of days you would like to stay: "<<endl;
cin>>days;
cout<<"Would you like to have a refrigerator \nY for yes \nN for no: "<<endl;
cin>>option;
cout<<"Is there an extra bed \nY for yes \nN for no: "<<endl;
cin>>option;
return 0;
}
Comments
Leave a comment