Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78403 > unrolled thread

Storage Cost Calculation

Started byAbohfu venant zinkeng <vicezik@gmail.com>
First post2014-09-26 11:53 -0700
Last post2014-09-28 03:27 +1000
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Storage Cost Calculation Abohfu venant zinkeng <vicezik@gmail.com> - 2014-09-26 11:53 -0700
    Re: Storage Cost Calculation Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-27 13:01 -0400
      Re: Storage Cost Calculation Chris Angelico <rosuav@gmail.com> - 2014-09-28 03:12 +1000
      Re: Storage Cost Calculation Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-27 11:21 -0600
      Re: Storage Cost Calculation Chris Angelico <rosuav@gmail.com> - 2014-09-28 03:27 +1000

#78403 — Storage Cost Calculation

FromAbohfu venant zinkeng <vicezik@gmail.com>
Date2014-09-26 11:53 -0700
SubjectStorage Cost Calculation
Message-ID<mailman.14416.1411797716.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

   -

   Hard drives have been the secondary storage of choice on computers for
   many years. They have improved in speed, in capacity, and in cost for over
   50 years. It's interesting to look at how the prices have dropped, or,
   conversely, how much storage your money will buy now as compared to many
   years ago. This improvement is an example of *Moore's Law*
   <http://en.wikipedia.org/wiki/Moore%27s_law>

   This site <http://www.mkomo.com/cost-per-gigabyte> was written by a
   person (in 2009) who had considered this amazing trend. He collected a lot
   of data about hard drive capacity and price. The formula he extrapolated by
   using the data he found is
   *cost per gigabyte = 10-0.2502(year-1980) + 6.304*
   where *year* is the year for which the extrapolated cost was desired.
   This formula is based on data from 1980 to 2010.

   Your program should develop a table of costs, based on the user's inputs
   of the starting and ending years and the formula. The table should produce
   columns as seen below, The column Year is the year, starting at the point
   the user says to start at, and going to the ending year, stopping there.
   The size of the step in the table is also specified by the user. The user
   inputs are all integers. Your program can assume that. *NOTE:* The
   "ending year, stopping there" phrase is a bit ambiguous. If you want to use
   the ending year as the stop value in a range function, that is fine. If you
   want to add one to the ending year and use that as the stop value, that is
   also ok. *In the tables below,  end year plus one was used.* Tab
   characters can be used.

   *Sample Run:*

   Big Blue Hard Drive Storage Cost

   Enter the starting year: 1992
   Enter the ending year: 2015
   What step size for the table? 4

           Hard Drive Storage Costs Table

   Start Year = 1992
   End Year = 2015

      Year           Cost Per Gigabyte ($)

      1992                  2002.627
      1996                  199.894
      2000                  19.953
      2004                  1.992
      2008                  0.199
      2012                  0.02

   *Another Run:*

   Big Blue Hard Drive Storage Cost

   Enter the starting year: 1998
   Enter the ending year: 2010
   What step size for the table? 2

           Hard Drive Storage Costs Table

   Start Year = 1998
   End Year = 2010

      Year           Cost Per Gigabyte ($)

      1998                  63.154
      2000                  19.953
      2002                  6.304
      2004                  1.992
      2006                  0.629
      2008                  0.199
      2010                  0.063

   -

   QUESTION

   -

   Could someone help me with a design and a python program to
implement that design to solve the above problem?

[toc] | [next] | [standalone]


#78417

FromSeymore4Head <Seymore4Head@Hotmail.invalid>
Date2014-09-27 13:01 -0400
Message-ID<g6rd2ahbd87co8c09eafu8jv9nmf5qm9li@4ax.com>
In reply to#78403
On Fri, 26 Sep 2014 11:53:32 -0700, Abohfu venant zinkeng
<vicezik@gmail.com> wrote:

>
>   QUESTION
>
>   -
>
>   Could someone help me with a design and a python program to
>implement that design to solve the above problem?

As a side note, it would be handy to compare HD cost to CD cost.
I am still trying to get my own personal copy of the Internet.

[toc] | [prev] | [next] | [standalone]


#78418

FromChris Angelico <rosuav@gmail.com>
Date2014-09-28 03:12 +1000
Message-ID<mailman.14431.1411837951.18130.python-list@python.org>
In reply to#78417
On Sun, Sep 28, 2014 at 3:01 AM, Seymore4Head
<Seymore4Head@hotmail.invalid> wrote:
> As a side note, it would be handy to compare HD cost to CD cost.
> I am still trying to get my own personal copy of the Internet.

If you set your sights a bit lower, Google might be able to help. They
pretty much have their own copy of the World Wide Web, indexed and
cached. I've no idea how many dollars they annually spend on hard
drives, but probably it uses SI prefixes most of the world has never
heard of...

ChrisA

[toc] | [prev] | [next] | [standalone]


#78419

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-09-27 11:21 -0600
Message-ID<mailman.14432.1411838563.18130.python-list@python.org>
In reply to#78417
On Sat, Sep 27, 2014 at 11:12 AM, Chris Angelico <rosuav@gmail.com> wrote:
> On Sun, Sep 28, 2014 at 3:01 AM, Seymore4Head
> <Seymore4Head@hotmail.invalid> wrote:
>> As a side note, it would be handy to compare HD cost to CD cost.
>> I am still trying to get my own personal copy of the Internet.
>
> If you set your sights a bit lower, Google might be able to help. They
> pretty much have their own copy of the World Wide Web, indexed and
> cached. I've no idea how many dollars they annually spend on hard
> drives, but probably it uses SI prefixes most of the world has never
> heard of...

http://what-if.xkcd.com/63/

[toc] | [prev] | [next] | [standalone]


#78420

FromChris Angelico <rosuav@gmail.com>
Date2014-09-28 03:27 +1000
Message-ID<mailman.14433.1411838882.18130.python-list@python.org>
In reply to#78417
On Sun, Sep 28, 2014 at 3:21 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
>> If you set your sights a bit lower, Google might be able to help. They
>> pretty much have their own copy of the World Wide Web, indexed and
>> cached. I've no idea how many dollars they annually spend on hard
>> drives, but probably it uses SI prefixes most of the world has never
>> heard of...
>
> http://what-if.xkcd.com/63/

Yes, I've seen that. Probably the most readable financial figures that
anyone's ever put together. :)

ChrisA

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web