Question: Program # 2 : Built - In Functions ( 2 5 pts ) Create a Python program named test 1 - 2 . py o

Program #2: Built-In Functions (25 pts) Create a Python program named test1-2.py o You do not need to use or create any user-defined functions in this program o You need to import random, time, math libraries o You need to use time.sleep(), random.randrange(), math.sqrt()and math.pow()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: o Sleep (pause) for that many seconds o 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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!