The overall grade in a course is determined from the grades of 6 quizzes, 3midterms, and

Chapter 6, Problem 35

(choose chapter or problem)

The overall grade in a course is determined from the grades of 6 quizzes, 3midterms, and a final exam, using the following scheme:Quizzes: Quizzes are graded on a scale from 0 to 10. The grade of the lowestquiz is dropped and the average of the 5 quizzes with the higher grades constitutes30% ofthe course grade.Midterms and final exam: Midterms and fmal exams are graded on a scalefrom 0 to 100. If the average of the midterm scores is higher than the score onthe fmal exam, the average of the midterms constitutes 50% of the coursegrade and the grade of the final exam constitutes 20% of the course grade. Ifthe fmal grade is higher than the average of the midterms, the average of themidterms constitutes 20% of the course grade and the grade of the fmal examconstitutes 50% of the course grade.Write a computer program in a script file that determines the coursegrade for a student. The program first asks the user to enter the six quiz grades(in a vector), the three midterm grades (in a vector), and the grade of the fmal.Then the program calculates a numerical course grade (a number between 0and 100). Finally, the program assigns a letter grade according to the followingkey: A for Grade 90 , B for 80 :5: Grade < 90 , C for 70 :5: Grade < 80 , Dfor 60 :5: Grade< 70, and E for a grade lower than 60. Execute the program forthe following cases:(a) Quiz grades: 6, 10, 6, 8, 7, 8. Midterm grades: 82, 95, 89. Final exam: 81.(b) Quiz grades: 9, 5, 8, 8, 7, 6. Midterm grades: 78, 82, 75. Final exam: 81.

Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.

Becoming a subscriber
Or look for another answer

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back