Concept explainers
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 the higher grades constitutes 30% of the course grade.
Midterms and final exam: Midterms and final exams 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 20% of the course grade. If the final grade is higher than the average of the midterms, the average of the midterms constitutes 20% of the course grade and the grade of 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 six quiz grades (in a
(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.
Trending nowThis is a popular solution!
Chapter 6 Solutions
MATLAB: An Introduction with Applications
- Amelio is shopping for textbooks online. He found three sellers that are offering a book he needs for the same price, including shipping. To decide which seller to buy from he is comparing their customer satisfaction ratings. The ratings are given in the chart.arrow_forwardValentines Day According to the National Retail Federation, on Valentines Day 2015, American men planned to spend an average of 190.53 on their sweethearts, and women planned to spend only 96.58 on their heroes. What percentage of the average male expenditure was the average female expenditure?arrow_forwardStock Market During the week of June 22, 2009, the closing numbers of the Dow Jones Industrial Average each day were: What was the overall change for the week? Was it positive or negative?arrow_forward
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillFunctions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage Learning
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell