Display household with the highest consumption for a selected month

Average power consumption of a selected household between Jun to Dec 2014

 

Order Now
SKU: wufo67

According to the SP service data, the power consumption by household type in Singapore in 2014 is shown in the table.

Electricity Consumption (kWh) in 2014

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
HDB 1-Room 110 123 135 139 139 143 134 131 140 130 122 119
HDB 2-Room 158 179 192 200 197 203 192 184 196 184 177 164
HDB 3-Rooms 237 277 299 312 309 309 287 280 294 273 251 237
HDB 4-Room 323 375 402 428 419 423 394 376 399 373 346 323
HDB 5-Room 376 435 466 500 490 497 460 437 466 436 401 377

 

Write a program to show a menu with options that allows the user to display:

1. Average power consumption of a selected household between Jun to Dec 2014.

2. Maximum quarterly (Jan – Mar, Apr – Jun, Jul – Sep and Oct – Dec) average power consumption of the household.

3. Display the monthly difference between power consumption of HDB 5-Room and average HDB 5-Room power consumption in 2014.

 

You are encouraged to incorporate additional features and functions and implement good, well-documented and structured problem solution.

Examples of additional features (not limiting to only the following):

4. Display household with the highest consumption for a selected month.

5. Display difference between power consumption of HDB 5-Room and combined power consumption of HDB 1-Room, HDB 2-Room and HDB 3-Room for all months.

6. Allowing the user to change the data of the 5 data sets in any month.

 

Reviews

There are no reviews yet.

Be the first to review “Display household with the highest consumption for a selected month”

Your email address will not be published. Required fields are marked *

Sorry no more offers available