1. Pinoy Hideout is the Ultimate Pinoy Chat, Mobile and PC Community
    We have been leading the scene for over 7 years and currently offer:
    • latest and updated game cheats and softwares
    • internet tricks for your android phone, mobile network, and computer
    • a staff team who helps protect its members from malware while enforcing a great community

    • You must register an account before you can post, download files, and see any advanced features or content.

Dismiss Notice
Announcement!
Gusto mo bang makakuha ng VIP subcription ng libre? CLICK HERE<

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

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

  1. SilentZero

    SilentZero Leecher

    Reputations:
    0
    Joined:
    Jun 11, 2012
    Posts:
    6
    Likes Received:
    0
    Trophy Points:
    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.studnum,500);
        cout<<"Name of Student: ";
        cin.get();
        cin.getline(student.pakganern.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;
            }
            
            
            cout<<"\t\t\t\t  QUIZ"<<endl;
            for(int i=0;i<quiz;i++){
            cout<<"Quiz "<<(i+1)<<": ";
            cin>>q;
            }
            
            cout<<"\t\t\t\tMACHINE WORK"<<endl;
            for(int i=0;i<machinework;i++){
            cout<<"Machine Work "<<(i+1)<<": ";
            cin>>mw;
            }
        
            cout<<"\t\t\t\tASSIGNMENT"<<endl;
            for(int i=0;i<assignment;i++){
            cout<<"Assignment "<<(i+1)<<": ";
            cin>>ass;
            }
    
    
            cout<<"\t\t\t\tPROJECT"<<endl;
            for(int i=0;i<project;i++){
            cout<<"Project "<<(i+1)<<": ";
            cin>>proj;
            }
            
    
    
            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;
            }
                    
            cout<<"\t\t\t\tMAJOR EXAM"<<endl;
            for(int i=0;i<majorexam;i++){
            cout<<"Major Exam "<<(i+1)<<": ";
            cin>>me;
            }
                
        
        }
    }
    
    
    
    
    
    
    int main()
    {
        
        cout<<"\t\t\t  **************************"<<endl;
        cout<<"\t\t\t       GRADING SYSTEM"<<endl;
        cout<<"\t\t\t  **************************"<<endl;
    
    
        StudInfo();
    
    
    
    
    
    
        
        system("pause");
        return 0;
    }
    
    
    
     

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Share This Page

Pinoy Hideout