Computers and Technology, 27.08.2021 15:50 kim95207
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of (x minus y), and the square root of (x to the power of z). Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('%0.2f %0.2f %0.2f' % (your_value1, your_value2, your_value3))
Ex: If the input is:
5.0 6.5 3.2
Then the output is:
2.24 3.30 24.00
my code so far
import math
x = input(int)
y = input(int)
z = input(int)
your_value1 = math. sqrt((x))
your_value2 = abs((y-z))
your_value3 = math. factorial(math. ceil((z)))
print('%0.2f %0.2f %0.2f' % (your_value1, your_value2, your_value3))
returns the error code
Traceback (most recent call last):
File "main. py", line 6, in
your_value1 = math. sqrt((x))
TypeError: must be real number, not str
Answers: 3
Computers and Technology, 21.06.2019 22:00
What must you do before formatting a paragraph?
Answers: 1
Computers and Technology, 22.06.2019 05:00
Which two editions of windows 7 support 64 bit cpus? choose two out of professional, business, starter, or home premium.
Answers: 1
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to...
History, 12.11.2020 20:30
Spanish, 12.11.2020 20:30
Geography, 12.11.2020 20:30
English, 12.11.2020 20:30
Mathematics, 12.11.2020 20:30
Physics, 12.11.2020 20:30
History, 12.11.2020 20:30
Chemistry, 12.11.2020 20:30
Mathematics, 12.11.2020 20:30
Arts, 12.11.2020 20:30
Biology, 12.11.2020 20:30
Mathematics, 12.11.2020 20:30