Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

See Canvas for more details. Assume a machine during its initial testing phase produces 1 0 gadgets a day. After 1 0 days of testing

See Canvas for more details. Assume a machine during its initial testing phase produces 10 gadgets a day. After 10 days of testing (starting on day 11), it begins to ramp up, producing 1 more gadget per day (11 gadgets on day 11,12 on day 12, etc). On day 50 it reaches full speed, where it continues to run until on day 101 it stops producing gadgets. Write a program named how_many_gadgets.py that reads in a day (as a number) from the keyboard and reports the total number of gadgets produced from the initial testing phase up to and including the day entered.
Example output (using input 3):
Please enter a positive value for day: 3
The sum total number of gadgets produced on day 3 is 30
Example output (using input -1):
Please enter a positive value for day: -1
You entered an invalid number!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

Distinguish between a database lockout and a deadlock.

Answered: 1 week ago

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago