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 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
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, 06.12.2020 23:30
question
Mathematics, 06.12.2020 23:30
question
Arts, 06.12.2020 23:30
question
Mathematics, 06.12.2020 23:30
question
Mathematics, 06.12.2020 23:30
Questions on the website: 13722366