Vous êtes sur la page 1sur 8

ASSIGNMENT 3

Unit 12: Software Development

Harry Piggot
307284040

3072840

Harry Piggot

Contents
My Program ............................................................................................................................................ 2
My Code .................................................................................................................................................. 3
Test Plan .................................................................................................................................................. 5
Feedback Results..................................................................................................................................... 7

3072840

Harry Piggot

My Program

This is my weight convert. It converts many of weights including STs, KGs and LBs. My program is
very plain and simple so it is very easy to use. Also it has help boxes above the Combo Boxes which
you can click if you need any help.

3072840

Harry Piggot

My Code
This is the code for my program.
Public Class Form1
Dim firstweight As String ' Global Variable for different weights.'
Dim secondweight As String ' Global Variable for different weights.'
Private Sub BtnCONV_Click(sender As Object, e As EventArgs) Handles
BtnCONV.Click
Dim amount As Double 'Local Variable to store the amount that is inputed.'
Dim sum As Double 'Local varible to store the answer and to display it
within the program.'
amount = Val(TextBoxW.Text) 'Stores the amount inputed into the textox named
TextBoxW.'
If firstweight = "KGs" And secondweight = "LBs" Then 'Checks to see what
weight unit has been selected.'
sum = amount * 2.2046 'The conversion between two weights.'
MessageBox.Show("You will get " & sum & " " & secondweight) 'States what
the message box will display.'
ElseIf firstweight = "LBs" And secondweight = "KGs" Then 'Checks to see what
weight has been selected.'
sum = amount / 2.2046 'The conversion between two weights.'
MessageBox.Show("You will get " & sum & " " & secondweight)
ElseIf firstweight = "LBs" And secondweight = "ST" Then 'Checks to see what
weight has been selected.'
sum = amount * 0.071429 'The conversion between two weights.'
MessageBox.Show("You will get " & sum & " " & secondweight)
ElseIf firstweight = "ST" And secondweight = "LBs" Then 'Checks to see what
weight has been selected.'
sum = amount / 0.071429 'The conversion between two weights.'
MessageBox.Show("You will get " & sum & " " & secondweight)
ElseIf firstweight = "KGs" And secondweight = "ST" Then 'Checks to see what
weight has been selected.'
sum = amount * 0.15747 'The conversion between two weights.'
MessageBox.Show("You will get " & sum & " " & secondweight)
ElseIf firstweight = "ST" And secondweight = "LBs" Then 'Checks to see what
weight has been selected.'
sum = amount / 0.071429 'The conversion between two weights.'
MessageBox.Show("You will get " & sum & " " & secondweight)
ElseIf firstweight = "" And secondweight = "" Then 'Checks to see what
weight has been selected.'
MessageBox.Show("Please Input A Weight")
ElseIf firstweight = "LBs" And secondweight = "LBs" Then 'Checks to see what
weight has been selected.'
MessageBox.Show("Remember to convert to a different weight.")

3072840

Harry Piggot

ElseIf firstweight = "ST" And secondweight = "ST" Then 'Checks to see what
weight has been selected.'
MessageBox.Show("Remember to convert to a different weight.")
ElseIf firstweight = "KGs" And secondweight = "KGs" Then 'Checks to see what
weight has been selected.'
MessageBox.Show("Remember to convert to a different weight.")
End If
End Sub
Private Sub CmbFrom_SelectedIndexChanged(sender As Object, e As EventArgs)
Handles CmbFrom.SelectedIndexChanged
firstweight = CmbFrom.Text
End Sub
Private Sub CmbTo_SelectedIndexChanged(sender As Object, e As EventArgs) Handles
CmbTo.SelectedIndexChanged
secondweight = CmbTo.Text
'Assigns varible to combo box. Therefore
End Sub
Private Sub BtnHELP2_Click(sender As Object, e As EventArgs) Handles
BtnHELP2.Click
MessageBox.Show("In the box below select the weight you want to convert to")
'This is the '?' button above the right combo box. This is for users that
need help.
End Sub
Private Sub BtnHELP1_Click(sender As Object, e As EventArgs) Handles
BtnHELP1.Click
MessageBox.Show("In the box below select the weight you want to convert
from")
'This is the '?' button above the left combo box. This is for users that
need help.
End Sub
End Class

3072840

Harry Piggot

Test Plan
In this Test Plan I will show you what I did when I wrote my Weight Converter program. I will also
show you want went wrong and what went right. There is also a survey I made which I gave to 8
users. The survey will give me feedback and tell me what I need to improve on.

Test
Test Date Description
Expected Result -

Comments -

Test
Test Date Description
Expected Result Result -

Test
Test Date Description
Expected Result Result -

Test
Test Date Description
Expected Result Result -

Test
Test Date Description
Expected Result Result -

Picture -

06/05/2015
Starting up program
The program should start up with
the title and the two drop down
boxes with the Amount to convert
label and the text box underneath
with the convert button at the
bottom.
Nothing went wrong.

Picture -

06/05/2015
Converted KG to LB
The weights the user selected to
convert successfully.
Converted the two weights
successfully.

Picture -

06/05/2015
Converted KGs to ST
The weights the user selected to
convert successfully.
Converted the two weights
successfully.

Picture -

06/05/2015
Converted LBs to ST
The weights the user selected to
convert successfully.
Converted the two weights
successfully.

Picture -

06/05/2015
Converted LBs to KGs
The weights the user selected to
convert successfully.
Converted the two weights
successfully.
5

3072840

Test
Test Date Description
Actual Result
Result -

Test
Test Date Description
Expected Result Result -

Test
Test Date Description
Expected Result -

Result -

Harry Piggot

Picture -

06/05/2015
Converted STs to KGs
The weights the user selected to
convert successfully.
Converted the two weights
successfully.

Picture -

06/05/2015
Converted STs to LBs
The weights the user selected to
convert successfully.
Converted the two weights
successfully.

Picture -

06/05/2015
Converted KGs to KGs
The weights the user selected to
not convert and come up with a
message box saying Remember to
convert to a different weight.
It came up with the text box saying
Remember to convert to a
different weight.

3072840

Harry Piggot

Feedback Results
This feedback answer how shown me not to
change my layout as my feedback peers have
told me it looks good.

This feedback answer has shown me that my


help buttons wasnt really used which shows
me my program is so easy to use it doesnt
need help buttons. Some people did use my
help buttons and they found them useful.

This feedback answer shows me that many


people would recommend my program. 71% of
them chose 9-10 so Im guaranteed to be
recommended.

This feedback answer shows me that my


program looks very professional so that means
companies might even use this program.

This feedback answer shows me that 71.43 % of


people think my like my program a great deal.
28.57% Like it a moderate amount.

I would not change anything with my program and my feedback was good.

Vous aimerez peut-être aussi