Answer to Question #270996 in C++ for mm21

Question #270996

•      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.


1
Expert's answer
2021-11-24T14:09:48-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS