Question: Question 4 ( 1 6 marks ) Statistical data of flat rental cost is available for 8 different flats. Write a C + + program

Question 4
(16 marks )
Statistical data of flat rental cost is available for 8 different flats. Write a C++ program that defines a two dimensional array named rental of size 812, that to store yearly rental statistics in which each row represents a flat and each column represents a year. The program should first read the data from the keyboard into the array rental. The program should then ask the user to enter a flat number (0-7), then display the average rental cost for the last 5 years for that flat.
 Question 4 (16 marks ) Statistical data of flat rental cost

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!