(d) Identify the input, output and process required to solve this problem. (e) Write a function named aircondCost that performs this calculation. The function should accept the number of hours per day...

Answer all(d) Identify the input, output and process required to solve this problem.<br>(e) Write a function named aircondCost that performs this calculation. The function<br>should accept the number of hours per day and number of operating days per month. It<br>should return the total electricity cost per month.<br>(f) Write the complete program source code for this problem. You must use function that<br>created in Q3(b) in your program.<br>Input Validation: Do not accept number of months that is less than 0.<br>

Extracted text: (d) Identify the input, output and process required to solve this problem. (e) Write a function named aircondCost that performs this 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. (f) Write the complete program source code for this 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.
Assuming, a lhp air conditioner has a power consumption of 860W regardless of the Energy<br>Efficiency Ratio (EER) or any environmental and weather factors that can cause the air<br>conditioner to consume more energy or less power. As a programmer, you are required to<br>design a C++ program to calculate the cost of electricity used by the 1hp air conditioner in a<br>year. Table Q3 shows the electricity tariff per month. Figure Q3 shows an output example of<br>the program. kWh = power (kW) x hours (h).<br>Table Q3: Electricity usage tariff<br>Electricity Usage<br>Tariff<br>For the first 200 kWh (1-200 kWh) per month<br>25 cents/kWh<br>For the next kWh (201 kWh onwards) per month<br>30 cents/kWh<br>OUTPUT CONSOLE<br>Electricity Cost Calculator<br>(1hp Air Conditioner)<br>No. of operating hours per day: 8 [Enter]<br>No. of operating days per month: 20 [Enter]<br>No. of operating months per year: 12 [Enter]<br>Total electricity cost per year: RM 412.80<br>Figure Q3: Output sample<br>

Extracted text: Assuming, a lhp air conditioner has a power consumption of 860W regardless of the Energy Efficiency 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 [Enter] 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

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here