Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Exercise #4: Grade of Average Mark Write a program that finds the grade corresponding to the average mark. The program uses a function called

image text in transcribed C++
Exercise #4: Grade of Average Mark Write a program that finds the grade corresponding to the average mark. The program uses a function called averagelint) that takes an integer representing the number of marks, then the function reads the marks and returns their average. Write another function called grade(double) that takes a double representing the average of marks, and returns a characher which is the average grade. Write a main function which calls the two functions averagefint) and grade(double) and prints the grade of the marks. Sample input/output: nter the number of narks: Enter a mark: 63 Enter a nark: 77 Enter a mark: 81 Enter a mark: 94 Enter a nark: 52 5 The grade of the 5 marks is: C

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago