Assignment 1 - Program Review
Assignment 1 - Program Review
Resubmission
TABLE OF CONTENTS
Introduction.................................................................................................2
Program 1....................................................................................................3
Purpose of the program............................................................................3
Characteristics..........................................................................................3
Tools and techniques which have been used............................................5
Problems with the code and improvements program 1............................6
Problems...................................................................................................6
Improvements...........................................................................................6
Flowchart program 1.................................................................................8
Program 2....................................................................................................9
Purpose of the program............................................................................9
Characteristics..........................................................................................9
Tools and techniques used......................................................................11
Quality of the code program 1.................................................................12
Efficiency/performance...........................................................................12
Maintainability........................................................................................12
Portability................................................................................................12
Reliability................................................................................................12
Robustness.............................................................................................13
Usability..................................................................................................13
Strengths and weaknesses Program 1....................................................14
Strengths................................................................................................14
Weaknesses............................................................................................14
Definitions/keywords.................................................................................15
Conclusion.................................................................................................17
Bibliography..............................................................................................19
INTRODUCTION
PROGRAM 1
This code can be used as a currency exchanger: you enter the amount in
the amount box and then enter the exchange rate in the rate box. Once
you click the calculate button the application will give you the answer. It
can also be used as a calculator, however its intended use is for currency
exchange. This is useful for people who are going to a foreign country and
need to convert one currency to another or for businesses import export
calculations.
CHARACTERISTICS
The
exchange
rate is entered
in this box.
This is where
the amount of
money
is
entered in.
code
PROBLEMS
There are multiple problems with program 1 and in the following section I
will be discussing these problems.
The program is not labelled at all which means that a user might not know
what it does and how to use it. The program should be labelled to help out
the user and enable a better user experience. Although the boxes are
labelled the user might get confused as to what it does. This means that
the user could also get confused as to where the data is going to be
inputted or outputted. As well as this if the program crashes, there are no
error messages. This can be frustrating and the user will most likely not
know what is going on.
The program also cannot handle large amounts of data without crashing.
This isnt good for users because no one wants to use an application
which lags and doesnt give the answer promptly. This also makes the
program very unreliable. It also limits the users which are going to use this
program because some users might need an application which handles
large amounts of data. This means that this program does not cater to all
needs of the customers/users.
The program doesnt run in any other languages which means its not very
portable. This again can limit the amount of users who can actually use
this application. As well as this there are no currency signs, there should
be a drop down box with currency signs. A drop down box would make the
program easier to use and currency signs will enhance the user
experience.
IMPROVEMENTS
There are many ways in which this program could be improved and in this
section I will discuss these possible improvements.
Error/Pop-up messages should come up whenever the program crashes.
This will enable the user to understand what is going on. There could also
be a Report a crash problem. These type of features are available on
many software programs currently. They enable the user to send report
messages to the makers of the program. This allows the person in charge
of the program to improve the software and fix any problems with the
code.
Labels have to be added a description of the program to help the user use
the program and understand what it does. Currently the program is not
labelled leaving it very confusing as to what the program does and where
the data should be entered. As well as this currency signs should also be
added in a dropdown menu to enhance the user interface and make it
easier and more engaging to use. As well as this, the program should be
altered so that it can be made available on many other operating systems.
This will make the program more portable and allow more people to use it.
Star
t
Do you need
to exchange
money?
Yes
Error
message
N
o
If it didnt work it
might have been
because
you
entered
letters
instead of numbers.
Make
sure
you
PROGRAM 2
This code gives bonuses. When you enter a number between 50000 and
89000 you get a 5000 bonus. If you enter a number between 90000 and
149999 then you get an 8000 bonus. If you enter the number 150000 or
anything higher you achieve a 12000 bonus. This application can be used
by bank customers to work out how much interest they receive or it can
be used by employers to work out if there employees are entitled to a pay
bonus.
CHARACTERISTICS
10
'Amount entered into Sales Total Textbox equal or greater than 150,000 in the If
Statement then message displays 12,000
If Sales_Total >= 150000 Then
MsgBox("Bonus Achieved: 12000")
'Amount entered between 90000 and 149999 then message box bonus of 8000
ElseIf Sales_Total >= 90000 And Sales_Total <= 149999 Then
MsgBox("Bonus Achieved: 8000")
'Amount entered into Sales Total textbox ranges from 50,000
to 89,999 then message box to display 5000
ElseIf Sales_Total >= 50000 And Sales_Total <= 89000 Then
MsgBox("Bonus achieved: 5000")
'Amount entered is less 50,000 then bonus message should
be 0
Else : MsgBox("Bonus achieved: 0")
End If
End Sub
End Class
12
13
Efficiency/performance of a code
refers to the overall performance of
the code.
The code is very quick and
responsive. This is because the code
has been kept to a minimal meaning
that it doesnt have to process too
much whilst running. This means its
efficiency and performance are both
very good.
MAINTAINABILITY
PORTABILITY
RELIABILITY
14
USABILITY
15
Program 1 has many strengths and weaknesses to it. In this section I will
be explaining what its strengths and weaknesses are as follows.
STRENGTHS
WEAKNESSES
16
Although the program is very simple and efficient I think that it lacks
many things such as labelling. When I first used ran this code in VB I had
no idea what it did because there was no labelling or instructions. This
makes it hard for users to use because they do not know how to use the
program.
Another weakness to this program would be that no error messages popup when the program crashes.
A well as this the code does not work in other programming languages.
This means that the program isnt very portable. It also limits the amount
of people that can use the application because it in turn doesnt cater for
different operating systems.
DEFINITIONS/KEYWORDS
18
CONCLUSION
For this assignment I had to review two programs. Program one was a
currency exchanger which exchanges one currency to another for people
who are going on holiday. It could also potentially double up as a
calculator because it multiplies two number together. Program two was an
application which gives bonuses depending on what number you enter.
This can be used by employees to find out whether or not they are
allegeable to a bonus. I think that its main use however is to work out
interest rate for a bank. This can be useful as it can quickly work out the
answer instead of the individual having to physically do the maths to work
it out.
I have reviewed both programs and discussed;
19
20
BIBLIOGRAPHY
21