The Coconut Grove Palace is a new block of super-luxury apartments being built at the end of Pan American Drive in Coconut Grove. The block has two floors, with three apartments on the first floor and two apartments on the second floor. These are such good apartments that they have all been sold pre-construction, each to a couple (weird, but that's what happens in a society that places more emphasis on image than on family). Anyway, the condo association has agreed on the following rules:

The condo association wants a simple program to help them manage Coconut Grove Palace. The program must keep track of the number of people living in each of the apartments, and provide reports on individual apartments and the building as a whole. The program must be menu driven, with options to: Here what a sample run should look like (with the keyboard input shown in italics) ...
Welcome to Coconut Grove Palace
(A)partment, (B)uilding, (P)eople, e(X)it : b
Floor 1 Apt 1 : 2 people : $1000.00 maintenance
Floor 1 Apt 2 : 2 people : $1000.00 maintenance
Floor 1 Apt 3 : 2 people : $1000.00 maintenance
Floor 2 Apt 1 : 2 people : $1000.00 maintenance
Floor 2 Apt 2 : 2 people : $1000.00 maintenance
(A)partment, (B)uilding, (P)eople, e(X)it : p
Please enter floor number     : 1
Please enter apartment number : 3
How many people will there be : 4
(A)partment, (B)uilding, (P)eople, e(X)it : b
Floor 1 Apt 1 : 2 people : $ 833.33 maintenance
Floor 1 Apt 2 : 2 people : $ 833.33 maintenance
Floor 1 Apt 3 : 4 people : $1666.67 maintenance
Floor 2 Apt 1 : 2 people : $ 833.33 maintenance
Floor 2 Apt 2 : 2 people : $ 833.33 maintenance
(A)partment, (B)uilding, (P)eople, e(X)it : a
Please enter floor number     : 1
Please enter apartment number : 3
Floor 1 Apt 3 : 4 people : $1666.67 maintenance
(A)partment, (B)uilding, (P)eople, e(X)it : p
Please enter floor number     : 2
Please enter apartment number : 2
How many people will there be : 7
ERROR: Too many people for an apartment
(A)partment, (B)uilding, (P)eople, e(X)it : p
Please enter floor number     : 1
Please enter apartment number : 1
How many people will there be : 4
ERROR: Too many people for the floor
(A)partment, (B)uilding, (P)eople, e(X)it : p
Please enter floor number     : 2
Please enter apartment number : 1
How many people will there be : 3
(A)partment, (B)uilding, (P)eople, e(X)it : a
Please enter floor number     : 4
Must be in range 1 to 2 : 1
Please enter apartment number : 6
Must be in range 1 to 3 : 3
Floor 1 Apt 3 : 4 people : $1538.46 maintenance
(A)partment, (B)uilding, (P)eople, e(X)it : b
Floor 1 Apt 1 : 2 people : $ 769.23 maintenance
Floor 1 Apt 2 : 2 people : $ 769.23 maintenance
Floor 1 Apt 3 : 4 people : $1538.46 maintenance
Floor 2 Apt 1 : 3 people : $1153.85 maintenance
Floor 2 Apt 2 : 2 people : $ 769.23 maintenance
(A)partment, (B)uilding, (P)eople, e(X)it : x

You must ...