• 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>
using namespace std;
int main(){
cout<<"('G' for garden view, 'P' for pool view, or 'L' for lake view)\n";
char type;
cin>>type;
cout<<"Enter the number of days \n";
int n;
cin>>n;
cout<<"Enter y if guest is to have a refrigerator in the room otherwise\n";
char r;
cin>>r;
cout<<" Enter yes there is to be an extra bed in the room\n";
char y;
cin>>y;
}
Comments
Leave a comment