The following table shows the number of customers staying in each room on each o
ID: 646001 • Letter: T
Question
The following table shows the number of customers staying in each room on each of the five floors in a hotel. Each row represents a floor and the five numbers in each row represent the number of people staying in each of the five rooms.
1 2 4 4 3
2 3 3 1 4
2 2 1 1 3
2 32 2 1
4 2 2 1 2
Create the text file floors.txt with the numbers as shown in the table. Write a program that will read the file and display the total number of customers staying on each floor. The program output will look somewhat like this: 14 people stay on floor 1 13 people stay on floor 2