So I need help figuring out why my output isn't correct. I got the number of students to output correctly. I need to figure out why the correct grade isn't showing?
If each test is out of 100 (0 - 100), and you have 4 tests, You will have a max total of 400 points.
When you do integer division of <400 / 400, you most likely will get an answer of 0.
You need to divide by 4 (total number of tests) rather than 400 (total possible points).
Also, realize that integer division will truncate the answer to the nearest integer rather than round. This is probably not a problem for you at this point, but soon you will want to learn about the differences between integer and floating point division.
Also, please don't continue to update the code in your initial post. It makes it difficult or impossible to understand the conversation below it. when you have new code, simply add a new post.