4. Problem solving with lists, strings, and files. Writ

Added on - 16 Sep 2019

  • 1

    pages

  • 173

    words

  • 67

    views

  • 0

    downloads

Showing pages 1 of 1
4. Problem solving with lists, strings, and filesWrite a program that reads a csv data file calledborough-sales.csv(sample provided with the lab) that containssales of land in various parts of the UK for years of 2012-2014. The file consists of 4 columns: the area and the 3years of sales numbers. It will calculate the following stats (printing to screen optional): Areas with average salesacross the three years in the ranges 0-3000, 3001-5000, >=5001. It should generate a CSV file (columns separated bycommas, rows separated by newlines (\n).Note that the rows do not have to be in any particular order.It should create a table similar to the following (table incomplete):0-30003001-5000>=5001City of LondonBarnetBromleyBarking andDagenhamCroydenWandsworth.........----- THE END ------1-