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, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
question
Engineering, 04.07.2019 19:10
Abarometer contains mercury with a density of 13600 kg/m3. atmospheric conditions are 95.8 kpa and 20 °c at 20 °c, the vapor pressure of the mercury is 0.000173 kpa. the column of mercury will rise to a height of most nearly. select one: a)- 0.38 m b)- 0.82 m c)- 0.48 m d)- 0.72 m
Answers: 1
question
Engineering, 04.07.2019 19:10
Estimate the change in specific internal energy au and specific enthalpy h from inlet to outlet for ethylene glycol (a liquid) flowing through each of the following devices: (a) a heat exchanger where the glycol temperature increases from 20 °c to 80 °c; (b) a pump operating at about 25 °c and increasing the glycol pressure from 100 kpa to 8 mpa.
Answers: 2
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, 19.05.2020 03:10