Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EGR 126 Program 11 - Grades The objective of this Program is to use vectors in a C++ program to calculate a course average and
EGR 126 Program 11 - Grades The objective of this Program is to use vectors in a C++ program to calculate a course average and course grade for a class such as EGR 126. In this case, the grade is determined by scores earned as Exercises, Programs, and Tests Calculate a course average based on the weighting given in the course plan 10% 30 % 10% 10 % 10% 30% graded at 1 point each graded at 10 points each graded at 50 points possible graded at 10 points possible graded at 50 points possible graded at 10 points possible Exercises rograms Midterm Test MC Test Midterm Test-Program Final Test MC Test Final Test Program The course grade is determined using a basic 90-80-70 % breakdown, as explained in the Course Plan ourscAVC Grade 90 100 80 - 89.9 70 79.9 60 69.9 Below 60 Use the member function push back to store the Exercise scores in one vector and to store the Program scores in another vector Use the member function size to determine how many scores are in each vector Expect that there may be different numbers of scores in each run of the program DO NOT use an input valuc to spccify the number of scores to be read in Print out all the scores, well formatted Print out the average value of the Exercise scores and the average value of the Program scores These values are not needed for the course average calculation, but are interesting to know Use a function to calculate the average values (you should call the function twice) You should send an entire vector to the function, not just pass the values element by element Print out the overall calculated course average and the course grade You may want to devclop and test the program using all perfect scores, or using values you can easily check For grading you should tum in the results for two different sets of data: Set 1: Exercises Programs Midterm Test - MC Test Midterm Test Program Final Test MC Test Final Test - Progranm 10. 12. 6.5.9.5. 8. 9, 10. 7.5. 10. 10 47 48 10 Set 2: Your own personal scores, with "desired values" for those you don't know yet, such as the Final Tests. Your scores should be posted in Blackboard, but if for some reason don't have your scores, contact me Set up a file, or files, to contain the scores to be read into the program There should be no difference in the program code from one set of data to the other You should set up the code with a loop to process multiple sets of data in one run Possible Enhancements 1. Provide for dropping the lowest Exercise score and the lowest Program score in your calculations. Include in your printout both Course Averages for comparison. 2. Include Challenge Programs as extra credit. Explain how you would incorporate the extra credit Updated 1/13,2017 Page 1 of 1 EGR 126 Program 11 - Grades The objective of this Program is to use vectors in a C++ program to calculate a course average and course grade for a class such as EGR 126. In this case, the grade is determined by scores earned as Exercises, Programs, and Tests Calculate a course average based on the weighting given in the course plan 10% 30 % 10% 10 % 10% 30% graded at 1 point each graded at 10 points each graded at 50 points possible graded at 10 points possible graded at 50 points possible graded at 10 points possible Exercises rograms Midterm Test MC Test Midterm Test-Program Final Test MC Test Final Test Program The course grade is determined using a basic 90-80-70 % breakdown, as explained in the Course Plan ourscAVC Grade 90 100 80 - 89.9 70 79.9 60 69.9 Below 60 Use the member function push back to store the Exercise scores in one vector and to store the Program scores in another vector Use the member function size to determine how many scores are in each vector Expect that there may be different numbers of scores in each run of the program DO NOT use an input valuc to spccify the number of scores to be read in Print out all the scores, well formatted Print out the average value of the Exercise scores and the average value of the Program scores These values are not needed for the course average calculation, but are interesting to know Use a function to calculate the average values (you should call the function twice) You should send an entire vector to the function, not just pass the values element by element Print out the overall calculated course average and the course grade You may want to devclop and test the program using all perfect scores, or using values you can easily check For grading you should tum in the results for two different sets of data: Set 1: Exercises Programs Midterm Test - MC Test Midterm Test Program Final Test MC Test Final Test - Progranm 10. 12. 6.5.9.5. 8. 9, 10. 7.5. 10. 10 47 48 10 Set 2: Your own personal scores, with "desired values" for those you don't know yet, such as the Final Tests. Your scores should be posted in Blackboard, but if for some reason don't have your scores, contact me Set up a file, or files, to contain the scores to be read into the program There should be no difference in the program code from one set of data to the other You should set up the code with a loop to process multiple sets of data in one run Possible Enhancements 1. Provide for dropping the lowest Exercise score and the lowest Program score in your calculations. Include in your printout both Course Averages for comparison. 2. Include Challenge Programs as extra credit. Explain how you would incorporate the extra credit Updated 1/13,2017 Page 1 of 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started