POZDRAV...POTREBAN MI JE OVAJ CODE HITNO...DA BIH PROSAO NA ISPITU IZ VISUAL C++...NISAM PRATIO NEKOLIKO ZADNJIH SEDMICA, I TAKO DA SAM ZAOSTAO...
EVO PROBLEMA DOLE....
NA ENGLESKOM E JEZIKU TAKO DA AKO NEKO NE ZNA ENGLSKI DA MI SE OBRATI...SLEDI NAGRADA ZA ONOGA KOJI MI URADI PROGRAM...
PRVI DIO (STA TREBA DA SE URADI)
Final Exam Part II – Programming Problem
This program is to be submitted in class the day of the final exam. It is worth 50% of the
final. You are to read in student data from a file and create a report file sorted by grades.
The program will also report the course, and section(s) to the screen with the average
score and curved grade along with their corresponding letter grades. Follow the instructions
contained in this file.
You must use the following elements in your program.
struct recordType: This struct will need to contain the following members: first, last, course, section,
finalScore, possiblePoints, finalGrade, curvedGrade, letterGrade.
Functions:
int getClass( ifstream &in, recordType s[], int size): This function will read in an array of structs
and return the number of records read. It will
also calulate the grade as it reads the records: grade = score / possible points.
void printClass( ofstream &out, recordType s[], int size): This function prints an array of structs.
int findHighScore( recordType s[], int size ): This function will return the high score in the array.
void curveGrades( recordType s[], int size ): This function will curve the grades based on the high
score: curved grade = score / highscore * 100.
void sortByGrades( recordType s[], int size ): This function will sort an array of records by grade.
float findAverageGrade( recordType s[], int size ): This function will calculate and return the
average grade for the array of records.
float findAverageCurvedGrade( recordType s[], int size ): This function will calculate and return the average curved grade for the array of records.
char getLetterGrade( int nGrade ): This function will convert a numeric grade into the
corresponding letter grade using a switch statement.
Identifiers:
SIZE: The size of the record array.
studentRecords[]: The record array for the class.
aveGrade, aveCurvedGrade: The average score and grade.
classSize: The number of records in the array.
classData: The input file alias
gradeReport: The output file alias
class5152.txt: The name of the data file.
report.txt: The name of the output file.
evo sad sam promjenio...
Znaci to treba da napravim....
OUTPUT, I POTREBNI CLAS5152.txt fajl za program sam uploadovao na forum....
Molim vas ko moze pomoci bilo kako ako ne moze neko uraditi program,....ko zna da uradi program, sledi nagrada...