question archive You are provided a text file (temps

You are provided a text file (temps

Subject:Computer SciencePrice: Bought3

You are provided a text file (temps.txt), which has the average temperature of each month in Fahrenheit. Here is a program called readtemp.py which takes a text file name as command-line argument, reads the data into a dictionary (with months as keys, and temperature in Celsius as values), and print the dictionary to the screen.

 

temps.txt is as follows:

January  29.2
February 30.8
March  39.8
April  44.3
May   56.9
June  78.9
July  85.9
August  88.9
September 77.9
October  65.9
November 45.9
December 35.4

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE