discover the room rate for requested #people and type
Error if one two NA situation
Calculate Room rate, and total cost for # nights staying
***Here is what I have so far ...
/// PWD 12/2/15 ///
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
cout << "Hello and Welcome to Hotel Snob " << endl;
Sleep (2000);
cout << "We have 3 different rooms, for three different prices" <<endl;
Sleep (3000);
cout << "===================================" <<endl;
cout << " -The Budget room costs 100 per night " <<endl;
cout << " per person & can hold up to " <<endl;
cout << " 2 people. " <<endl;
cout << "===================================" <<endl;
Sleep (2000);
cout << "-The Mid Price room costs 200 per night" <<endl;
cout << " for 1, person plus 100 for each " <<endl;
cout << " extra person. " <<endl;
cout << "===================================" <<endl;
Sleep (2000);
cout << " -Penthouse rooms must have two or " <<endl;
cout << " more people, they are 500 O" <<endl;
cout << " plus another 500 for a third person. |" <<endl;
Sleep (2000);
cout << "===============================================" <<endl;
cout << " " <<endl;
cout << " Enter the first letter of the room you want " <<endl;
cout << " Next the # of people and number of nights " <<endl;
Sleep (2000);
cout << " " <<endl;
cout << " For Budget rooms enter 'b' " <<endl;
Sleep (1500);
cout << " " <<endl;
cout << " For Mid Price rooms enter 'm' " <<endl;
Sleep (1500);
cout << " " <<endl;
cout << " For Penthouse rooms enter 'p' " <<endl;
Sleep (1500);
cout << " " <<endl;
cout << "===============================================" <<endl;
cout << " " <<endl;
Sleep (1500);
char myRoom;
char myPeople;
char myNight;
cout << "Please enter your desired room:" <<endl;
cin >> myRoom;
// budget
if (myRoom == 'b')
{
cout << "Budget Room" <<endl;
Sleep (1500);
cout << "Enter the number of people in your group: " <<endl;
cin >> myPeople;
}
else if (myRoom == 'm')
{
cout << "Mid Price Room" <<endl;
Sleep (1500);
cout << "Enter the number or people in your group: " <<endl;
cin >> myPeople;
}
else if (myRoom == 'p')
{
cout << "Penthouse Room" <<endl;
Sleep (1500);
cout << "Enter the number of people in your group: " <<endl;
cin >> myPeople;
So the trouble is [(myPeople*100)] would this be a valid way to do a multiplication problem for the total cost of the room and the number of people. Sorry for confusing you with all of the code I just wanted people to understand how it would work its way down to the math problems.