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

using c++
using c++ 5. In a household electrical total power consumption in a

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

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!