Vous êtes sur la page 1sur 12

# UCAS Points Calculator

The program that I have created is a UCAS point’s calculator. Its main purpose is to calculate the
amount of points a student would get depending on the grades that he got. Below are pictures of
what the interface of my program looks like. I have developed a total of 3 programs to calculate for
the 3 BTEC courses, BTEC National Award, BTEC National Certificate, and BTEC National Diploma.

Firstly, I created
and Intro Screen
so that the user
can easily select
which course he
is enrolled in
and checks what
points he would
get.

## This is the first program I created; it is a UCAS

calculator to calculate the grades for students
enrolling in the BNA course. Because they can
only get 6 grades the calculator will only accept 6
grades, it will not take anymore. Once you have
inputted the grade click on the Calculate UCAS
Now Button. As we can see, this student got an
overall grade of a Merit with 80 UCAS points.

## This program is similar to the first one. It is

another UCAS calculator to calculate the points
for BNC courses. However this the time the
student must input 12 grades and no more as
that is how much the course is offering. As we
can see, this student has got an overall grade of
DD and has received 240 UCAS points.

## All of the programs I have made are similar the only

main difference is the amount of grades a student
must input. This program has the highest amount of
grades to be inputted as it is the highest level course
out of the 3. The student must input 18 Grades into
the program to get his/her points. As you can see, this
student got MMM with a total of 240 UCAS points.
The Coding

## Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs)

End Sub

## Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As

System.Object, ByVal e As System.EventArgs) Handles
ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedItem = "BTEC National Award" Then
BNA.Show()
ElseIf ComboBox1.SelectedItem = "BTEC National Certificate" Then
BNC.Show()
ElseIf ComboBox1.SelectedItem = "BTEC National Diploma" Then
BND.Show()
This part of the code controls the events for the intro screen.
End If
End Sub

End Sub
End Class

## Code for the BTEC National Award Calclator

Public Class BNA
Dim PassUnitPoints As Integer
Dim MeritUnitPoints As Integer
Dim DistinctionUnitPoints As Integer
Dim UCASPass As Integer
Dim UCASMerit As Integer
Dim UCASDistinction As Integer
Dim UnitCounter As Integer
Private Sub BNA_Load(ByVal sender As System.Object, ByVal e As

End Sub
Private Sub CmdPass_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CmdPass.Click
PassUnitPoints = 6
UCASPass = UCASPass + 1
These chunks of code
UnitCounter = UnitCounter + 1
TrBStatus.Value = TrBStatus.Value + 1 are responsible for
If TrBStatus.Value = 6 Then what the Pass, Merit
CmdPass.Enabled = False
CmdMerit.Enabled = False and distinction are
CmdDistinction.Enabled = False worth once click upon.
So the Pass button is
End If
worth 6 points.
LblPass.Text = UCASPass & "Passes"

Points"
End Sub

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

System.EventArgs) Handles CmdMerit.Click
MeritUnitPoints = 12
UCASMerit = UCASMerit + 1
UnitCounter = UnitCounter + 1
TrBStatus.Value = TrBStatus.Value + 1
If TrBStatus.Value = 6 Then
CmdPass.Enabled = False
CmdMerit.Enabled = False
CmdDistinction.Enabled = False

End If

Points "
End Sub

## Private Sub CmdDistinction_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles CmdDistinction.Click
DistinctionUnitPoints = 18
UCASDistinction = UCASDistinction + 1
UnitCounter = UnitCounter + 1

TrBStatus.Value = TrBStatus.Value + 1
If TrBStatus.Value = 6 Then
CmdPass.Enabled = False
CmdMerit.Enabled = False
CmdDistinction.Enabled = False

End If
LblDistinction.Text = UCASDistinction & "Distinction"

Points "
End Sub
Private Sub CmdCalculate_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CmdCalculate.Click
LblPoints.Text = "40 UCAS Points"

LblPoints.Text = "80 UCAS Points"

Then
LblPoints.Text = "120 UCAS Points" This final part of the BNA
code is responsible to show
Else
End If
End Sub have been inputted.
End Class

## Code for the BTEC National Certificate Calculator

Public Class BNC
Dim PassUnitPoints As Integer
Dim MeritUnitPoints As Integer
Dim DistinctionUnitPoints As Integer
Dim UCASPass As Integer
Dim UCASMerit As Integer
Dim UCASDistinction As Integer
Dim UnitCounter As Integer

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

System.EventArgs) Handles CmdPass.Click
PassUnitPoints = 6
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

Points"

End Sub

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

System.EventArgs) Handles CmdMerit.Click
MeritUnitPoints = 12
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

Points "

End Sub

## Private Sub CmdDistinction_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles CmdDistinction.Click
DistinctionUnitPoints = 18
UCASDistinction = UCASDistinction + 1
UnitCounter = UnitCounter + 1 The 3 of these codes are similar as the value of the
Pass, Merit and Distinction grade remains the same.
TrBStatus.Value = TrBStatus.Value + 1
Also the amount of the grades the student inputs
If TrBStatus.Value = 12 Then
CmdPass.Enabled = False can change as well from 6 to 12 – 18. Towards the
CmdMerit.Enabled = False bottom of each code it changes as the UCAS points
CmdDistinction.Enabled = False
increase and the Overall Grade increases as well due
to the level of the course
End If
LblDistinction.Text = UCASDistinction & "Distinction"

Points "

End Sub

## Private Sub CmdCalculate_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles CmdCalculate.Click
LblPoints.Text = "80 UCAS Points"

