subject
Engineering, 30.08.2019 23:10 carlosarriaza60

Write a script that prompts users to enter a value between 2 to 5 inclusive, then it continuously generates random numbers (between 0 and 10) (once per half second) until the random number is greater than the entered value. finally, the script display the number of running time. your program should show: • if user enters incorrect values, inform them and ask for a new value again • when user enters a right number, generate random numbers (between 0 and 10) (once per half second) until the random number is greater than the entered value. you should display the random values every time they are generated • display the number of time that the loop has run until the random number is greater than the entered value

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
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:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
You know the right answer?
Write a script that prompts users to enter a value between 2 to 5 inclusive, then it continuously ge...
Questions
question
Mathematics, 22.10.2020 17:01
question
Mathematics, 22.10.2020 17:01
question
Mathematics, 22.10.2020 17:01
question
Mathematics, 22.10.2020 17:01
Questions on the website: 13722367