Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:37:24+00:00 2026-06-01T22:37:24+00:00

I am writing my project on online student result which will compute the grade

  • 0

I am writing my project on online student result which will compute the grade point,average grade point and cummulative grade point.the output required is:

Name: Shakira Abdullahi
Adm.No: 096784657    
Department: Information Technology
Semester: 1st semester
Level: 200

Course title                     Course code    Course unit    score     Grade
Computer programming II            Csc 201        3             45        D
Introduction to file procesing     Csc 204        2             57        C
Introduction to the internet       Int 201        3             34        F
Linear algebra II                  Mth 205        2             60        B
Real Analysis I                    Mth 207        3             76        A
Numeric Analysis                   Mth 209        2             42        E
Nigerian people and culture        Gst 201        2             80        A

Units this session:17
Units to date:35
G.P this session:47
G.P.A last session:3.43
G.P.A to date:2.87
Remarks: To repeat Int 201

Examination grading
Score(%)    grade   Grade points     
70-100        A       5
60-69         B       4
50-59         C       3
45-49         D       2
40-44         E       1
0-39          F       0

Explanation:

  • Units this session: total course units this session
  • Units to date: cumulative of each session units up-to this session
  • G.P this session: sum(each course(grade point x unit) )
  • G.P to date: cumulative of each session G.P up-to this session
  • G.P.A last session: Average G.P last session
  • G.P.A to date: Average G.P to date.
  • level: we have up to 4 levels: 100, 200, 300 and 400

Also what is required by the user before having access to the result are:
Name, Adm.No, Department, semester and session.
the session is in form of years e.g 2010-2011.

So please, how do I go about this project? My questions are:

  • Can I maintain a table for this?
  • How do I go about the query?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:37:25+00:00Added an answer on June 1, 2026 at 10:37 pm

    I would suggest creating a database with different tables linking to a master table with students.

    This is the structure of tables I would create:

    • student
    • courses
    • scores
    • grading

    Within each of these I would create the required columns.

    Student Table

    Within the student table create a columns for the following:

    • ID (Primary, INT, 11, autoincrement)
    • Name (Varchar, 256)
    • AdmNo (INT, 11)
    • Department (Varchar, 256)
    • Semester (Could be an ID with corresponding values or a Varchar with a max of 256 characters)
    • Level (INT, 11)
    • SessionUnits (INT, 11)
    • DateUnits (INT, 11)
    • ThisGP (INT,11)
    • LastGPA (Float)
    • TDGPA (Float)
    • Remarks (Varchar, 256)

    Courses

    • ID (Primary, INT, 11, autoincrement)
    • Name (Varchar, 256)
    • CourseCode (Varchar, 256)

    Scores

    • ID (Primary, INT, 11, autoincrement)
    • StudentID (ID, 11)
    • CourseID (ID, 11)
    • Score (ID, 11)
    • CourseUnit (ID,11)
    • Grade (Varchar, 256)

    Grading

    • ScoreMinPercent (INT,11)
    • ScoreMaxPercent (INT,11)
    • Grade (Varchar, 256)
    • GradePoints (INT, 11)

    The SQL with the values included would be as follows:

    CREATE TABLE IF NOT EXISTS `student` (
      `ID` int(11) NOT NULL AUTO_INCREMENT,
      `Name` varchar(256) NOT NULL,
      `AdmNo` int(11) NOT NULL,
      `Department` varchar(256) NOT NULL,
      `Semester` varchar(256) NOT NULL,
      `Level` int(11) NOT NULL,
      `SessionUnits` int(11) NOT NULL,
      `DateUnits` int(11) NOT NULL,
      `ThisGP` int(11) NOT NULL,
      `LastGPA` float NOT NULL,
      `TDGPA` float NOT NULL,
      `Remarks` varchar(256) NOT NULL,
      PRIMARY KEY (`ID`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
    
    INSERT INTO `student` (`ID`, `Name`, `AdmNo`, `Department`, `Semester`, `Level`, `SessionUnits`, `DateUnits`, `ThisGP`, `LastGPA`, `TDGPA`, `Remarks`) VALUES
    (1, 'Shakira Abdullahi', 96784657, 'Information Technology', '1st semester', 200, 17, 35, 47, 3.43, 2.87, 'To repeat Int 201');
    
    CREATE TABLE IF NOT EXISTS `courses` (
      `ID` int(11) NOT NULL DEFAULT '0',
      `Name` varchar(256) NOT NULL,
      `CourseCode` varchar(256) NOT NULL,
      PRIMARY KEY (`ID`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    INSERT INTO `courses` (`ID`, `Name`, `CourseCode`) VALUES
    (1, 'Computer programming II', 'Csc 201'),
    (2, 'Introduction to file procesing', 'Csc 204'),
    (3, 'Introduction to the internet', 'Int 201'),
    (4, 'Linear algebra II', 'Mth 205'),
    (5, 'Real Analysis I', 'Mth 207'),
    (6, 'Numeric Analysis', 'Mth 209'),
    (7, 'Nigerian people and culture', 'Gst 201');
    
    CREATE TABLE IF NOT EXISTS `scores` (
      `ID` int(11) NOT NULL AUTO_INCREMENT,
      `StudentID` int(11) NOT NULL,
      `CourseID` int(11) NOT NULL,
      `Score` int(11) NOT NULL,
      `CourseUnit` int(11) NOT NULL,
      `Grade` varchar(256) NOT NULL,
      PRIMARY KEY (`ID`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
    
    INSERT INTO `scores` (`ID`, `StudentID`, `CourseID`, `Score`, `CourseUnit`, `Grade`) VALUES
    (1, 1, 1, 45, 3, 'D'),
    (2, 1, 2, 57, 2, 'C'),
    (3, 1, 3, 34, 3, 'F'),
    (4, 1, 4, 60, 2, 'B'),
    (5, 1, 5, 76, 3, 'A'),
    (6, 1, 6, 42, 2, 'E'),
    (7, 1, 7, 80, 2, 'A');
    
    CREATE TABLE IF NOT EXISTS `grading` (
      `ScoreMinPercent` int(11) NOT NULL AUTO_INCREMENT,
      `ScoreMaxPercent` int(11) NOT NULL,
      `Grade` varchar(256) NOT NULL,
      `GradePoints` int(11) NOT NULL,
      PRIMARY KEY (`ScoreMinPercent`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=77 ;
    
    INSERT INTO `grading` (`ScoreMinPercent`, `ScoreMaxPercent`, `Grade`, `GradePoints`) VALUES
    (40, 44, 'E', 1),
    (45, 49, 'D', 2),
    (50, 59, 'C', 3),
    (60, 69, 'B', 4),
    (70, 100, 'A', 5),
    (71, 39, 'F', 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an online project asset tracker but I'm new to MySQL. What would
I am writing a MVC3 project. Right now I have a table which has
I am writing a MVC3 project. Right now I have a table which has
I'm writing c++ project, which contains several classes. I created .h file named Position.h,
I am writing a project that uses LruCache, which is included in the android-support-v4.jar
I have a question about writing a script which can manage to play online
I'm writing a project for academic purposes which among other irrelevant stuff, includes writing
I'm writing a project in php that will basically give me a webpage with
In which parts of a project writing unit tests is nearly or really impossible?
I'm writing an Android project where I'm recording several audio files. Therefore, I'm setting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.