The program is an illustration of loops
<h3>What are loops?</h3>
Loops are program statements that are used to perform repetition
<h3>The main program</h3>
The program written in Python, where comments are used to explain each line is as follows:
#This initializes sum to 0
summ = 0
#This gets input for the first number
num = int(input())
#This is repeated while num is not -1
while num!= -1:
#This calculates the sum
summ+=num
#This gets input for the num
num = int(input())
#This prints the sum
print(summ)
Read more about loops at:
brainly.com/question/16397886
Answer:
5.4 in.
Step-by-step explanation:
Figuring out the area of shapes like these are quite simple, you first have to break apart this shape to make solving this easier. If you draw a line and break off the triangle from the square you will get 2 different shapes. A square with all the sides being 2 inches, and a triangle that is 2 inches tall and 1.4 inches across (you subtract 3.4 by 2). Next you just use the equation (2 * 2) + ((1.4 * 2)/2). Multiply 2 by 2 (which is 4) and you get the area of the square (you multiply the base by the width). And for the triangle you multiple 1.4 by 2 (you get 2.8)... But because it's a triangle you have to divide that number by 2 since the triangle is half of a square. So 2.8 / 2 is going to be 1.4. After that you now have the equation 4 + 1.4 and the answer is going to be 5.4.
Answer:
27 and 16
Step-by-step explanation:
x + y = 43
x - y = 11
You can add up the two equations so the ys are cancelled out.
2x = 54
x = 27
Plug x in to find y.
27 - y = 11
y = 16
The quadrilateral is either a square or a rectangle as all angles are the same measure (90 degrees)
Answer:
t=1
Step-by-step explanation:
Isolate the variable by dividing each side by factors that don't contain the variable.