Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Im having difficulity with a void problem. I have to get a program to read a txt

ID: 3625892 • Letter: I

Question

Im having difficulity with a void problem.

I have to get a program to read a txt file with name and grades. Then it needs to caculate the average, tell the grade..A, B, C..etc, count total A's, B's..etc.. and then print the name, avg, grade. I have this so far for my main structure and void parameters and call to void functions...just not sure how to make the voids work!...i have tired std...which dosn;t make sence to me so i try not to use it. If anyone could help with some of these structures i would apperciate it!...thanks!( this is what i have so far)


#include
#include
#include
#include
using namespace std;



void startTheProgram(ifstream& inp, double courseavg);
void caculateGpa(int& score);
void printname(string name, int grade, double avg);
void countGra(char letter, int count, int numA, int numB,
int numD, int numF);

int main ()
{
int courseScore;
int score;
int numA, numB, numC, numD, numF;
int count;
int grade;
double avg;
string name;
char letter;
group1.open("D:\crazy.txt");


cout << " Program that Caculates a Students Grade"
<< " From a text file" << endl;

caculateGpa(score);
printName(name,grade,avg);
countGra( letter,count, numA,numB,
numD, numF);

system("PAUSE");
return 0;
}
void caculateGPA(ifstream& inp, double& courseAvg)
{
double totalScore = 0.0;
int numberOfStudents = 0;
int score;
inp >> score;
while (score != 0)
{
totalScore = totalScore + score;
numberOfStudents++;
inp >> score;
}

courseAvg = totalScore/ numberOfStudents;
}

Explanation / Answer

if u can explain where is your problem we can help if you don`t know how to writhe these functions give me details of what the should do