// The QuickCopy 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.startDeclarationsnum year = 1num copies = 100000num price = 0.15num total = 0num COPIES_INCREASE = 0.04num PRICE_INCREASE = 0.03copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalyear = year + 1copies = copies + copies * COPIES_INCREASEprice = price + price * PRICE_INCREASEtotal = total + copies * priceoutput year, totalstop

Answers

Answer 1

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:

do:

----

---------

---

-

while year <=10

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


Related Questions

why use a chart legend?

Answers

Answer:

A legend or key helps the user build the necessary associations to make sense of the chart.

Explanation:

Legends summarize the distinguishing visual properties such as colors or texture used in the visualization.

Create a list called numbers containing the values from 1 through 15, then use slices to perform the following operations consecutively: a. Select number’s even integers. b. Replace the elements at indices 5 through 9 with 0s, then show the resulting list. c. Keep only the first five elements, then show the resulting list. d. Delete all the remaining elements by assigning to a slice. Show the resulting list.

Answers

Answer:

Kindly check explanation

Explanation:

From python :

List containing values from 1 through 15:

my_list = list(range(1,16))

#creates a list of values from 1 to 15,(16 is excluded)

B.) select even integers :

for digits in my_list :

if digit%2 == 0;

print(digit)

# prints numbers in the list which does not leave a remainder when divided by .

C.)

for digits in my_list[4,9]:

my_digit[digits] = 0

my_digits

#Replaces the elements at indices 5 through 9 with 0s, then show the resulting list.

D.)

my_digits[:5]

#selects digits with index 0 up to 4

E.)

del my_digits[:5]

#DELETE elements in my digits starting from the fifth index

4.16 LAB: Count characters Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1. Ex: If the input is: n Monday the output is: 1 n Ex: If the input is: z Today is Monday the output is: 0 z's Ex: If the input is: n It's a sunny day the output is: 2 n's Case matters. Ex: If the input is: n Nobody the output is: 0 n's

Answers

Answer:

In Python:

sttr = input("String: ")

ch = input("Character: ")

count = sttr.count(ch)

print(str(count)+" "+ch, end = '')

if count>1 or count==0:

   print("'s")

Explanation:

This prompts the user for string

sttr = input("String: ")

This prompts the user for character

ch = input("Character: ")

This counts the number of occurrence

count = sttr.count(ch)

This prints the number of occurrence of the character

print(str(count)+" "+ch, end = '')

This checks if the number of occurrence is 0 or greater than 1.

if count>1 or count==0:

If yes, it prints 's

   print("'s")

A restaurant buys a pizza oven that is 4.5 feet long, 5 feet wide and 6 feet tall. What is the volume of the pizza oven?

Answers

Answer:

135 as 4.5 times 5 times 6 gives you the volume and it =135

NO THIS ISNT ANY HOMEWORK!

Does anyone know a laptop under $200 that can run Minecraft Java edition and maybe 60fps?


PLEASE NAME A SPECIFIC ONE not to be rude but please don’t waste my time!



Sorry if I’m asking for too much we’re gonna travel soon and it’s gonna be for long months and I can’t bring my entire set up but I also don’t have much money and I can’t find any laptop like that so if you can help? Thank you!

Answers

Answer:

Name CPU, GPU & RAM My Rating (Out of 10)

HP Pavilion 15 Intel Core i7-8565U Nvidia MX 250 16GB 8.1

Asus VivoBook S15 Intel Core i5-8265U Nvidia MX250 8GB 7.8

Dell Inspiron 15 Intel Core i5-8250U Intel HD Graphics 16GB 7.6

Acer Aspire 5 Intel Core i5-8265U Nvidia MX250 8GB 7.5

Explanation:

I dont know the prices, I just searched it, though I will look into it more

Answer:

dont know the price but my mom bought me a macbook pro 13 inch and it works great !

Explanation:

edit: oop lol its like 1200 dollars

What sequence is used to create a brochure document from a template?
New, File, Brochures
File, New, Brochures
O Brochures, File, New
O Brochures, New, File

Answers

Answer:

I think its a or b

Explanation:

Sorry if I'm wrong

Answer:

The answer is B. File, New, Brochures

Explanation:

PLZ PLZ PLZ GIVE ME BRAINLIEST!!!!

Can someone help me please

Answers

Answer:

She made a profit of 450$

Explanation:

3.5 code practice question 1

Answers

Answer:

what is this a question or just saying something?

Explanation:

Answer:

uh what?

Explanation:

write asswmbly prgram and do the following:
You have two numbers, the first one is 32 bits and the second is a 16 bits number. Find the result of division and store it in memory location called RESULT then store the reminder of division in memory location called MOD. (Use MACRO) ​

Answers

Answer:

I did this last year :/ i feel your pain.

Explanation:

What are the disadvantages of using folders ​

Answers

Answer:

√ folders can cause some inconvenience situation...

√ The decompress / compress action takes time.

√ When you double-click on a file inside a “folder”, what really happens is the file gets extracted to a temporary folder.

heres one:

when you delete a folder, he stuff inside gets deleted, and there isnt a way to get it back.


is an electronics standard that allows different kinds of electronic instruments to
communicate with each other and with computers.

Answers

Explanation:

MIDI is an acronym that stands for Musical Instrument Digital Interface. It is a standard protocol that helps to connects musical instruments with computers and several hardware devices to communicate. It was invented in the 80's as a way to standardize digital music hardwares.

IF IT HELPED U MARK ME AS A BRAIN LIST

