Here Is My Assignment Instructions I Started Writing The Following Code But It D

Here is my assignment instructions.  I started writing the following code but it dosent seem to work for whatever reason.  I am using > than when I write but I’m not sure if < would be better? Can someone let me know what I am doing wrong? 

year = int(input(‘Enter year:n’))

if year < 1962:

   print(‘Car did not exist yet!’)

elif year <= 1964:

   print(‘$’, 18500)

elif year >= 1965:

   print (‘$’, 6000)   

elif year >= 1969:

   print (‘$’, 12000)

elif year >= 1972:

   print (‘$’, 48000)

elif year >= 1976:

   print (‘$’, 200000)

elif year >= 1981:

   print (‘$’, 650000)

elif year >= 1986:

   print (‘$’, 35000000)

elif year >= 2013:

   print (‘$’, 52000000)

Assignment Instructions

Implement a program that reads in a year and outputs the approximate value of a Ferrari 250 GTO in that year. Use the following table that describes the estimated value of a GTO at different times since 1962.

Year Value

1962-1964 $18,500

1965-1968 $6,000

1969-1971 $12,000

1972-1975 $48,000

1976-1980 $200,000

1981-1985 $650,000

1986-2012 $35,000,000

2013-2014 $52,000,000

file Edit gearch Sourge Bun erug Consoles Emit-2cm Iools yiew HelpHDBI%§E@H&gt;Q§|II&gt;GJJHIG’EuE»IH ::|iv’JJ&lt;–)I—_Imumerraien .5…I: ConsoleSJAfll I 0. Python 3.5.1 lAnaconda custom…

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *