This is what I have to do:
Quote:
CECS 2203/03- Computer Programming I Laboratory
Project #2
Release Date: January 31, 2007
Due Date: February 13, 2007
Expand the program from the first project to include the following features:
• Allow the user to write the names and id number of the students.
• Allow the user to write the name of the courses that each student is taking. Each student must take 3 courses.
• Determine the final grade for each of the courses. Each course consists of three grades.
• Calculate the gpa of each student based on the three courses taken.
• For the view function the students must be organized by their gpa, highest gpa first.
• You must include all the options of the original program except for calculating the variance and standard deviation.
• For the compare function, the comparison will be made between the gpas of each student.
- You must document the entire program, adding comments that explain what every function does and to explain what each important calculation does.
- If you wish to add other options in addition to the ones discussed you must add a function to do it.
- For the functions discussed you can use any number of parameters that you find necessary to accomplish the task and the functions could all be void or they can return the value that you find appropriate.
- In the “about creator” option the program must write your name, class professor’s name, and the date.
Project #2
Release Date: January 31, 2007
Due Date: February 13, 2007
Expand the program from the first project to include the following features:
• Allow the user to write the names and id number of the students.
• Allow the user to write the name of the courses that each student is taking. Each student must take 3 courses.
• Determine the final grade for each of the courses. Each course consists of three grades.
• Calculate the gpa of each student based on the three courses taken.
• For the view function the students must be organized by their gpa, highest gpa first.
• You must include all the options of the original program except for calculating the variance and standard deviation.
• For the compare function, the comparison will be made between the gpas of each student.
- You must document the entire program, adding comments that explain what every function does and to explain what each important calculation does.
- If you wish to add other options in addition to the ones discussed you must add a function to do it.
- For the functions discussed you can use any number of parameters that you find necessary to accomplish the task and the functions could all be void or they can return the value that you find appropriate.
- In the “about creator” option the program must write your name, class professor’s name, and the date.
This is what I've done so far:
//Alice Thon
//A0000002803
//Proyecto Registro de Notas
//Prof. Felix J. Nevares
//2203 Secc 03
#include
#include
#include
#include
void enternameid (char [], char [])
void entercourse (char [])
void entergrades (int [][][])
void finalgrade (int [][][])
void gpa(int [][][])
void changegrades(int [][][])
void seegrades()
void comparegpas()
void author(void)
void main (){
do{
cout << "MENU" << endl;
cout <
cout <<"4. Calculate the final grade for each course." << endl;
cout <<"5. Calculate the GPA." << endl;
cout <<"6. Change the student's grades." << endl;
cout <<"7. View GPAs." << endl;
cout <<"8. Compare GPAs."<
cout <<"10. Exit." << endl;
cout << endl;
cout << endl;
cout << "nnEnter option:" ;
cin >> opt;
switch (opt){
case 1:
enternameid(char [], char [])
break;
case 2:
entercourse(char [])
break;
case 3:
entergrades(int [][][]) //5 students, 3 exams, 3 courses
break;
case 4:
finalgrade(int [][][])
break;
case 5:
gpa(int [][][])
break;
case 6:
changegrades (int [][][])
break;
case 7:
seegrades()
break;
case 8:
comparegpas()
break;
case 9:
author(void)
break;
case 10:
system("cls")
cout << "You have finished using the program." << endl;
break;
default:
cout << "Invalid Option" <
system("cls")
break;
}//end switch
cout << endl;
}while (opt != 8)
}//end main
void enternameid (char [], char []){
for (i=0; i<5; i++){
cout<<"Enter the student's name:"<
cout<<"Enter the studen'ts ID#:"<
}
}
void entercourse (char []){
cout<<"Enter the name of the first course:"<
cout<<"Enter the name of the second course:"<
cout<<"Enter the name of the third course:"<
}
void entergrades (int [][][]){
}
void finalgrade (int [][][]){
}
void gpa(int [][][]){
}
void changegrades(int [][][]){
}
void seegrades(){
}
void comparegpas(){
}
void author(){
system("cls")
cout << "Program created by:" << endl;
cout << "Alice Thon est.#: A0000002803" << endl;
cout << "Prof:Felix J. Nevarez Cecs 2203 Sec03" << endl;
cout << "Feb 13 2007" << endl;
cout << endl << endl;
system("pause")
}
Please help me people. I promise I will study for the next C++ course that I'm taking next trimester, I promise I'll learn from your help. But please, you have to help me or else I will fail the class and ruin my GPA. Thank you.