language C++ Transcribed Image Text: Assuming, a lhp air conditioner has a power consumption of 860W regardless of the Energy Eficiency

Excerpt
per month. It should return the total electricity cost per month. () Write the complete program source code for ts problem. You must use function that created in Q3(b) in your program. Input Validation: Do not accept number of months that is less than 0.

language C++ Transcribed Image Text: Assuming, a lhp air conditioner has a power consumption of 860W regardless of the Energy
Eficiency Ratio (EER) or any environmental and weather factors that can cause the air
conditioner to consume more energy or less power. As a programmer, you are required to
design a C++ program to calculate the cost of electricity used by the 1hp air conditioner in a
year. Table Q3 shows the electricity tariff per month. Figure Q3 shows an output example of
the program. kWh = power (kW) x hours (h).
Table Q3: Electricity usage tariff
Electricity Usage
Tariff
For the first 200 kWh (1-200 kWh) per month
25 cents/kWh
For the next kWh (201 kWh onwards) per month
30 cents/kWh
OUTPUT CONSOLE
Electricity Cost Calculator
(1hp Air Conditioner)
No. of operating hours per day: 8 [Bnter]
No. of operating days per month: 20 [Enter]
No. of operating months per year: 12 [Enter]
Total electricity cost per year: RM 412.80
Figure Q3: Output sample
(d) Identify the input, output and process required to solve ts problem.
(e) Write a function named aircondcost that performs ts calculation. The function
should accept the number of hours per day and number of operating days per month. It
should return the total electricity cost per month.
() Write the complete program source code for ts problem. You must use function that
created in Q3(b) in your program.
Input Validation: Do not accept number of months that is less than 0.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer