Write a c program to ask the user to:1. Enter the number of courses taken.2. Enter the total mark obtained in each course.3. Then the program should print each time the letter grade of corresponding entered mark by the user exactly after the mark is entered. The grading policy should be according to the table be.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 15PE
icon
Related questions
icon
Concept explainers
Question

Write a c program to ask the user to:1. Enter the number of courses taken.2. Enter the total mark obtained in each course.3. Then the program should print each time the letter grade of corresponding entered mark by the user exactly after the mark is entered. The grading policy should be according to the table be.

Write a program to ask the user to:
1. Enter the number of courses taken.
2. Enter the total mark obtained in each course.
3. Then the program should print each time the letter grade of
corresponding entered mark by the user exactly after the mark is
entered. The grading policy should be according to the table be.
grade
A
B
с
D
Mark
Mark>= 80
Mark<80, Mark>=70
Mark<70, Mark>=60
Mark<60, Mark>= 50
Mark < 50
F
4. Then the program will print the number of each letter grade (i.e. 2A,
4B, IF).
5. (BONUS) At the end the program will print, the average of all the
marks entered by the user and will print its corresponding letter grade.
Transcribed Image Text:Write a program to ask the user to: 1. Enter the number of courses taken. 2. Enter the total mark obtained in each course. 3. Then the program should print each time the letter grade of corresponding entered mark by the user exactly after the mark is entered. The grading policy should be according to the table be. grade A B с D Mark Mark>= 80 Mark<80, Mark>=70 Mark<70, Mark>=60 Mark<60, Mark>= 50 Mark < 50 F 4. Then the program will print the number of each letter grade (i.e. 2A, 4B, IF). 5. (BONUS) At the end the program will print, the average of all the marks entered by the user and will print its corresponding letter grade.
Expert Solution
steps

Step by step

Solved in 4 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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage