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
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 18:10
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
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, 02.12.2019 01:31
Questions on the website: 13722363