Third problem area.
Room Fee.
cout << "Your room fee is:" << setw(21) << "$" << room_fee << endl;
cout << endl;
Day of event.
cout << "Enter the day of your event:";
cin >> week_day;
if (week_day == 'Monday' || week_day == 'monday' || week_day == 'Tuesday' || week_day == 'tuesday' || week_day == 'Wednesday' || week_day == 'wednesday' || week_day == 'Thursday' || week_day == 'thursday')
{
cout << "No extra fee";
}
else if ( week_day == 'Friday' || week_day == 'friday' || week_day == 'Saturday' || week_day == 'saturday' || week_day == 'Sunday' || week_day == 'sunday')
{
cout << "You will have a 7% fee added to your bill";
}
Here are the errors Visual C++ outputs.
--------------------Configuration: hw6 - Win32 Debug--------------------
Compiling...
hw6.cpp
C:\Documents and Settings\Neal E. Williams\Desktop\hw6\hw6.cpp(122) : error C2015: too many characters in constant
etc thru line 126.
hw6.obj - 14 error(s), 0 warning(s)
Room Fee.
cout << "Your room fee is:" << setw(21) << "$" << room_fee << endl;
cout << endl;
Day of event.
cout << "Enter the day of your event:";
cin >> week_day;
if (week_day == 'Monday' || week_day == 'monday' || week_day == 'Tuesday' || week_day == 'tuesday' || week_day == 'Wednesday' || week_day == 'wednesday' || week_day == 'Thursday' || week_day == 'thursday')
{
cout << "No extra fee";
}
else if ( week_day == 'Friday' || week_day == 'friday' || week_day == 'Saturday' || week_day == 'saturday' || week_day == 'Sunday' || week_day == 'sunday')
{
cout << "You will have a 7% fee added to your bill";
}
Here are the errors Visual C++ outputs.
--------------------Configuration: hw6 - Win32 Debug--------------------
Compiling...
hw6.cpp
C:\Documents and Settings\Neal E. Williams\Desktop\hw6\hw6.cpp(122) : error C2015: too many characters in constant
etc thru line 126.
hw6.obj - 14 error(s), 0 warning(s)