Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Connect with professionals ready to provide precise answers to your questions on our comprehensive Q&A platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

Ask the user for the path to the data file.

Open and read the data file the user provided.

If any errors occur opening or reading from the data file, the exception must be caught and the user must be told that an error occurred. The raw exception text must not be visible to the end user.

The data file is in the following format:

,

Note the day of the month is not in the data file

The month is represented by the standard 3-character abbreviation.

The data must be read into a 2-dimensional list, each inner element consists of the Month and the rainfall total. Here is a list representing the first 4 days of the data (your program must store the data in this format): [['Nov', 0.0], ['Nov', 0.0], ['Nov', 0.09], ['Nov', 0.18]]

After the data is read and stored in a 2-dimensional list, use compression to separate the data into separate lists, one list for each month.

For each month’s list, use compression again to compute the average rainfall for each month

Finally display the average daily rainfall on a bar chart similar to this:


Ask The User For The Path To The Data FileOpen And Read The Data File The User ProvidedIf Any Errors Occur Opening Or Reading From The Data File The Exception M class=

Sagot :

Thank you for trusting us with your questions. We're here to help you find accurate answers quickly and efficiently. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. Thank you for visiting Westonci.ca, your go-to source for reliable answers. Come back soon for more expert insights.