Answer to Question #270997 in C++ for mm21

Question #270997

•      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-24T13:48:08-0500
#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;
}

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