n this program, your task is to calculate average of grades and then display the final grade. Your tasks are as follows: Create a function called get_average() that takes a list containing grades of five subjects and calculates the average and returns it. Create a function called get_grade() that takes average of the five subjects from the get_average() function and displays the grade as per the table below

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question

In this program, your task is to calculate average of grades and then display the final grade. Your tasks are as follows:

  1. Create a function called get_average() that takes a list containing grades of five subjects and calculates the average and returns it.

  2. Create a function called get_grade() that takes average of the five subjects from the get_average() function and displays the grade as per the table below:

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr