Question: The overall grade in a course is determined from the grades of 3 midterms and a final exam, using the following scheme: Midterms: Midterms are graded on a scale from 0 to 20. The total of the 3 quizzes constitutes 50% of the course grade. Final exam: The final exams is graded on a scale from 0 to 100. The final exam constitutes 50% of the course grade. Write a computer program in a script file that determines the course grade for a student. The program first asks the user to enter the 3 midterms grades (in a w the grade of the final. Then the program calculates a numerical course grade (a number between 0 and 100). The course grade is rounded to one decimal points. Sample Output: Please enter Midterm 1 grade: 30 Input should be between 0 and 20, Please enter Midterm 1 grade: 20 Please enter Midterm 2 grade: 15 Please enter Midterm 3 grade: 17.8 Please enter final exam grade: 80 The course grade is 66.4

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 3PP: (Data processing) Write a C++ program that allows the user to enter the following information from...
icon
Related questions
Question

 

 

Question:
The overall grade in a course is determined from the grades of 3 midterms and a final exam, using the following scheme:
Midterms: Midterms are graded on a scale from 0 to 20. The total of the 3 quizzes constitutes 50% of the course grade.
Final exam: The final exams is graded on a scale from 0 to 100. The final exam constitutes 50% of the course grade.
Write a computer program in a script file that determines the course grade for a student. The program first asks the user to enter the 3 midterms grades (in a vector) and
the grade of the final.
Then the program calculates a numerical course grade (a number between 0 and 100). The course grade is rounded to one decimal points.
Sample Output:
Please enter Midterm 1 grade: 30
Input should be between 0 and 20, Please enter Midterm 1 grade: 20
Please enter Midterm 2 grade: 15
Please enter Midterm 3 grade: 17.8
Please enter final exam grade: 80
The course grade is 66.4
Click Below Matlab Link:
https://matlab.mathworks.com
For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac).
10pt
!!!
Ev
P
2 IX
0 QERE
***
Transcribed Image Text:Question: The overall grade in a course is determined from the grades of 3 midterms and a final exam, using the following scheme: Midterms: Midterms are graded on a scale from 0 to 20. The total of the 3 quizzes constitutes 50% of the course grade. Final exam: The final exams is graded on a scale from 0 to 100. The final exam constitutes 50% of the course grade. Write a computer program in a script file that determines the course grade for a student. The program first asks the user to enter the 3 midterms grades (in a vector) and the grade of the final. Then the program calculates a numerical course grade (a number between 0 and 100). The course grade is rounded to one decimal points. Sample Output: Please enter Midterm 1 grade: 30 Input should be between 0 and 20, Please enter Midterm 1 grade: 20 Please enter Midterm 2 grade: 15 Please enter Midterm 3 grade: 17.8 Please enter final exam grade: 80 The course grade is 66.4 Click Below Matlab Link: https://matlab.mathworks.com For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). 10pt !!! Ev P 2 IX 0 QERE ***
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
User Defined DataType
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr