Assignment 7A: What's your grade? In this class (as well as the lecture class), we calculate grades using a process called "weighted averages". The formula works by averaging all the games in a particular category, then multiplying the result by a percentage (the "weight"). All categories are then added up to give you your final grade. In our class, that would look like this: Final Grade = (average(Labs) * 0.10) + (average(Assignments) * 0.40) + (average(Midterm) * 0.20) + (average(Final) * 0.30) For this assignment, you will build a program that can calculate your grade in CSE 1321L using the formula above. Your main method will ask users to input the following information: 13 individual lab grades (since the lowest is dropped per FYE policy) 8 assignment grades 1 midterm grade 1 final exam grade • You will then create and use two methods outside of main to calculate your grade: A method to calculate the average value of a category. The method should take in an array of floats and the integer size of the array, and return a float value for the average of the category. A method to calculate the weighted points of a category. The method should take in the returned value from the previous method and a float value for the category's percentage (e.g. 0.4f) and return a float value for the weighted points of the category. You will call the same methods for each of the four grade categories – the functions should be flexible enough to work for any values. Once you have all four calculated, add them up and print the results. Sample Output: [CSE 1321L Grade Calculator] Labs Enter Grade #1: 70 Enter Grade #2: 90 Enter Grade #3: 100 Enter Grade #4: 56
Assignment 7 A: What’s your grade? In this class (as well as the lecture class), we calculate grades using a process called “weighted averages”. The formula works by averaging all the games in a particular category, then multiplying the result by a percentage (the “weight”). All categories are then added up to give you your final grade. In our class, that would look like this: Final Grade = (average(Labs) * 0.10) + (average(Assignments) * 0.40) + (average(Midterm) * 0.20) + (average(Final) * 0.30) For this assignment, you will build a program that can calculate your grade in CSE 1321L using the formula above. Your main method will ask users to input the following information: • 13 individual lab grades (since the lowest is dropped per FYE policy) • 8 assignment grades • 1 midterm grade • 1 final exam grade You will then create and use two methods outside of main to calculate your grade: • A method to calculate the average value of a category. The method should take in an array of floats and the integer size of the array, and return a float value for the average of the category. • A method to calculate the weighted points of a category. The method should take in the returned value from the previous method and a float value for the category’s percentage (e.g. 0.4f) and return a float value for the weighted points of the category. You will call the same methods for each of the four grade categories – the functions should be flexible enough to work for any values. Once you have all four calculated, add them up and print the results. Sample Output: [CSE 1321L Grade Calculator] Labs Enter Grade #1: 70 Enter Grade #2: 90 Enter Grade #3: 100 Enter Grade #4: 56 Enter Grade #5: 70 Enter Grade #6: 98 Enter Grade #7: 105 Enter Grade #8: 67 Enter Grade #9: 100 Enter Grade #10: 78 Enter Grade #11: 91 Enter Grade #12: 92 Enter Grade #13: 100 Weighted Points: 8.59 Assignments Enter Grade #1: 90 Enter Grade #2: 100 Enter Grade #3: 78 Enter Grade #4: 90 Enter Grade #5: 95 Enter Grade #6: 67 Enter Grade #7: 100 Enter Grade #8: 100 Weighted Points: 36.0 Midterm Enter Grade #1: 98 Weighted Points: 19.6 Exam Enter Grade #1: 100 Weighted Points: 30.0 Your final grade for CSE1321L is: 94.19
In Java please
![Assignment 7A: What's your grade? In this class (as well as the lecture class), we calculate
grades using a process called "weighted averages". The formula works by averaging all the
games in a particular category, then multiplying the result by a percentage (the "weight"). All
categories are then added up to give you your final grade. In our class, that would look like this:
Final Grade = (average(Labs) * 0.10) + (average(Assignments) * 0.40) + (average(Midterm) *
0.20) + (average(Final) * 0.30)
For this assignment, you will build a program that can calculate your grade in CSE
1321L using the formula above. Your main method will ask users to input the following
information:
13 individual lab grades (since the lowest is dropped per FYE policy)
8 assignment grades
1 midterm grade
1 final exam grade
You will then create and use two methods outside of main to calculate your grade:
A method to calculate the average value of a category. The method should take
in an array of floats and the integer size of the array, and return a float value for
the average of the category.
A method to calculate the weighted points of a category. The method should take
in the returned value from the previous method and a float value for the
category's percentage (e.g. 0.4f) and return a float value for the weighted points
of the category.
You will call the same methods for each of the four grade categories – the functions
should be flexible enough to work for any values. Once you have all four calculated, add
them up and print the results.
-
Sample Output:
[CSE 1321L Grade Calculator]
Labs
Enter Grade #1: 70
Enter Grade #2: 90
Enter Grade #3: 100
Enter Grade #4: 56](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F308e5c3c-dea5-49c6-bb49-199ffaf38cec%2Fcc5af82c-addd-4bfd-9846-da52a80bc0d1%2Fa0bj4r_processed.png&w=3840&q=75)


Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images









