Question: Based on this information, the code needs to be designed following this specific data: AY Total Male Female 1971 2388 2064 324 1972 3402 2941
Based on this information, the code needs to be designed following this specific data:
| AY | Total | Male | Female |
| 1971 | 2388 | 2064 | 324 |
| 1972 | 3402 | 2941 | 461 |
| 1973 | 4304 | 3664 | 640 |
| 1974 | 4756 | 3976 | 780 |
| 1975 | 5033 | 4080 | 953 |
| 1976 | 5652 | 4534 | 1118 |
| 1977 | 6407 | 4876 | 1531 |
| 1978 | 7201 | 5349 | 1852 |
| 1979 | 8719 | 6272 | 2447 |
| 1980 | 11154 | 7782 | 3372 |
| 1981 | 15121 | 10202 | 4919 |
| 1982 | 20267 | 13218 | 7049 |
| 1983 | 24565 | 15641 | 8924 |
| 1984 | 32439 | 20416 | 12023 |
| 1985 | 39121 | 24737 | 14384 |
| 1986 | 42337 | 27208 | 15129 |
| 1987 | 39767 | 25962 | 13805 |
| 1988 | 34651 | 23414 | 11237 |
| 1989 | 30560 | 21143 | 9417 |
| 1990 | 27347 | 19159 | 8188 |
| 1991 | 25159 | 17771 | 7388 |
| 1992 | 24821 | 17685 | 7136 |
| 1993 | 24519 | 17606 | 6913 |
| 1994 | 24527 | 17528 | 6999 |
| 1995 | 24737 | 17684 | 7053 |
| 1996 | 24506 | 17757 | 6749 |
| 1997 | 25422 | 18527 | 6895 |
| 1998 | 27829 | 20372 | 7457 |
| 1999 | 30552 | 22289 | 8263 |
| 2000 | 37788 | 27185 | 10603 |
| 2001 | 44142 | 31923 | 12219 |
| 2002 | 50365 | 36462 | 13903 |
| 2003 | 57433 | 41950 | 15483 |
| 2004 | 59488 | 44585 | 14903 |
| 2005 | 54111 | 42125 | 11986 |
| 2006 | 47480 | 37705 | 9775 |
| 2007 | 42170 | 34342 | 7828 |
| 2008 | 38476 | 31694 | 6782 |
| 2009 | 37994 | 31215 | 6779 |
| 2010 | 39589 | 32410 | 7179 |
| 2011 | 43072 | 35478 | 7594 |
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 test 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
