View the step-by-step solution to:


Hotel Occupancy,
I have to write a program( NESTED LOOPS and FSTREAM) in which i can read a file and count

rooms occupied ( 1 ) and not occupied ( 0 ) and toital floors and also the occupancy rate as well as the rooms in each floor. ( im dont know how many rooms they are in a floor ) and im stuck in the loop.

Top Answer

View the full answer
Hotel Occupancy C.docx

Hotel Occupancy C++
#include <iostream>
#include <iomanip>
using namespace std;
int main()
// Declaring variables I will use for the loop
int numberFloors,

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online