Question: using c++ 5. In a household electrical total power consumption in a month, the following information are needed: For each device running the power in
5. In a household electrical total power consumption in a month, the following information are needed: For each device running the power in Watts) and number of hours each device is running per day. Assuming there are five major types of devices (ignoring the others) Lights Fans AC Heating Cooking User should enter the number of hours each device run per day (on an average) and Watts for each device. Then the user computes the total power consumption per day as below: totalPower = Fan Watts * Fan Hours + .. (for all devices) User then computes the power consumption for the whole month as: totalPower_month = totalPower * noOfDays Month (this is also an user input) Finally compute the cost of the electricity bill as below: If the total Power month
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
