Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void input(StudentRecord& student); //should prompt for input for one student and set the structure variable members.
- void computeGrade(StudentRecord& student); //use this to calculate the numeric average and letter grade.
- void output(const StudentRecord student); //outputs the student record.
- struct StudentRecord
- {
- int StudentQuizScore[2][100];
- int MidNTermFinalScore;
- char Grade;
- }
- int main()
- {
- StudentRecord student;
- cout << "enter the student number" << endl;
- cin >> StudentRecord.student;
- input(StudentRecord.student);
- }
- void input(StudentRecord& student) //should prompt for input for one student and set the structure variable members.
- {
- cout << "enter two 10 point quizzes" << endl;
- cin >> StudentRecord.student.StudentQuizScore;
- }
- void computeGrade(StudentRecord& student); //use this to calculate the numeric average and letter grade.
- {
- }
- void output(const StudentRecord student); //outputs the student record.
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement