Question

Write a program to calculate your final grade in this class. Three(8) assignments have yet to...

Write a program to calculate your final grade in this class. Three(8) assignments have yet to be graded: Quiz 7, Lab 7 and Final Project. Assume ungraded items receive a grade of 100 points. Remember to drop the lowest two quiz scores. Display final numeric score and letter grade.

Implementation:

Weight distribution is listed in canvas. Use arrays for quizzes, labs, projects and exams.

You are allowed to use initialization lists for arrays.

Use at least three (3) programmer defined functions.


Display final grade ( numeric and letter).


OUTPUT SAMPLE:

Project grades : 100, 0, 90, 95

Exam grades: 50, 54

Quiz grades: 100, 0, 50, 30, 40, 100, 100

Lab grades: 100, 100, 0, 50, 60, 100, 100

Final Project : 100
Bonus Points: 4

_______________________________________________________________________________________________________________________

Average for exams = 52.00

Average for projects = 71.25

Average for labs = 72.86

Average for quizzes = 78.00

Final numeric average = 73.78

Final numeric average with 4.00 point bonus = 77.78

Letter Grade = : C


can you please send the answer to my emil


thank you

C++
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code:

#include<bits/stdc++.h>
using namespace std;

int main(){
  
// initializing the required arrays
  
int project_grades[]={100,0,90,95};
int exam_grades[]={50,54};
int quiz_grades[]={100,0,50,30,40,100,100};
int lab_grades[]={100,100,0,50,60,100,100};
int final_project = 100;
int bonus_points=4;
int final_score=0;
int exam_score=0,project_score=0,quiz_score=0,lab_score=0;
float exam_avg,project_avg,quiz_avg,lab_avg;
  
  
// sorting the arrays
  
sort(project_grades,project_grades+4);
sort(exam_grades,exam_grades+2);
sort(quiz_grades,quiz_grades+7);
sort(lab_grades,lab_grades+7);
  
for(int i=0;i<4;i++){
project_score+=project_grades[i];
}
project_avg=project_score*1.0/4;
  
for(int i=0;i<2;i++){
exam_score+=exam_grades[i];
}
exam_avg=exam_score*1.0/2;
  
// dropped lowest two quiz scores
for(int i=2;i<7;i++){
quiz_score+=quiz_grades[i];
}
quiz_avg=quiz_score*1.0/(7-2);
  
for(int i=0;i<7;i++){
lab_score+=lab_grades[i];
}
lab_avg=lab_score*1.0/7;
  
// printed average scores
cout<<"Average for project = "<<project_avg<<"\n";
cout<<"Average for exam = "<<exam_avg<<"\n";
cout<<"Average for quiz = "<<quiz_avg<<"\n";
cout<<"Average for labs = "<<lab_avg<<"\n";
  
  
  
final_score+=(project_score+exam_score+quiz_score+lab_score+final_project);

cout<<"Final Numerical Average = "<<((project_avg+exam_avg+quiz_avg+lab_avg))/4 <<"\n";

  
  
}

for final grades , you need to mention the grading criteria.

Add a comment
Know the answer?
Add Answer to:
Write a program to calculate your final grade in this class. Three(8) assignments have yet to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++ Write a program to calculate final grade in this class, for the scores given below...

    C++ Write a program to calculate final grade in this class, for the scores given below . Remember to exclude one lowest quiz score out of the 4 while initializing the array. Display final numeric score and letter grade. Use standard include <iostream> Implementation: Use arrays for quizzes, labs, projects and exams. Follow Sample Output for formatting. May use initialization lists for arrays. Weight distribution is as follows: Labs: 15% Projects: 20% Quizzes: 20% Exams: 25% Final Project: 20% Display...

  • Help me write the program in C++ Thanks Program #1: Calculate a student's grade for a...

    Help me write the program in C++ Thanks Program #1: Calculate a student's grade for a class. The class has 4 categories of grades. Each category has different weights. The student's report should include the student's first and last name; course; semester, category listing with weight for each category, grades for each category and the student's final average with a letter grade. Categories with weights: 1. Exams: 30%(3 @ 10% each) 2. Labs: 30% (3 labs @ 10% cach) 3....

  • In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each gr...

    In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:-...

  • using if/switch statements (C++) Write a grading program for a class with the following grading policies:...

    using if/switch statements (C++) Write a grading program for a class with the following grading policies: There are two quizzes, each graded on the basis of 10 points There is one midterm exam and one final exam, each graded on the basis of 100 points The final exam counts for 50% of the grade, the midterm counts for 25% and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should...

  • Grading Policy In addition to three in-class tests and a final exam, the final grade will...

    Grading Policy In addition to three in-class tests and a final exam, the final grade will include assessment of homework, quiz projects/classroom activities, and classroom participation, according to the following weights 1. Homework and Worksheets 2. Three Tests 3. Final Exam 4. Quizzes and Class Participation/Classroom Citizenshi 1 5% 40% 25% 20% Total 100% Grad Ran 92 100 90-91 88-89 82-87 80-81 an 78 -79 70-77 68 -69 66 67 60- 65 Assignment Grading: Each written assignment, except the Final...

  • Many classes calculate a final grade by using a weighted scoring system. For example, “Assignments” might...

    Many classes calculate a final grade by using a weighted scoring system. For example, “Assignments” might be worth 40% of your final grade. To calculate the grade for the Assignments category, the teacher takes the percentage earned on the assignments and multiplies it by the weight. So if the student earned a 90% total on the Assignments, the teacher would take 90% x 40, which means the student earned a 36 percent on the Assignments section. The teacher then calculates...

  • This is a C++ Program, I need the program broken up into Student.h, Student.cpp, GradeBook.h, GradeBook.cpp,...

    This is a C++ Program, I need the program broken up into Student.h, Student.cpp, GradeBook.h, GradeBook.cpp, and Main.cpp 1. The system must be able to manage multiple students (max of 5) and their grades for assignments from three different assignment groups: homework (total of 5), quizzes (total (total of 2) of 4), and exams 2. For each student record, the user should be able to change the grade for any assignment These grades should be accessible to the gradebook for...

  • Write a grading program for the following grading policies:- a. There are two quizzes, each graded...

    Write a grading program for the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:- >90 A >=80 and <90 B...

  • c++ implement a student class Determine the final scores, letter grades, and rankings of all students...

    c++ implement a student class Determine the final scores, letter grades, and rankings of all students in a course. All records of the course will be stored in an input file, and a record of each student will include the first name, id, five quiz scores, two exam scores, and one final exam score. For this project, you will develop a program named cpp to determine the final scores, letter grades, and rankings of all students in a course. All...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT