#include <iostream>
using namespace std;
void acceptedScores(int numOfstudents);
int printedScores();
int main()
{
int students;
int numStudents;
int scores;
int numOfStudents[100] = students;
char cont;
cont = 'y';
cout << "Would you like to begin (Y or y)" << endl;
cin >> cont;
while(cont=='Y' || cont== 'y')
{
cout<<"Please enter the number of students who took the exam"<<endl;
cin>> students;
while(numStudents > students)
{
cout << " Please enter the score for each student who took the exam" << endl;
cin >> scores;
numStudents++;
}
}
acceptScores (numOfStudents);
printedScores ();
system ("pause");
return 0;
}
void acceptScores(int numOfStudents)
int scores
for (scores >= 90 );
{
A++;
}
for (scores >= 80);
{
B++;
}
for (scores >= 70);
{
C++;
}
for (scores >= 60);
{
D++;
}
for (scores >= 0);
{
E++;
}
return A, B, C, D, E;
}
int printedScores()
{
int A = 0;
int B = 0;
int C = 0;
int D = 0;
int E = 0;
int students
cout << "The scores entered are:"<<scores<<endl;
for (grade = 0; grade)
cout << "A(s)" << A << endl;
cout << "B(s)" << B << endl;
cout << "C(s)" << C << endl;
cout << "D(s)" << D << endl;
cout << "E(s)" << E << endl;
}
spear64 0 Newbie Poster
Clinton Portis 211 Practically a Posting Shark
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.