Zetpol International Logo
Homepage | Book A Room | Book A Room Videos
The Forgetting Room A Fiction byzantium Book Nick B

The Forgetting Room A Fiction byz..

Cosimos Room A Murder Mystery book Brand New

Cosimo s Room A Murder Mystery bo..

£7.31

More Tales From A Long Room By Peter Tinniswood Book

More Tales From A Long Room By Pete..

£0.99

Books Do Furnish A Room new Edition  Anthony Powell

Books Do Furnish A Room new Editio..

£9.38

The Upper Room Disciplines A Book Of Daily Devotions

The Upper Room Disciplines A Book ..

£8.85

The Upper Room Disciplines A Book Of Daily Devotio

The Upper Room Disciplines A Book ..

£5.12

Wrong Rooms A Memoir Mark Sanderson Very Good Book

Wrong Rooms A Memoir Mark Sanders..

£4.25



Book A Room

Book a room information

Butterfly Decal Dragonfly Girls Insect Book Room A030
£2.05
The Forgetting Room A Fiction byzantium Book Nick B
£3.14

C++ Experts : Creating a program 4 a guest house that : booking a room, validating booking, display no, of ppl?
DECIDE YOURSELFCecil and Belinda are the managers of a guest house with 22 rooms that can all be used as single or as double rooms.The tariff for a single room is R280. The tariff for a double room for two persons who share is R400. Breakfast isincluded in the price.Cecil and Belinda want a C program that they can run at the beginning of each week. The program should do thefollowing for each of the seven days input the booking thus the number of single rooms and the number of double rooms for that night.validate the booking if more than 22 rooms are booked, a message should be displayed that indicates that thebooking is impermissible and repeatedly prompts the user to enter the two numbers again until the input iscorrect.display the number of persons that will have breakfast the next morning.display the income.Finally the total income for the week should be displayed.You have to write this program. The program should consist of five functions. Declare constants for the tariffs, thenumber of rooms in the guest house and the number of days.Main function declare the following variables int nrSingle, nrDouble, nrGuests float income, totalIncome and initialise totalIncome to 0.Use a for loop going from 1 to the number of days namely 7 . The other four functions have to be calledinside the loop. When the loop has been exited, the total income should be displayed.Function inputInformation This function involves the input. The specific booking, thus the number of single rooms and the number ofdouble rooms, is input and checked that it is not more than 22 rooms in total. If the booking involves morethan 22 rooms, a prompting message should be displayed and the two numbers have to be entered repeatedlyuntil the total is no longer greater than 22. Decide yourself on the type of function and the number and type s of the parameter s . FFunction numberForBreakfast This function determines the number of guests for breakfast the next morning. Decide yourself on the type offunction and the number and type s of the parameter s . Function incomeOneNight This function calculates the income from the specific booking. Decide yourself on the type of function and thenumber and type s of the parameter s . Function displayNumberAndAmount This function displays the number of guests for breakfast and the income from the specific booking. Decideyourself on the type of function and the number and type s of the parameter s . Follow the conventions of theStudy Guide.Run your program on the data below where the first number represents the number of single rooms and the secondnumber represents the number of double rooms. Submit printouts of the program and output.4 68 129 25 140 1817 107 1015 155 15

C++ Experts : Creating a program 4 a guest house that : booking a room, validating booking, display no, of ppl?
Cecil and Belinda are the managers of a guest house with 22 rooms that can all be used as single or as double rooms.The tariff for a single room is R280. The tariff for a double room for two persons who share is R400. Breakfast isincluded in the price.Cecil and Belinda want a C program that they can run at the beginning of each week. The program should do thefollowing for each of the seven days input the booking thus the number of single rooms and the number of double rooms for that night.validate the booking if more than 22 rooms are booked, a message should be displayed that indicates that thebooking is impermissible and repeatedly prompts the user to enter the two numbers again until the input iscorrect.display the number of persons that will have breakfast the next morning.display the income.Finally the total income for the week should be displayed.You have to write this program. The program should consist of five functions.Declare constants for the tariffs, thenumber of rooms in the guest house and the number of days.Main function declare the following variables int nrSingle, nrDouble, nrGuests float income, totalIncome and initialise totalIncome to 0.Use a for loop going from 1 to the number of days namely 7 . The other four functions have to be calledinside the loop. When the loop has been exited, the total income should be displayed.Function inputInformation This function involves the input. The specific booking, thus the number of single rooms and the number ofdouble rooms, is input and checked that it is not more than 22 rooms in total. If the booking involves morethan 22 rooms, a prompting message should be displayed and the two numbers have to be entered repeatedlyuntil the total is no longer greater than 22. Decide yourself on the type of function and the number and type s of the parameter s . FFunction numberForBreakfast This function determines the number of guests for breakfast the next morning. Decide yourself on the type offunction and the number and type s of the parameter s .Function incomeOneNight This function calculates the income from the specific booking. Decide yourself on the type of function and thenumber and type s of the parameter s .Function displayNumberAndAmount This function displays the number of guests for breakfast and the income from the specific booking. Decideyourself on the type of function and the number and type s of the parameter s . Follow the conventions of theStudy Guide.Run your program on the data below where the first number represents the number of single rooms and the secondnumber represents the number of double rooms. Submit printouts of the program and output.4 68 129 25 140 1817 107 1015 155 15

Bookmark Book A Room

 
Sitemap | Terms of Use | Privacy Policy | Contact