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
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
question
Engineering, 04.07.2019 18:20
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
Answers: 3
question
Engineering, 04.07.2019 19:10
Acircular aluminum shaft mounted in a journal is shown. the symmetric clearance gap between the shaft and journal is filled with sae 10w-30 oil at t 30°c. the shaft is caused to turn by the attached mass and cord. develop and solve a differential equation for the angular speed of the shaft as a function of time.
Answers: 2
question
Engineering, 06.07.2019 03:30
Acubic shaped box has a side length of 1.0 ft and a mass of 10 lbm is sliding on a frictionless horizontal surface towards a 30 upward incline. the horizontal velocity of the box is 20 ft/s. determine how far up the incline the box will travel (report center of mass distance along the inclined surface, not vertical distance)
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
Chemistry, 21.11.2020 03:20
question
Mathematics, 21.11.2020 03:20
question
Mathematics, 21.11.2020 03:20
question
Mathematics, 21.11.2020 03:20
question
Mathematics, 21.11.2020 03:20
question
Mathematics, 21.11.2020 03:20
question
Mathematics, 21.11.2020 03:20
Questions on the website: 13722367