You are on page 1of 10

Rahman Malik

PROGRAM ONE: UCAS CALCULATOR

SECTION ONE: ANALYSIS AND DESIGN

The purpose of this program is to calculate the overall grade of a student and also how
many UCAS points they have achieved. There are three buttons of the achievable
grades, pass merit or distinction, the students receive twelve overall grades and they
simply click on the relevant buttons in order to find out their overall grade and UCAS
points. This program also has an intro screen which allows the user to first choose
their course which includes: BTEC national certificate, BTEC national award and
BTEC national diploma. Below is a screenshot of the layout of the intro screen and
the form:
Rahman Malik

As you can see above is the layout of my intro screen and form. The form consists of
seven labels, four buttons and a status bar. I will now provide a screenshot of the
properties of this form below:
Rahman Malik

Above are the properties of the form. I will now describe some of its properties in
more detail and explain what I have declared them as.
Rahman Malik

SECTION TWO: CODE AND IMPLEMETATION OF


APPLICATION

Below I will provide you with the actual program code then go on to discuss what
variables were declared and why:

Private Sub CmdPass_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles CmdPass.Click
PassUnitPoints = 6

GradeBoundaryPoints = GradeBoundaryPoints + PassUnitPoints

UCASPass = UCASPass + 1

UnitCounter = UnitCounter + 1

TrBStatus.Value = TrBStatus.Value + 1

If TrBStatus.Value = 12 Then

CmdPass.Enabled = False

CmdMerit.Enabled = False

CmdDistinction.Enabled = False
End If

LblPass.Text = UCASPass & "Passes"

LblBoundarypoints.Text = GradeBoundaryPoints & "Grade


Boundary Points"
End Sub

Private Sub CmdMerit_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles CmdMerit.Click
MeritUnitPoints = 12

GradeBoundaryPoints = GradeBoundaryPoints + MeritUnitPoints

UCASMerit = UCASMerit + 1

UnitCounter = UnitCounter + 1

TrBStatus.Value = TrBStatus.Value + 1

If TrBStatus.Value = 12 Then

CmdPass.Enabled = False

CmdMerit.Enabled = False

CmdDistinction.Enabled = False
End If

LblMerit.Text = UCASMerit & "Merits"


Rahman Malik

LblBoundarypoints.Text = GradeBoundaryPoints & "Grade


Boundary Points"
End Sub

Private Sub CmdDistinction_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CmdDistinction.Click
DistinctionUnitPoints = 18

GradeBoundaryPoints = GradeBoundaryPoints +
DistinctionUnitPoints

UCASDistinction = UCASDistinction + 1

UnitCounter = UnitCounter + 1

TrBStatus.Value = TrBStatus.Value = 1

If TrBStatus.Value = 12 Then

CmdPass.Enabled = False

CmdMerit.Enabled = False

CmdDistinction.Enabled = False
End If

LblDistinction.Text = UCASDistinction & "Distinction"

LblBoundarypoints.Text = GradeBoundaryPoints & "Grade


Boundary Points"
End Sub

Private Sub CmdCalculate_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CmdCalculate.Click
If GradeBoundaryPoints >= 108 And GradeBoundaryPoints <= 131
Then

LblGrade.Text = "Overall Grade PPP"

LblPoints.Text = "120 UCAS Points"

ElseIf GradeBoundaryPoints >= 132 And GradeBoundaryPoints <=


155 Then

LblGrade.Text = "Overall Grade MPP"

LblPoints.Text = "160 UCAS Points"

ElseIf GradeBoundaryPoints >= 156 And GradeBoundaryPoints <=


179 Then

LblGrade.Text = "Overall Grade MMP"

LblPoints.Text = "200 UCAS Points"

ElseIf GradeBoundaryPoints >= 180 And GradeBoundaryPoints <=


203 Then

LblGrade.Text = "Overall Grade MMM"

LblPoints.Text = "240 UCAS Points"


Rahman Malik

ElseIf GradeBoundaryPoints >= 204 And GradeBoundaryPoints <=


227 Then

LblGrade.Text = "Overall Grade DMM"

LblPoints.Text = "280 UCAS Points"

ElseIf GradeBoundaryPoints >= 228 And GradeBoundaryPoints <=