Assume that the execution time for a program is directly proportional to instruction access time. The access to an instruction in the cache is 10 times faster than access to an instruction in the main memory. If an instruction is not found in the cache, i.e., cache miss, it is fetched from the main memory to the cache and then fetched from the cache to be executed. Assume that a requested instruction will cause cache miss has a probability of 0.08. Let the speedup factor is defined as the ratio of program execution time without the cache to program execution time with the cache.
a. Calculate the speedup factor to execute such a program.
b. using this assumption, assuming that the cache is 20 times faster than the main memory.

Answers

Answer:

a. 5.81

B. 7.93

Explanation:

A.

X is the time it takes to load instructions from cache

10X = time to execute program

0.08 = probability of cache instructions

1-0.08 = 0.92(92% instructions are going to be loaded from cache).

Tc = time to execute with cache

Tc = 0.92X+0.08x10X

= 0.92X+0.8X

= 1.72X

Speed factor = tm/tc

= 10X/1.72X

= 5.81

B.

If cache is 20 times faster

Tm = 20X

Tc = 0.92X + 0.08 x 20X

= 0.92X + 1.6X

= 2.52X

Speed factor = 20X/2.52X

= 7.93

What Is an Antivirus?

Answers

Antivirus software, or anti-virus software, also known as anti-malware, is a computer program used to prevent, detect, and remove malware. Antivirus software was originally developed to detect and remove computer viruses, hence the name.

Answer:

Antivirus software is a type of program designed and developed to protect computers from malware like viruses, computer worms, spyware, botnets, rootkits, keyloggers and such. Antivirus programs function to scan, detect and remove viruses from your computer.

Explanation:

Other Questions
Who did Germany involve and offer incentives to in the Zimmerman letter intercepted by the allies, and which would lead the United States to enter the war?CanadaPanamaMexicoSpain 10 oraciones con pronombres de los animales yall plz- help this is so hard giving brainlest ;) Check your understanding! Mark any that are correct. Mutations are random.Mutations are most beneficial and useful for an organism.Mutations can occur in both DNA and RNA, which are nucleic acids.Mutations can only occur during interphase.Not all genes code for proteins.Not all genes are turned on at a given time.Substitution mutations typically result in a frameshift mutation.Mutations can be genetically inherited. Which rhetorical appeal involves the use of facts, statistics and things that are very difficult to argue against? A scientist could use this appeal.A. LogosB. PathosC. EthosD. Thanos Which answer best describes the effects that improvements in transportation had on the United States economy in the 1800s? (5 points) aThey made it easier to move money more quickly. bThey made it easier for Americans to take vacations. cThey made it easier to move goods more cheaply and quickly. dThey made it easier for Americans to get to their jobs each day. Solve this equation. \large \frac{2}{3}x-\frac{1}{5}x=x-1 i need some help pls Question 1Two packs of toilet rolls are available in thesupermarket 9 toilet rolls for 3.15 4 toilet rolls for 1.36Work out which pack offers the best value for money. What does |(-18)+(-2)/(7)+(-2) equal? Please help asap. :( choose the participle phrase in each of the following sentences Charcoal grills glowing with embers dotted the park Guests at an amusement park must be at least 54 inches tall to be able to ride the roller coaster. Which graph represents the set of heights that satisfy this requirement? : 56 50 51 55 57 - + 50 55 57 50 51 52 53 54 55 56 57 58 50 51 52 53 54 55 56 57 58 3. Solve the following word problems:(3 x 4 = 12 mark1. Rohan has to load 2456 cartons of apples equally in 5 trucks. How many cartons will be left unloaded inthe end? What did the blind men learn from the Rajah? Tunstall, Inc., a small service company, keeps its records without the help of an accountant. After much effort, an outside accountant prepared the following unadjusted trial balance as of the end of the annual accounting period on December 31: Account Titles Debit Credit Cash $ 42,000 Accounts receivable 11,600 Supplies 900 Prepaid insurance 800 Service trucks 19,000 Accumulated depreciation $ 9,200 Other assets 8,300 Accounts payable 3,000 Wages payable Income taxes payable Note payable (3 years; 10% interest due each December 31) 17,000 Common stock (5,000 shares outstanding) 400 Additional paid-in capital 19,000 Retained earnings 6,000 Service revenue 61,360 Remaining expenses (not detailed; excludes income tax) 33,360 Income tax expense Totals $ 115,960 $ 115,960 Data not yet recorded at December 31 included: The supplies count on December 31 reflected $300 in remaining supplies on hand to be used in the next year. Insurance expired during the current year, $800. Depreciation expense for the current year, $3,700. Wages earned by employees not yet paid on December 3, $640. Income tax expense, $5,540.Data not yet recorded at December 31 included:_____.The supplies count on December 31 reflected $300 in remaining supplies on hand to be used in the next year.Insurance expired during the current year, $800.Depreciation expense for the current year, $3,700.Wages earned by employees not yet paid on December 3, $640.Income tax expense, $5,540.Problem: Prepare an income statement and a classified balance sheet that include the effects of the preceding five transactions. You are standing on a street corner with your friend. You then travel 14.0 m due west across the street and into your apartment building. You travel in the elevator 22.0 m upward to your floor, walk 12.0 m north to the door of your apartment, and then walk 6.0 m due east to your balcony that overlooks the street. Your friend is standing where you left her.Now how far are you from your friend?Express your answer with the appropriate units. What is Frankenstein's main goal after seeing the monster for the first timeafter creating him? Which word best describes the character Piggy in Lord of the Flies? foolish independent aggressive vulnerable Question 2 Part B Which line of Piggy's dialogue best supports the answer in Part A? "'I was the only boy in our school what had asthma.'" "'I got the conch in my hand.'" "'We couldnt keep a fire like that going, not if we tried.'" 'That little un that had a mark on his facewhere ishe now?'" What is the value of human life? Why does it matter that someone is here? Throughout history, what are some examples of people thinking their lives are worth more than others.