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 in kilowatthour is equal to the wifi router wattage times of the total on times per day in hours divided by The formula can be written as
wifi
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 for day, for month, for year
If wattage is less than or larger than then set wattage
If wattage is larger than then set wattage
Using an ifelifelse 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 econsumption.
Note:The above formula is suitable for calculating per day electricity consumption of a wifi. and note also that month days and year days
Using fstrings, produce two output lines: the first displays the user's data and the second displays the electricity consumption econsumption value. Hint: do not use a print statement in the iffelifelse control structure The output should be as below:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
