subject
Engineering, 18.02.2020 00:31 izzyisawesome5232

Using Python, have your program do the following, using loops (no recursion)

1. Have the user repeatedly enter integers until they enter a negative number. At that point stop inputting and proceed to the output described in step two. Note: The negative number that terminates the input is not included in any of these results.
2. When the input is done, display the following if there was at least one valid (non -negative) number entered:

(a) The sum of the numbers entered in that loop
(b) How many numbers were entered
(c) The average of those numbers to two places (avoid integer division.)
(d) The lowest number input
(e) The highest number input

If there were no (valid) numbers entered, make sure your code displays the message "no valid numbers entered" (and avoids dividing by 0) instead of displaying a - e below.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 18:20
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
You know the right answer?
Using Python, have your program do the following, using loops (no recursion)

1. Have the...
Questions
question
Mathematics, 02.12.2020 17:50
question
English, 02.12.2020 17:50
question
Mathematics, 02.12.2020 17:50
question
Mathematics, 02.12.2020 17:50
question
Mathematics, 02.12.2020 17:50
Questions on the website: 13722367