First question, "it is traditional that most hotels do not have a thirteenth floor. The loop in this program should skip the entire thirteenth interation." No really sure how to go about this and it's frustrating me.

Second question, the program as of right now only calculates the last iteration of the loop. It doesn't calculate the other interations in the loop.

I'm not really sure how to go about this but here is my code so far. I appologize if this code is so far away from correct it hurts you professional guys. But thanks in advance for taking a look! I know you guys won't let me down!

#include <iostream> using namespace std; int main() { int floors, rooms, occupied, unoccupied, num = 0, num1 = 0; cout<< "How many floors does your hotel have? \n"; cin>>floors; if (floors < 1 && floors > 13) { cout<< "Number of floors can't be less than 1. Reenter number of floors : \n"; cin>>floors; } while (num++ < floors) { cout<< "Floor "<<num<<"\nHow many rooms are on this floor? \n"; cin>>rooms; if(rooms < 10) { cout<< "Number of rooms has to be more than 10. Reenter number: \n"; cin>>rooms; } cout<< "How many rooms are occupied? \n"; cin>>occupied; if(occupied > rooms) { cout<< "You have more rooms occupied than you have on the floor? Interesting! Reenter number: \n"; cin>>occupied; } } unoccupied = rooms - occupied; cout<< "********************************************************* \n"; cout<< "Floors.........................................."<<floors<<endl; cout<< "Occupied........................................"<<occupied<<endl; cout<< "Unoccupied......................................"<<unoccupied<<endl; cout<< "********************************************************* \n"; return 0; }