Then
LblPoints.Text = "120 UCAS Points"

Then
LblPoints.Text = "160 UCAS Points"

Then
LblPoints.Text = "200 UCAS Points"
Then
LblPoints.Text = "240 UCAS Points"

Else

End If
End Sub

End Sub
End Class

## Public Class BND

Dim PassUnitPoints As Integer
Dim MeritUnitPoints As Integer
Dim DistinctionUnitPoints As Integer
Dim UCASPass As Integer
Dim UCASMerit As Integer
Dim UCASDistinction As Integer
Dim UnitCounter As Integer

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

System.EventArgs) Handles CmdPass.Click
PassUnitPoints = 6
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

Points"

End Sub

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

System.EventArgs) Handles CmdMerit.Click
MeritUnitPoints = 12
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

Points "
End Sub

## Private Sub CmdDistinction_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles CmdDistinction.Click
DistinctionUnitPoints = 18
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"

Points "
End Sub

## Private Sub CmdCalculate_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles CmdCalculate.Click
LblPoints.Text = "120 UCAS Points"

Then
LblPoints.Text = "160 UCAS Points"

Then
LblPoints.Text = "200 UCAS Points"

Then
LblPoints.Text = "240 UCAS Points"

Then
LblPoints.Text = "280 UCAS Points"

Then
LblPoints.Text = "280 UCAS Points"

Then
LblPoints.Text = "320 UCAS Points"

Then
LblPoints.Text = "360 UCAS Points"

End If
End Sub

## Private Sub BND_Load(ByVal sender As System.Object, ByVal e As

End Sub
End Class

Test Table
Test Test Data Use Expected Output Actual Output Test Results
Intro-Screen Should Open the Opened The PASS
(Drop Down List) BNA Calculator Program
for BTEC National
Award
Intro-Screen Should Open the Opened The PASS
(Drop Down List) BNC Calculator Program
for BTEC National
Certificate
Intro-Screen Should Open the Opened the PASS
(Drop Down List) BND Calculator Program
for BTEC National
Diploma
Pass Button Should Generate Generated 6 PASS
Points Points
Merit Button Should Generate Generated 12 PASS
Boundary Points Points
Distinction Should Generate Generated 18 PASS
Boundary Points Points
Calculate UCAS Should Generate Generated the PASS
and UCAS points UCAS Points
Further Testing
BTEC National Award
Qualification #Passes #Merits #Distinctions Expected Actual Pass/Fail Notes
Outcome Outcome
BTEC 2 3 1 Total Total Pass This Test
National Points = Points = proves to
Award 66 66 be
UCAS UCAS Successful,
Points = Points = so this part
80 80 of the
Overall Overall program is
=M =M well.
BTEC 1 1 4 Total Total Pass Another
National Points = Points = Successful
Award 90 90 Test.
UCAS UCAS
Points = Points =
120 120
Overall Overall
D
BTEC 6 0 0 Total Total Pass Another
National Points = Points = Successful
Award 36 36 Test
UCAS UCAS
Points Points
=40 =40
Overall Overall
P
BTEC 0 4 2 Total Total Pass Another
National Points Points Successful
Award =84 =84 Test
UCAS UCAS
Points = Points =
120 120
Overall Overall
D
BTEC 3 3 0 Total Total Pass Another
National Points Points Successful
Award =54 =54 Test
UCAS UCAS
Points = Points =
40 40
Overall Overall
P

## BTEC National Certificate

Qualification #Passes #Merits #Distinctions Expected Actual Pass/Fail Notes
Outcome Outcome
BTEC 3 4 5 Total Total Pass Another
National Points = Points = Successful
Certificate 156 156 Test
UCAS UCAS
Points = Points =
200 200
Overall Overall
DM DM
BTEC 1 2 9 Total Total Pass Another
National Points = Points = Successful
Certificate 192 192 Test
UCAS UCAS
Points = Points =
240 240
Overall Overall
DD DD
BTEC 7 1 4 Total Total Pass Another
National Points = Points = Successful
Certificate 126 126 Test
UCAS UCAS
Points = Points =
160 160
Overall Overall
MM MM
BTEC 3 8 1 Total Total Pass Another
National Points = Points = Successful
Certificate 132 132 Test
UCAS UCAS
Points = Points =
160 160
Overall Overall
MM MM
BTEC 4 4 4 Total Total Pass Another
National Points = Points = Successful
Certificate 144 144 Test
UCAS UCAS
Points = Points =
200 200
Overall Overall
DM DM

## BTEC National Diploma

Qualification #Passes #Merits #Distinctions Expected Actual Pass/Fail Notes
Outcome Outcome
BTEC 6 6 6 Total Total Pass Another
National Points = Points = successful
Diploma 216 216 test.
UCAS UCAS
Points = Points =
280 280
Overall Overall
DMM DMM

## BTEC 4 2 12 Total Total Pass Another

National Points = Points = Successful
Diploma 264 264 Test
UCAS UCAS
Points = Points =
360 360
DDD DDD
BTEC 2 9 7 Total Total Pass Another
National Points = Points = Successful
Diploma 246 246 Test.
UCAS UCAS
Points = Points =
320 320
DDM DDM
BTEC 8 6 4 Total Total Pass Another
National Points = Points = Successful
Diploma 192 192 Test
UCAS UCAS
Points = Points =
240 240
MMM MMM
BTEC 12 4 2 Total Total Pass Another
National Points = Points = Successful
Diploma 156 156 Test
UCAS UCAS
Points = Points =
200 200