file values
(number values in a text file)
The key file operations are required:
Examine the text file, it contains the number of voters in all 32 Scottish Councils. Each number is displayed on a new line. Compare the code with the description in codeClips. Make sure you know what code is used to open, read and close the file. Challenges
Display the name and voters for the largest council (most voters) and the smallest council (least voters) How many councils are in the Lothians and Edinburgh? How many voters all together? How many councils are in all of Ayrshire? How many voters all together? project code