In this assignment, you're going to create your own methods and call them from main. We haven't talked about classes and Object-Oriented Programming (OOP) yet, so we're going to have to "break the rules" a bit. For the Java and C# folks, this means adding a special keyword before each method you write – called static. In simple terms, this means that we don't want to use OOP (though there's much, much more to it). 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 líike 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.
In this assignment, you're going to create your own methods and call them from main. We haven't talked about classes and Object-Oriented Programming (OOP) yet, so we're going to have to "break the rules" a bit. For the Java and C# folks, this means adding a special keyword before each method you write – called static. In simple terms, this means that we don't want to use OOP (though there's much, much more to it). 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 líike 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.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 11SA
Related questions
Question
language is c++
sample output included with the user input in bold
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning