C++ Problem: Write a program that will calculate a student’s final score in this class based on the followingdual grading system: Scheme A Scheme B Midterm Exam 35% Midterm exam score dropped Final Exam 40% Final Exam 70% Homework 25% Homework 30% Assume that there will be N homework assignments total, and the lowest homework scorewill be dropped. The maximum of the two scores obtained from the two grading schemeswill be the final score. In addition to printing the final score, you should also determine theletter grade that corresponds to the numerical average based on the following scale:90 <= A <= 100, 80 <= B < 90, 70 <= C < 80, 60 <= D < 70, 0 <= F < 60.The input and output should be exactly:Please enter the midterm exam score (0 - 100):[USER ENTERS A DECIMAL NUMBER]Please enter the final exam score (0 - 100):[USER ENTERS A DECIMAL NUMBER]Please enter the number of homework assignments (3 - 7):[USER ENTERS A POSITIVE INTEGER N]Please enter the homework 1 score (0 - 100):[USER ENTERS A DECIMAL NUMBER]Please enter the homework 2 score (0 - 100):[USER ENTERS A DECIMAL NUMBER]...Please enter the homework N score (0 - 100):[USER ENTERS A DECIMAL NUMBER, where N is the number of homework assignments]Your final score based on Scheme A is [OUTPUT THE SCHEME A SCORE]Your final score based on Scheme B is [OUTPUT THE SCHEME B SCORE]Your final score is [OUTPUT THE MAXIMUM OF THE ABOVE TWO SCORES]Your course grade is [OUTPUT A LETTER GRADE]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Question

C++ Problem:


Write a program that will calculate a student’s final score in this class based on the following
dual grading system:

Scheme A Scheme B
Midterm Exam 35% Midterm exam score dropped
Final Exam 40% Final Exam 70%
Homework 25% Homework 30%

Assume that there will be N homework assignments total, and the lowest homework score
will be dropped. The maximum of the two scores obtained from the two grading schemes
will be the final score. In addition to printing the final score, you should also determine the
letter grade that corresponds to the numerical average based on the following scale:
90 <= A <= 100, 80 <= B < 90, 70 <= C < 80, 60 <= D < 70, 0 <= F < 60.
The input and output should be exactly:
Please enter the midterm exam score (0 - 100):
[USER ENTERS A DECIMAL NUMBER]
Please enter the final exam score (0 - 100):
[USER ENTERS A DECIMAL NUMBER]
Please enter the number of homework assignments (3 - 7):
[USER ENTERS A POSITIVE INTEGER N]
Please enter the homework 1 score (0 - 100):
[USER ENTERS A DECIMAL NUMBER]
Please enter the homework 2 score (0 - 100):
[USER ENTERS A DECIMAL NUMBER]
...
Please enter the homework N score (0 - 100):
[USER ENTERS A DECIMAL NUMBER, where N is the number of homework assignments]
Your final score based on Scheme A is [OUTPUT THE SCHEME A SCORE]
Your final score based on Scheme B is [OUTPUT THE SCHEME B SCORE]
Your final score is [OUTPUT THE MAXIMUM OF THE ABOVE TWO SCORES]
Your course grade is [OUTPUT A LETTER GRADE]

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Data members
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education