HELP with a C++ program reading students grades from an infile and outputing the results to outfile?

 Dont Buy Textbooks. Rent 'EM Save 60-80%



I have to write a program the reads students grades together with their test grades. It suppose to compute the average test scores an then assign the appropriate grade. have to use a void function to determine the average for the five test scores and a value returning function to determine and return each students grade. the students grades are on an infile and i have to output it to an outfile.

This is what i have:

#include <iostream>

#include <fstream>

using namespace std;

calculateGrade(float);

int main ()

{

ifstream infile;

infile.open("C:\inGrade.dat");

ofstream outfile;

outfile.open("C:\FinalGrades.txt");

calculateGrade()

infile.close ();

outfile.close ();

system("pause");

return 0;

}

void calculateGrade(string, float)

{

if (average>=90)

outfile<<"A"<<endl;

else if(average>=80)

outfile<<"B"<<endl;

else if (average>=70)

HELP with a C++ program reading students grades from an infile and outputing the results to outfile?visual c++ express



http://computercomponents.spaces.live.co...



More Related Questions and Answers ...
  • C++ Help... I cant figure this one out.. Plea..
  • C++ HELP, I can get the program running, but ..
  • C++ program question?
  • C++ code to replace words in a document, keep..
  • Need help with c++ programming please?
  • C++ programming?
  • Why am i getting this c++ error?
  • C++ help help help, almost can get it but not..
  • For file io in c++ how do i count all the wor..
  • C++ Problem?
  • Help with outfile in Bloodsheed C++?
  • Need help with io in C++, have read much prog..
  • C++: How do you edit a char string from a dif..
  • C++ Error message?
  • C++ programing this is part of my study guide..
  • C++..program runs fine but with errors in the..
  • C++ array to hold full name (first last) as a..
  • HELP!!! C++ PROBLEM! Someone Please HELP!?
  • Need help with a c++ Code?

  • The information post by website user , we not guarantee correctness.

    

    Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes