Need Help c++ [sana po may makatulong sakin]

Discussion in 'C and C++' started by SilentZero, Aug 25, 2016.

  1. Mga master patulong naman po dito beginner pa lang po ako sa c++. 3 days ko na pong ginagawa to at hindi ko talaga masyadong magets kung pano please patulong naman po eto po yung problem ko
    And you are task to create a grading system for a University. The Grading System will hold 20-50 students and each student has the following data below:
    1. Attendance (20 entries)
    2. Quiz (5 entries)
    3. Machine Work (15 entries)
    4. Assignment (10 entries)
    5. Project (2 entries)
    6. Long Exam (2 entries)
    7. Major Exam (2 entries)

    Your main task is store and organizes the data using the repetition control structure, function, array, pointer and structure to solve the grading system.

    Eto na po ang nasimulan ko sana po may makatulong sakin :(
    Code:
    #include <iostream>
    #include <string.h>
    #include <iomanip>
    #include <stdlib.h>
    #include <conio.h>
    using namespace std;
    const int attendance=20,quiz=5,machinework=15,assignment=10,project=2,longexam=2,majorexam=2;
    
    
        class student{
    public:
        struct Stud_Num
        { 
            char studnum[500];
            int toget;    
            char name[500];
    
    
        }pakganern[];
    }student;
    
    
    void StudInfo()
    {
        
        int att[attendance],q[quiz],mw[machinework],ass[assignment],proj[project],le[longexam],me[majorexam];
        cout<<"How many student do you want to compute a grade?:";
        cin>>student.pakganern->toget;
       for(int i=0;i<student.pakganern->toget;i++){
           
           cout<<"STUDENT NO."<<i+1<<endl;
        cout<<"Student Number: ";
        cin.get();
        cin.getline(student.pakganern[i].studnum,500);
        cout<<"Name of Student: ";
        cin.get();
        cin.getline(student.pakganern[i].name,500);
        
            cout<<"\t\t\t\tATTENDANCE"<<endl;
            cout<<"\t\t\t   (0=Absent,3=Present)"<<endl;
            for(int i=0;i<attendance;i++){
            cout<<"Attendance "<<(i+1)<<": ";
            cin>>att[i];
            }
            
            
            cout<<"\t\t\t\t  QUIZ"<<endl;
            for(int i=0;i<quiz;i++){
            cout<<"Quiz "<<(i+1)<<": ";
            cin>>q[i];
            }
            
            cout<<"\t\t\t\tMACHINE WORK"<<endl;
            for(int i=0;i<machinework;i++){
            cout<<"Machine Work "<<(i+1)<<": ";
            cin>>mw[i];
            }
        
            cout<<"\t\t\t\tASSIGNMENT"<<endl;
            for(int i=0;i<assignment;i++){
            cout<<"Assignment "<<(i+1)<<": ";
            cin>>ass[i];
            }
    
    
            cout<<"\t\t\t\tPROJECT"<<endl;
            for(int i=0;i<project;i++){
            cout<<"Project "<<(i+1)<<": ";
            cin>>proj[i];
            }
            
    
    
            cout<<"\t\t\t\t****EXAMINATION****"<<endl;
            cout<<"\t\t\t\tLONG EXAM"<<endl;
            for(int i=0;i<longexam;i++){
            cout<<"Long Exam "<<(i+1)<<": ";
            cin>>le[i];
            }
                    
            cout<<"\t\t\t\tMAJOR EXAM"<<endl;
            for(int i=0;i<majorexam;i++){
            cout<<"Major Exam "<<(i+1)<<": ";
            cin>>me[i];
            }
                
        
        }
    }
    
    
    
    
    
    
    int main()
    {
        
        cout<<"\t\t\t  **************************"<<endl;
        cout<<"\t\t\t       GRADING SYSTEM"<<endl;
        cout<<"\t\t\t  **************************"<<endl;
    
    
        StudInfo();
    
    
    
    
    
    
        
        system("pause");
        return 0;
    }
    
    
    


     

Share This Page