subject

The function is named it receives 2 floating point parameters, min and max, from the program that invoked it. the function asks the user to enter a float number. using a while loop it checks whether the number is valid (between min and max, inclusive). if not valid, the while loop uses this statement to prompt for a new number: num = float (input (" enter a number that is at least : "+ str(min) + "and at most: "+ str(max) + " : " once the function decides a number is valid, it returns it to the program. the program inputs 2 floating point numbers, max and min. it then invokes the validity() function with this statement: "validnum = validity(max, min)". once a valid number is returned to the program by the function. the program will print out the values of max, min, and the valid number returned.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
You know the right answer?
The function is named it receives 2 floating point parameters, min and max, from the program that i...
Questions
question
Mathematics, 01.06.2021 22:40
question
Mathematics, 01.06.2021 22:40
question
Mathematics, 01.06.2021 22:40
question
Chemistry, 01.06.2021 22:40
question
Mathematics, 01.06.2021 22:40
Questions on the website: 13722359