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, 21.06.2019 21:20
Your program will make use of long long int variables for all calculations. note: the use of long long int requires that you have c++11 support. you should have this automatically if you are using a newer version of visual studio. the support is there for gcc as well, but you may need the -std=c++11 or -std=c++0x compiler flag. you first need to read in the total number of seconds. there is no prompt for the read (that is, you just do the cin without using a cout to display a prompt). this is going to seem a little strange when you are running your program in your ide
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
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, 17.11.2020 20:20
question
Chemistry, 17.11.2020 20:20
question
Mathematics, 17.11.2020 20:20
question
Mathematics, 17.11.2020 20:20
question
English, 17.11.2020 20:20
question
Mathematics, 17.11.2020 20:20
question
Computers and Technology, 17.11.2020 20:20
question
History, 17.11.2020 20:20
question
Mathematics, 17.11.2020 20:20
question
Mathematics, 17.11.2020 20:20