Ask a question from expert

Ask now

borough-sales.csv: a program to read a data file of UK sales of land in 2012-2014

1 Pages173 Words291 Views
   

Added on  2019-09-16

About This Document

It will calculate the following stats (printing to screen optional): Areas with average sales across the three years in the ranges 0-3000, 3001-5000, >=5001.

borough-sales.csv: a program to read a data file of UK sales of land in 2012-2014

   Added on 2019-09-16

BookmarkShareRelated Documents
4. Problem solving with lists, strings, and files Write a program that reads a csv data file called borough-sales.csv (sample provided with the lab) that contains sales of land in various parts of the UK for years of 2012-2014. The file consists of 4 columns: the area and the 3 years of sales numbers. It will calculate the following stats (printing to screen optional): Areas with average sales across the three years in the ranges 0-3000, 3001-5000, >=5001. It should generate a CSV file (columns separated by commas, 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 and DagenhamCroydenWandsworth.........----- THE END ------ 1 -
borough-sales.csv: a program to read a data file of UK sales of land in 2012-2014_1

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
How to Remove Null Values in MySQL Tables: Desklib Solutions
|7
|661
|100

Business Decision Making
|20
|563
|162

Business Decision Making
|14
|684
|111

Business Decision Making (Task- 3.3).
|12
|430
|55

Business Decision Making (Task- 3.3).
|12
|426
|48

Eastern Mountain Sport’s Sales Analysis
|11
|1563
|43