Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void input(StudentRecord& student); //should prompt for input for one student and set the structure variable members.
  6.  
  7. void computeGrade(StudentRecord& student); //use this to calculate the numeric average and letter grade.
  8.  
  9. void output(const StudentRecord student); //outputs the student record.
  10.  
  11. struct StudentRecord
  12. {
  13. int StudentQuizScore[2][100];
  14. int MidNTermFinalScore;
  15. char Grade;
  16.  
  17. }
  18. int main()
  19. {
  20. StudentRecord student;
  21. cout << "enter the student number" << endl;
  22. cin >> StudentRecord.student;
  23.  
  24. input(StudentRecord.student);
  25.  
  26. }
  27.  
  28. void input(StudentRecord& student) //should prompt for input for one student and set the structure variable members.
  29. {
  30. cout << "enter two 10 point quizzes" << endl;
  31. cin >> StudentRecord.student.StudentQuizScore;
  32.  
  33. }
  34.  
  35. void computeGrade(StudentRecord& student); //use this to calculate the numeric average and letter grade.
  36. {
  37.  
  38. }
  39.  
  40. void output(const StudentRecord student); //outputs the student record.
  41. {
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement