Code:
int totalRooms = 0; //Added here.
int totalOccupied = 0; //Added here
...
...
for(i=1; i<=floor; i++){
System.out.print("How many rooms are there?: ");
room = scan.nextInt();
totalRooms += room; //Added here.
if( room < 10){
System.out.println("Error, enter a number greater than 10");
System.exit(0);
}
System.out.print("How many rooms are occupied?: ");
occupied = scan.nextInt();
totalOccupied += occupied; //Added here
}
rate = (totalRooms / totalOccupied); //determines occupancy rate //Added here
vacant = (totalRooms - totalOccupied); //determine vacant rooms //Added here
System.out.println("Number of rooms:" + totalRooms); //Added here
System.out.println("Number of Occupied rooms:" + totalOccupied); //Added here
I think this is what you are asking for. I put comments on the rows that I added. If this was the answer you are looking for you were very close

. If you have any other questions feel free to ask.