Answer:
See Explanation
Explanation:
Required
Modify the program
To modify the program, we simply make use of an iterative statement.
To do this, I'll make use of a do while loop.
So, we have:
Declarations
num year = 1
num copies = 100000
num price = 0.15
num total = 0
num COPIES_INCREASE = 0.04
num PRICE_INCREASE = 0.03
do:
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year + 1
while year<=10
The above do while loop enables the program to repeat the statements in the following block:
<em>do:</em>
<em>----</em>
<em>---------</em>
<em>---</em>
<em>-</em>
<em>while year <=10</em>
<em />
The loop calculates the copies & price in each year and also updates the values of the variables; so that they can be used for the nexr iteration
Answer:
working
Explanation:
Ill be typing everything out.i just had to make this an answer so i can change it to my paragraph
Answer:
Explanation:
Allow you to view the document in different ways. Sorry if I am wrong. I am dumb
God bless, stay safe, and good luck! :)
Smart watch. we used to have phones. now we have smart watches!!!!! it could take down the smart phone industry or definitely the watch indusrty