is 40%. The program should calculate the total marks and assign a grade according to the following grading scale: 90% and above: Grade A+ 80% to 89%: Grade A 70% to 79%: Grade B 60% to 69%: Grade C 50% to 59%: Grade D Below 50%: Grade F The program takes 3 inputs fro

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 9PP: (Data processing) Your professor has asked you to write a C++ program that determines grades at the...
icon
Related questions
icon
Concept explainers
Question

1. Write a C program to calculate a student's grade based on their marks in class tests, mid-semester exams, and the final exam. The weightage for class tests is 30%, for mid-semester exams is 30%, and for the final exam is 40%. The program should calculate the total marks and assign a grade according to the following grading scale:

90% and above: Grade A+
80% to 89%: Grade A
70% to 79%: Grade B
60% to 69%: Grade C
50% to 59%: Grade D
Below 50%: Grade F
The program takes 3 inputs from the user for their respective marks in class tests, mid-semester exams, and final exams and prints the student's total marks and the corresponding grade as output.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
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