Worksheet #7 - Arrays In this worksheet, you will practice using static arrays! In this worksheet, we'll build a quiz storage and averaging system! 1) Create a constant integer to hold the number of quizzes you will be storing. For now, set the number of quizzes to 5. 2) Create an array of floats to hold the number of points achieved on a quiz. It will have 5 elements but use the variable from Step #1. 3) Create an array of integers to hold the maximum possible points for a particular quiz. It will also have 5 elements, but again, use the variable from Step #1. 4) Write a for loop to prompt the user for what the maximum possible points are for each quiz. This should fill in the array from step #3. Remember, these should be integers. 5) Write another for loop to prompt the user for what the achieved points are for each quiz. Remember, these are allowed to be floats. 6) At this point, you should have two arrays filled with data input by the user. Ask the user to input a value from 1 up to the number of quizzes, to report the percentage of that particular quiz. 7) Given the number from #6, the user is letting you know which quiz they would actually like to compute the percentage achieved. So do this by computing the value in the array from #2 divided by the value in the array from #3. For example, if the user got 3 points on a 5 point test, then your system will then report 3.0/5 and the output to the console here would be 0.6. But these values should come from the arrays. Output this to the console! Be aware, that the user is entering values from 1-5 right now, but your array indices are 0-4. Be sure to make the appropriate adjustment. Make sure that when the user enters a 1, that you're getting the right answer. Also make sure the same thing is true when the user enters a 5. 8) Now, write a for loop to find the sum of the achieved quiz grades and the sum of the maximum grades. These are two different sums. Also remember that one will be a sum of floats and the other will be a sum of integers. 9) Given these two sums, compute the overall average of the users quiz grades by taking the achieved points and dividing by the maximum possible points. Output this to the console. An example test run to the system might look like: --------------- Enter 5 Achieved Quiz Scores 3 4 7 5 9 Enter the 5 Maximum Quiz Scores 8 5 9 7 10 Which Quiz Score Would you like to know the grade? (1-5): 3 Your score on Quiz #3 was 7/9 or 77.7778% Your overall average is 71.7949% --------------- 10) Try changing the number of quizzes to 6 and rerun your code. Try values to which you know the answers to check your work. --- Don't forget to work on your final project! The next final project worksheet is also posted.