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
I wish I knew but same profile pic pog
-
Kskkzkzkzkskskamamiixushvsjsjajahhzuzyahsuxushvzxhyxxhb
Given:
After driving for 20 minutes, Juan was 62 miles away from his apartment.
After driving for 32 minutes Juan was only 38 miles away.
The time driving and the distance away from his apartment form a linear relationship.
To find:
The independent and dependent variables.
Solution:
If the value of a variable depends on the another, then it is called dependent variables.
If the value of a variable does not depend on the another, then it is called independent variables.
In the given problem, the distance of Juan from his apartment depends on the time he drove. So,
Dependent variable = Distance of Juan from his apartment in miles.
Independent variable = Time he drove
Answer: x = (1,9]
Step-by-step explanation: If x is all real numbers greater than 1 (simply: x is greater but not equal to 1) then it is 1 < x. And if x is less than or equal to 9 then its x ≤ 9. To translate 1 < x ≤ 9 into interval notation, you need to keep in mind that parentheses are for these symbols: <>. And brackets are for these symbols: ≤≥. With that in mind, your answer is (1,9]. Also, keep in mind that interval notation goes from lowest value number to highest, so you wouldn’t write this notation as [9,1).