Question: MODIFY PSEUDOCODE BELOW / / The FastCopy company currently makes 1 0 0 , 0 0 0 copies per year at 1 5 / /

MODIFY PSEUDOCODE BELOW
// The FastCopy company currently makes 100,000 copies per year at 15
// cents each. They expect to increase the number of copies produced
// by 4 percent per year each year for the next 10 years, starting with
// this year. They also expect the price of each copy to increase by 3
// cents per year, starting with this year. This program displays the
// company's expected income for each of the next 10 years. Modify it to
// be more efficient by using a while loop and correct any mistakes with
// variable values, etc. You may have to add a new variable as well. You
// may go ahead and remove repeated code.
start
// Declarations
num year =1
num copies =100,000
num price =15
num total
num COPIES_INCREASE =4
num PRICE_INCREASE =3
num YEARS
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
year = year +1
copies = copies + copies * COPIES_INCREASE
price = price + price * PRICE_INCREASE
total = total + copies * price
output year, total
stop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!