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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

 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
Transcribed Image Text: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
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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education