Question: the Wifi router power consumption E ( k W h ) in kilowatt - hour is equal to the wifi router wattage times of the

the Wifi router power consumption E(kWh) in kilowatt-hour is equal to the wifi router wattage times of the total on times per day in hours divided by 1000. The formula can be written as,
E(kWh- wifi )=WattageHoursperday1000
rite a Python program that does the following:
Prompt the user to enter the wattage, which is an integer number.
Prompt the user to enter the hours, which is a number.
Prompt the user to enter the choice indicating the desired power consumption to be for day, month or year (1 for day, 2 for month, 3 for year)
If wattage is less than 15 or larger than 100, then set wattage =15
If wattage is larger than 100, then set wattage =100
Using an if/elif/else control structure compute the power consumption using the formula given above, and considering the user choice, assign the correct value of power consumption in a variable called e_consumption.
(Note:The above formula is suitable for calculating per day electricity consumption of a wifi. and note also that month =30 days and year =365 days).
Using f-strings, produce two output lines: the first displays the user's data and the second displays the electricity consumption e_consumption value. (Hint: do not use a print statement in the iffelif/else control structure). The output should be as below:
 the Wifi router power consumption E(kWh) in kilowatt-hour is equal to

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!