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
Justin wants to paint his room. So he put together some
quotations from two different painters. The first painter's total charge was
based on the number of hours (denoted as x) worked was modeled as
f( x ) = 70 + 5 x, while that of the second painter was
g( x ) = 30 + 15 x. Justin knows that it will take more than 4
hours to decorate the house so he was certain to go with the first painter
whose cost is low-priced when the number of hours is above 4 hours.
Answer:
$0.80
Step-by-step explanation:
-3 (1x + 1y = 3.2)
3x + 1y = 8
----------------
-3x - 3y = -9.6
+
3x + 1 y = 8
-------------------
0x -2y = -1.6
÷ -2
-----------------
y = 0.8
one hamburger costs $0.80
Answer:
b
Step-by-step explanation:
liquidity risk. because the shorter the term the lesser the liquidity.