So for my problem they give us scores for a section. And there are a number of sections that they could give us in the class. I have to tell how many A's, B's, C's, D's and F's are received in the class and also the highest, lowest and average of the scores.
I know I need to use a loop but since this is the first loop we have ever done I am really stuck at the beginning. I just need help getting started then I will be able to do the rest on my own. So far this is what I have but I do not know how to start the first loop, once I can do that then I can do the rest of the loops and finish the problem.
Code:
// Purpose: This program will process grades in different
// sections. Then using all the sections and grade
// averages produce a summary including the number
// of sections, number of scores and average of scores.
//
// Input : No input will be prompted.
//
// Output : The output will show a label for the section, the counts
// for each grade, lowest score, highest score and average.
//
// int lowest score float average
// int highest score
//
//---------------------------------------------------------------------
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int section; // section number
int high; // highest score of section
int low; // lowest score of section
int scores;
float averagesection; // average of all scores in the section
int totalsections; // total number of sections
int totalscores; // total number of scores
int classaverage; // average scores of class
int TOTAL_OF_A, TOTAL_OF_B, TOTAL_OF_C, TOTAL_OF_D, TOTAL_OF_F;
int TotalofA; // total number of A's
int TotalofB; // total number of B's
int TotalofC; // total number of C's
int TotalofD; // total number of D's
int TotalofF; // total number of F's
cout << fixed << showpoint << setprecision(2);
while ( )
return 0;
}
I know you are not going to give me answers for my homework, I am just asking for help getting started.