The program to find the average of five students

After you have posted the code you yourself have so far coded ... and tried ... including posting all the compiler error messages ... if any ... we will then be able to see what to suggest to you for a next step.

Please note that this is a very common and simple student problem to code ... that is typically handled ok, if you have coded an 'Hello World' program ... and are around the 2rd or 3rd lesson.

There are so very many examples/tutorials on the web that you could find to get ideas how to get started.

In a search window ... you could search under:

"C++ program to find average"

or look here:
http://developers-heaven.net/forum/index.php/topic,2019.0.html

First, map each grade to a number, such as
F == 0
D == 3, D+ == 4, D- == 2
C == 6, C+ == 7, C- == 5
B == 9, B+ == 10, B- == 8
A == 12, A+ == 13, A- == 11

Then, finding the average is simple math. You write the code. This is just a hint.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.