Please follow the direction.
then iterate once for each floor. In each iteration, the loop should ask the user for the number of rooms on the floor and how many of them are occupied. After all the iterations, the program should display how many rooms the hotel has, how many of them are occupied, how many how many are unoccupied, and the percentage of rooms that are occupied. The percentage may be calculated by dividing the number of rooms occupled by the number of rooms Hotel Occupancy Basic Steps in Creating your Program 1. Plan your logic before working on the project and review the syntax you will use in the project. Think about how you want the lines of output to be displayed to the user. You will want to tell the user what the program does and what type of input you expect from the user (Introduction to the User). Select names of the variables you will use in the program. NOTE: It is traditional that most hotels do not have a thirteenth floor. The loop in this program should skip the entire thirteenth iteration. 2. Create a C++ project in Visual Studio 2012, And have the code window open to write the project code. Display Using Visual Studio to create your program in C++ and follow the instructions on creating the project. Input Validation: Do not accept a value less than 1 for the number of floors. Do not accept a number less than 10 for the number of rooms on a floor. Declare variables to hold information about USER. Using cout Set up information about this program and what the user will enter and results expected . Example of output: . . Ask the user to enter some information requested and save the one away ron hone and hosiptality at ita hest e uill treat you like never before response to a variable using the cout and getline(cin, name) syntax. If the cin is used for a number, make sure you use the ignore) syntax. Make sure the position for the user to enter information is on the same line as the request for information Use line spacing (endl or ) to separate lines of output to make it easy for the user to read the information heck out our rates ingle R 39 night Douhle Roon: $6 per night . xecutive Roon: 120-per night his proyrar, calculate the OCupany rate of this Hotel asy many floor* are in this Hot": 1 ? 3 3. Documentation: All lines of code must be documented .Use the syntax to designate lines in code as comments (//) . These comments can be at the end of a line of code or in a group definition at the beginning of a section of code. All methods and function need a group heading document ow many roons re ccupied in this loor? 25 ow many roo are oceupied in this floor? 26 ow many oon a occupied in this floor? 27 Enternunbcr of rooma on FLoor 2: 30 4. Run the program using Ctrl+F5. Debug the code, making sure all calculations are correct and the line spacing is suitable for readability 5. Include the looping control structure so that the user can repeat the entry of information without the program exiting. Ask the user if laa Uegas Hate1s Occupancy Roon Eunnary today otal Rooma in Hotel 90 otal Rooms Occupied 78 otal Roons Available 12 otel Occupancy Rate 86.?% ress any key to continue.. they want to run the program again or exit. 6. In displaying the calculated output, remember to use the setprecision), fixed and setw() to correctly format the output Your program Assignment Write a program that calculates the occupancy rate for a hotel. The program should start by asking the user how many floors the hotel has. A loop should