Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The River Bend Hotel needs a program that calculates and displays a customer\'s

ID: 3882781 • Letter: T

Question

The River Bend Hotel needs a program that calculates and displays a customer's total bill. Each customer pays a room charge that is based on a per-night rate. For example, if the per-night rate is $55 and the customer stays two nights, the room charge is $110. Customers also may incur a one-time room service charge and one-time telephone charge. In addition, each customer pays an entertainment tax, which is a percentage of the room charge only. Desk-check your solution's algorithm twice, using your own set of data.

Explanation / Answer

witing the code in c++

#include <iostream>

using namespace std;

int main()
{
float roomcharge, etrtax, telephonecharge,servicecharge;
int numberdays;
float total;


cout << " Enter the customer room's charge" << endl;
cin>>roomcharge;

cout<<" Enter customer number of days stayed";
cin>> numberdays;

cout<<" Enter telephone charge";
cin>>telephonecharge;

cout<<" Enter service charge";
cin>>servicecharge;

cout<<" Enter entertainment tax percentage";
cin >>etrtax;

etrtax = (etrtax * roomcharge) /100;
total = (roomcharge * numberdays) + etrtax + telephonecharge + servicecharge;
cout<<"Total amount is "<<total<<endl;
return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote