SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 05 Jan 2018 My Price 10.00

company currently makes 60,000 copies per year

The task is to modify the code to be more efficient. Any help would be appreciated.  Thank you for your time

// The QuickCopy company currently makes 60,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.
start
   Declarations
      num year = 1
      num copies = 60000
      num price = 0.15
      num total = 0
      num COPIES_INCREASE = 0.04
      num PRICE_INCREASE = 0.03
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
      year = year + 1
      copies = copies + copies * COPIES_INCREASE
      price = price + PRICE_INCREASE
      total = copies * price
      output year, total
          
stop


Attachments:

Answers

(5)
Status NEW Posted 05 Jan 2018 02:01 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)