subject
Computers and Technology, 07.10.2019 18:20 Ncale

This lab problem demonstrates the use of import module. the python programming language has many strengths, but one of its best is the availability to use many existing modules for various tasks, and you do not need to be an experienced computer programmer to start using these modules. we have given you some incomplete code; note that the very first line of that code contains an import statement as follows: import maththis statement enables your program to use a math module. a module is a collection of instructions saved together as a whole. so, in this lab you are using the math module. any time we choose to use a module, we must use an import statement to bring this module into the program. when we import the math module, all the computer instructions contained in the math module are made available to our program, including any functions that have been defined. if you are interested in finding out what is in the math module you can always go to the python docs and take a look: python docsexample of using the math module: print(math. floor(5.4)) will use the floor() function as defined in the math module, and in this case with the argument 5.4, will result in printing the value 5.below is the definition of your problem that we are asking you to solve using the math module. prompt the user for floating point numbers x, y and z. for the x value your you will the use the following prompt enter x value: inside of your input statement. using the same approach you will prompt the user for y and z.- given three floating-point numbers x, y, and z, your job is to output - the **square root** of x, - the **absolute value** of (y minus z) , and - the **factorial** of (the **ceiling** of z). example of a sample run: enter x value: 5 enter y value: 6.5 enter z value: 3.2then the expected output from these entries is: 2.23606797749979 3.3 24hint: for finding out the square root you will need to use math. you need to use the website recommended above to find out which functions to use in order to solve the rest of the lab problem.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
Answers: 3
question
Computers and Technology, 24.06.2019 00:50
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
This lab problem demonstrates the use of import module. the python programming language has many str...
Questions