Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The overall grade in a course is determined from the grades of 6 quizzes, 3 midterms, and a final exam, using the following scheme:

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

The overall grade in a course is determined from the grades of 6 quizzes, 3 midterms, and a final exam, using the following scheme: Quizzes: Quizzes are graded on a scale from 0 to 10. The grade of the lowest quiz is dropped and the average of the 5 quizzes with higher grades constitutes 25% of the course grade. Midterms and final exam: Midterms and final exam are graded on a scale from 0 to 100. If the average of the midterm scores is higher than the score on the final exam, the average of the midterms constitutes 50% of the course grade and the grade of the final exam constitutes 25% of the course grade. If the final grade is higher than the average of the midterms, the average of the midterms constitutes 25% of the course grade and the grade of the final exam constitutes 50% of the course grade. Write a MATLAB program that determines the course grade for a student with the following specifications: (a) 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 final exam (number). (b) The program uses if statement to calculate a numerical course grade (a number between 0 and 100) then assigns a letter grade according to the following key: A for grade 290, B for 80 grade < 90, C for 70 grade < 80, D for 60 grade < 70, and F for a grade < 60. (c) The program displays the results in the form: 39 "The overall course grade is..... for a letter grade of..... (d) Execute the program for the following case: Quiz grades: 6, 10, 6, 8, 7, 8. Midterms grades: 82, 95, 89. Final exam: 81.

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

To create a MATLAB program to determine the course grade for a student based on the specifications in the image you sent you can follow these steps Create a new MATLAB script file Define the following ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Operations Research An Introduction

Authors: Hamdy A. Taha

11th Edition

0137625723, 978-0137625727

More Books

Students also viewed these Programming questions