subject
Engineering, 29.03.2021 06:00 FavvBella84

You do not need to use or create any user-defined functions in this program You need to import random, time, math libraries
You need to use time, sleep 0, candom. randrange (), math. sgrt () and
rath. pou () functions (see examples from handout from week 4 and 5)
Prompt the user for a number (float)
Use that number to output for things using built-in Python functions:
Sleep (pause) for that many seconds
Output a random number between 1 and the number entered by the user
o Output the square root of the number entered by the user
o Output the result of the number entered by the user to the power of 2
Your output should look like the same run below (but should allow for user input of the number)
Sample Run (based on user input of 4)
Please enter a number: 4
Sleeping for 4.0 seconds
Random number is: 2
The square root of 4,0 =2.0
4.0 to the power of 2 = 16.0

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
question
Engineering, 04.07.2019 18:10
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
question
Engineering, 04.07.2019 18:20
For a gate width of 2 m into the paper, determine the force required to hold the gate abc at its location.
Answers: 1
You know the right answer?
You do not need to use or create any user-defined functions in this program You need to import rand...
Questions
question
Mathematics, 29.12.2021 14:00
Questions on the website: 13722363