Question: hello, whenever i enter in a number between 11 and 60 i get an error. also when i enter a number between 61 and 100


day = float(input('Enter in a number of days: ')) if 1 day =10 : widgets =10 day elif 11= day >=60 : widgets =100+(40( day 10)) elif 61= day >100 : print (100+2000+780(99 day )(100 day )/2) print(f'If the machine runs for \{day\}, day(s) then \{widgets\} widgets will be produced. ') C: \ProgramDatalanaconda3/python.exe "6: VHy DrivelEMGR 102 508|ENGR 102 Ileek 4/Lab4b_Act3.py" Enter in a number of days: 15 Traceback (aost recent call last): print ( f 'If the machine runs for \{day\} day(s) then \{widgets) widgets will be produced. ') NameError: name 'widgets' is not defined Process finished with exit code 1 Program 3: Assume a machine during its initial testing phase produces 10 widgets a day. After 10 days of testing (starting on day 11), it begins to run at full speed, producing 40 widgets a day. After 50 days at full speed (days 11-60), it gradually starts becoming less productive, and produces 1 widget less per day, (i.e. 39 widgets on day 61 , etc.) until on day 100 it no longer produces any widgets. Write a program that will read in a day, and will report the total number of widgets produced by that day (including that day). For example, entering 3 would report 30 widgets. (Note: part of the challenge in this program is for YOU to work out the model for how to compute widgets produced in total, given the above information.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
