Question: write a program that reads in the file and finds all years when the percent of women graduates was greater than a given value. Ask
write a program that reads in the file and finds all years when the percent of women graduates was greater than a given value.
- Ask the user to enter the name of the data file.
- Read the data from the file into four lists:
- Year, Total #CS Grads, #Men CS Grads, #Women CS Grads
- Ask the user to enter the percent of women they are interested in.
- Print a list of years in which the percent of female CS graduates was greater than the given number.
few things to note when working on this program:.
- test that the file entered by the user exists and catch the error with exception handling.
- test that the percent entered by the user is a valid number.
- program should have at least these functions:
- getData - read data from the data file
- findYears - finds the years when the percent of women students was was higher than the given value
- printResults - print the list of years that were returned by findYears
- main - calls the other functions
I may need other functions as well to handle exceptions.
Need some help constructing this code, and any help is much appreciated.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