251 Then

LblGrade.Text = "Overall Grade DDM"

LblPoints.Text = "320UCAS Points"

LblGrade.Text = "Overall Grade Fail"

ElseIf GradeBoundaryPoints >= 252 And GradeBoundaryPoints <=


324 Then

LblGrade.Text = "Overall Grade DDD"

LblPoints.Text = "360UCAS Points"

LblGrade.Text = "Overall Grade Fail"

End If
End Sub
End Class

Above is the actual program code for my application and I will now explain what
variables I have declared:

Above are the declared variables for my application. The reason these variables are
declared is because they are used to store values. These values will then be used
Rahman Malik

throughout my code as can be seen in my actual program code. Without these


variables my code will then end up with errors and the program not working.

SECTION THREE: TESTING

I will now represent a testing table and this to ensure that all my buttons etc do what
they are supposed to be doing. The testing table will consist of the following
headings:

 Test
 Test Data Used
 Expected Output
 Actual Output
 Test Result

TEST TEST DATA EXPECTED ACTUAL TEST RESULT


USED OUTPUT OUTPUT
CmdPass Allows user to Allowed user Works correctly
enter amount of to enter pass
pass grades grades
CmdMerit Allows user to Allowed user Works correctly
enter amount of to enter merit
merit grades grades
CmdDistinctio Allows user to Allowed user Works correctly
n enter amount of to enter
distinction grades distinction
grades
TrBStatus Shows status of Showed status Works correctly
grade of grade
CmdCalculate Calculates user’s Calculated Works correctly
total grades users total
grades
Rahman Malik

Qualification No. No. No. Expecte Actual Pass/Fail


Passes Merits Distinction d Outcome
s Outcome
BTEC 4 4 4 Total Total Pass
National points: points:
Certificate 144 144
UCAS UCAS
points: points:
200 200
Grade: Grade:
DM DM
6 2 4 Total Total Pass
points: points:
132 132
UCAS UCAS
points: points:
160 160
Grade: Grade:
MM MM
3 4 5 Total Total Pass
points: points:
156 156
UCAS UCAS
points: points:
200 200
Grade: Grade:
DM DM

7 3 2 Total Total Pass


points: points:
114 114
UCAS UCAS
points: points:
120 120
Grade: Grade:
MP MP
6 3 3 Total Total Pass
points: points:
126 126
UCAS UCAS
points: points:
160 160
Grade: Grade:
MM MM
Rahman Malik

Qualification No. No. No. Expecte Actual Pass/Fail


Passes Merits Distinction d Outcome
s Outcome
BTEC 3 2 1 Total Total Pass
National points: points:
Award 60 60
UCAS UCAS
points: points:
80 80
Grade: M Grade: M

4 1 1 Total Total Pass


points: points:
54 54
UCAS UCAS
points: points:
40 40
Grade: P Grade: P
2 2 2 Total Total Pass
points: points:
72 72
UCAS UCAS
points: points:
80 80
Grade: M Grade: M

1 4 1 Total Total Pass


points: points:
72 72
UCAS UCAS
points: points:
80 80
Grade: M Grade: M
4 2 0 Total Total Pass
points: points:
48 48
UCAS UCAS
points: points:
40 40
Grade: P Grade: P
Rahman Malik

Qualification No. No. No. Expecte Actual Pass/Fail


Passes Merits Distinction d Outcome
s Outcome
BTEC 0 0 18 Total Total Pass
National points: points:
Diploma 324 324
UCAS UCAS
points: points:
360 360
Grade: Grade:
DDD DDD
6 6 6 Total Total Pass
points: points:
216 216
UCAS UCAS
points: points:
280 280
Grade: Grade:
DMM DMM
0 0 0 Total Total Pass
points: points:
Fail Fail
UCAS UCAS
points: points:
Fail Fail
Grade: Grade:
Fail Fail
18 0 0 Total Total Pass
points: points:
108 108
UCAS UCAS
points: points:
120 120
Grade: Grade:
PPP PPP
0 18 0 Total Total Pass
points: points:
216 216
UCAS UCAS
points: points:
280 280
Grade: Grade:
MMM MMM

You might also like