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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --089e0160b7dafe3b150503fc6e2f Content-Type: text/plain; charset=UTF-8 - 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* This site 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? --089e0160b7dafe3b150503fc6e2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
  • Hard drives have been the secondary stor= age 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 ho= w 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= =C2=A0Moore's= Law

    This = site=C2=A0was written by a person (in 2009) who had considered this ama= zing trend. He collected a lot of data about hard drive capacity and price.= The formula he extrapolated by using the data he found is

    co= st per gigabyte =3D 10-0.2502(year-1980) + 6.304
    where=C2=A0year=C2=A0is the year for which the extrapolated cost wa= s 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 star= ting 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 say= s to start at, and going to the ending year, stopping there. The size of th= e step in the table is also specified by the user. The user inputs are all = integers. Your program can assume that.=C2=A0NOTE:=C2=A0The "en= ding year, stopping there" phrase is a bit ambiguous. If you want to u= se 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.=C2=A0In the tables below, =C2=A0end year plus one was used.= =C2=A0Tab 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 =3D 1992
    End Year =3D 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 =3D 1998
    End Year =3D 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 th= at design to solve the above problem?

--089e0160b7dafe3b150503fc6e2f--