![kayyjayy636](/avatars/464.jpg)
kayyjayy636
22.10.2020 •
Mathematics
Read 3 integer numbers from the user; these numbers represent the lengths of 3 straight lines. From the 3 lengths, determine whether a triangle can be formed with the corresponding lines. If it is possible to form a triangle, determine whether the triangle is a right triangle or not. The rules to be used are: 1. To form a triangle where all lines’ ends meet (form vertices), the sum of the lengths of two sides must be greater than the length of the third side. This short video illustrates this concept: How to determine if the three sides make up a triangle. 2. Per the Pythagorean theorem: in a straight triangle, the square of the length of the longest side (the hypotenuse) is equal to the sum of the squares of the lengths of the other two sides. 3. The user can enter the lengths of each line in any order, i.e.: you may not assume that the first length is the longest or the smallest or the middle value.
Solved
Show answers
More tips
Answers on questions: Mathematics
- M Mathematics Solve for y -3y-12=-4...
- M Mathematics Select the best term from the box name same amount...
- M Mathematics A contractor is supposed to choose 3 tiles out of a stack of 5 tiles to make as many patterns as possible. How many different patterns can he make...
- M Mathematics A group of 8 people went out to lunch. The amount earn spent is shown in the table, Amount Spent Person on Lunch Brandon $12.00 Natalie $8.00 Anna $11.25 Ethan $7.75...
- M Mathematics Can someone please help!?!?...
- M Mathematics Answer the questions below based on the graph of the quadratic function f(x)f(x) and a table of selected values of the quadratic function g(x).g(x)....
- M Mathematics What do a chef lumberjack and a certain motorcycle have in common...
- M Mathematics Jenae has $10,000 to invest. She is considering two investment options. Option A pays 7.14% simple interest. Option B pays 5.96% interest compounded annually. Drag dollar...
- M Mathematics In Circle S angle are you T equals 30° find the angle measure of minor arc RT...
- M Mathematics PLEASEE HURRY Every person who comes to a party wears a shirt with six buttons. Which equation models a relationship between people at the party, X, and the number of...
Ответ:
Written in Python
print("Enter three sides of a triangle: ")
length = []
for i in range(0,3):
inp = int(input(""))
length.append(inp)
length.sort()
if length[1]+length[2] > length[0] and length[0] + length[2] > length[1] and length[0] + length[1] > length[2]:
print("Triangle")
if length[2]**2 == length[0]**2 + length[1] **2:
print("Right Angled")
else:
print("Not Right Angled")
else:
print("Not Triangle")
Step-by-step explanation:
This line prompts user for sides of triangle
print("Enter three sides of a triangle: ")
This line declares an empty list
length = []
The following iteration gets user input
for i in range(0,3):
inp = int(input(""))
length.append(inp)
This line sorts user input
length.sort()
The following if condition checks if user input is triangle
if length[1]+length[2] > length[0] and length[0] + length[2] > length[1] and length[0] + length[1] > length[2]:
The following is executed is the if condition is true
print("Triangle")
The following if condition checks if user input forms a right angled triangle
if length[2]**2 == length[0]**2 + length[1] **2:
print("Right Angled")
else:
print("Not Right Angled")
This is executed if user input is not a triangle
else:
print("Not Triangle")
Ответ:
2x4=8+3=11 = 11/4 final answer is 2 pounds and 3/4
2 groups of pounds ???
Step-by-step explanation: