Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78403
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <vicezik@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.021 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'value,': 0.04; 'column': 0.07; 'desired.': 0.07; 'problem?': 0.07; '0.02': 0.09; '2004': 0.09; 'blue': 0.09; 'function,': 0.09; 'used.': 0.09; 'python': 0.11; 'assume': 0.14; '1998': 0.16; 'at,': 0.16; 'columns': 0.16; 'fine.': 0.16; 'formula': 0.16; 'inputs': 0.16; 'integers.': 0.16; 'tab': 0.16; 'year,': 0.18; 'bit': 0.19; 'user.': 0.19; 'written': 0.21; 'example': 0.22; '(in': 0.22; 'stopping': 0.24; 'question': 0.24; 'tables': 0.26; 'point': 0.28; 'characters': 0.30; 'compared': 0.30; 'specified': 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'url:wiki': 0.31; 'ok.': 0.31; 'url:wikipedia': 0.31; "user's": 0.31; 'there.': 0.32; 'another': 0.32; '2010.': 0.33; 'says': 0.33; 'table': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'add': 0.35; 'url:org': 0.36; 'should': 0.36; 'starting': 0.37; 'step': 0.37; 'implement': 0.38; '2008': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'improved': 0.60; 'prices': 0.60; 'solve': 0.60; 'ago.': 0.61; 'range': 0.61; 'costs': 0.63; '2000': 0.65; 'skip:1 20': 0.65; 'sample': 0.67; 'money': 0.72; 'computers': 0.72; '8bit%:27': 0.74; 'price.': 0.74; 'ending': 0.78; '2002': 0.81; '*sample': 0.84; '2015': 0.84; '8bit%:24': 0.84; 'improvement': 0.84; 'law*': 0.84; 'trend.': 0.84; 'costs,': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=RPFosN20p30vIKo7znokYtK4bbd7gQcWvlDmBJrzJ2U=; b=LK6e81uGVmlzkmDROEB2SSUqKI5+BA+BfERNkWSA2zsfaoZwVoNXjGvl8Xj1So3Ggp eDO78ZDch55D6D64Lty1NokjTOtCkCONiZ65/lsj1VBQdM+6JfscdPmPPXwNIiqrQOeM 7qzaktQ7F+qb8DKsBQ+lcer6flHO+zWVRULsAXG9KDTAVcmEwS8B6/tdoCOOpiL2XwNl BwnAhpKY2jxWQKtP4UsRsqty9ftAVT3uZhrfvg/S0qoTkZEQnToNkrW2S1t8TosxqYeW puWbPGKcTFcUd6RF7x1IGWmEPk5j7K+Um5pSsjHXmaYso46xW25nUSHCWG1A00XTDbG6 yOyg== |
| MIME-Version | 1.0 |
| X-Received | by 10.152.29.129 with SMTP id k1mr22341142lah.81.1411757612348; Fri, 26 Sep 2014 11:53:32 -0700 (PDT) |
| Date | Fri, 26 Sep 2014 11:53:32 -0700 |
| Subject | Storage Cost Calculation |
| From | Abohfu venant zinkeng <vicezik@gmail.com> |
| To | python-list@python.org |
| Content-Type | multipart/alternative; boundary=089e0160b7dafe3b150503fc6e2f |
| X-Mailman-Approved-At | Sat, 27 Sep 2014 08:01:55 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14416.1411797716.18130.python-list@python.org> (permalink) |
| Lines | 159 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1411797716 news.xs4all.nl 2840 [2001:888:2000:d::a6]:50862 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:78403 |
Show key headers only | View raw
[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?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web