Question: 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

"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, (ie. 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."

I have to program this into python, and up to 60 days, I'm good. Is there any specific equation or way I can input this do that, for the 40 days after day 60 in which it produces one less than the day before it, I don't have to input each individual value of 61-100?

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!