subject

Write a python program to: ask the user to enter two integers: int1 and int2. the program uses the exponential operator to calculate and then print the result when int1 is raised to the int2 power. you also want to calculate the result when int1 is raised to the .5 power; however, you realize that it is not possible to take the square root of a negative number. if the value for int1 that is entered is a negative number, print a message to the user explaining why you cannot complete the task. otherwise, calculate the square root and print it. finish the program by printing the values of int1 and int2.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 24.06.2019 19:20
Which command suppresses the visibility of a particular row or column in a worksheet?
Answers: 1
You know the right answer?
Write a python program to: ask the user to enter two integers: int1 and int2. the program uses the...
Questions
question
Social Studies, 13.10.2020 05:01
question
Social Studies, 13.10.2020 05:01
question
Geography, 13.10.2020 05:01
question
Mathematics, 13.10.2020 05:01
Questions on the website: 13722361