Question: Write a python program for the following problem? 100. Cost of Electricity formula The cost of the electricity used by a device is given by
Write a python program for the following problem?

100. Cost of Electricity formula The cost of the electricity used by a device is given by the cost of electricity (in dollars) = wattage of device. hours used 1,000 cost per kWh (in cents) where kWh is an abbreviation for "kilowatt hour. The cost per kWh of electricity varies with locality. Suppose the current average cost of electricity for a residential customer in the United States is 11.76 per kWh. Write a program that allows the user to calculate the cost of operating an electrical device. Figure 2.10 calculates the cost of keeping a light bulb turned on for an entire month. Enter wattage: 100 Enter number of hours used: 720 Enter price per kWh in cents: 11.76 Cost of electricity: $6.12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
