Sie sind auf Seite 1von 5

Assignment 2: currency exchange calculator

Unit 12 software development


Shakoor
Mohammed Hassan

You are a programmer working for a software development company. You have been asked to design
and develop a program to help a local travel agent calculate currency exchange for its customers. At
present, the staff uses a mathematical calculator to convert the money which has resulted in staff not
checking the daily rates and entering the exchange rate incorrectly.
The program should allow the user to enter an amount in British pounds and calculate the equivalent
amount in a foreign currency (e.g. Euro). The program should also allow for the user to enter an
amount in another currency (e.g. Euro) and calculate the equivalent in British pounds. The user
should be able to alter the exchange rates used to match the current rates.
The amount in the desired currency should be shown along with the current exchange rate between
the currencies.

Staffs have been entering the exchange rate incorrectly which has leaded them to not being
able to check the daily rates properly. As a travel agent it is important that they correctly
exchange the currency for their customers. My program will make it easier to check the
daily rates and keep the company up to date with money coming in and out of the company.
The program will also calculate the exact equivalent in the other currency. The current
exchange can be kept up to date by the user being able to alter the exchange rates for a
more accurate exchange.
A) The travels agents are facing a few problems which could be resolved by the program I
am designing. The problems are:

Staff entering the exchange rate incorrectly due to not checking the daily rates
A calculator being necessary to perform conversions hi h is t ideal for staff
The above problems could possibly result in staff giving the wrong amount of money
out to customers as they do not enter the correct exchange rate into their calculator
this could then result in the staff giving either more money or less money to the
customer. The program that I am designing will allow the staff to alter the exchange
rate which will make it more convenient as it will be up to date with the current
rates which means less errors. The programme should also allow the staff at the
travel agent to use the programme to work out the exchange rate to give the
customer this will make it easier to check the daily rates because less work is
required from the staff.

B)
The programmes inputs
The inputs of the programme are what the user has to enter into the programme, the two
main examples that can be used are the following;

Kommentar [NCC1]: Good

the user has to enter the current exchange rate only then will you get the correct
conversion because the current exchange rate has to be considered
Another thing that the user has to enter is the amount of money that they wanting
to o ert this is i porta t e ause the progra does t ha e the fu tio to auto
detect the amount you are wanting to convert so this will have to be entered
manually by the user.

d.)

The Programs Outputs


The output is the information the user will get from inputting the amount of money. The
program will calculate the equivalent amount in a foreign currency, and that is what the
program will output and it is the information the user is looking for.

Kommentar [NCC2]:

The relationship between the program inputs and outputs


There is a relationship between the programs inputs and its outputs, these are there, if
there is no input then there would be no output. An example of this, is if the user does not
put nothing into the programme, but then clicks the convert button the programme will not
show an output, instead it will show an error message saying that you need to enter
something into the input box, so that it has something to work with, only once the user has
put something into this box, will the programme begin to work, and then show a valid
output for the user.
There is a relationship between the program inputs and outputs, without an input there
would be no output, if the user clicks the convert button without entering an input,
there will be an error. The output is what the user wants from the program, which in
this case is the equivalent amount of British pounds (input) in a foreign currency
(Output).
c.)
GBP

Insert your amount in pounds

Text box to input


currency in GBP

17
Exchange rate
Convert

Command
button convert

Pounds to Euros

Euros

22.07

Text box to output


currency in Euros

Label tells the user


the exchange rate

Kommentar [NCC3]: grammar

F.)

Start
Kommentar [NCC4]: excellent
flowchart

Enter the currency


you want to convert

Input the currency


exchange rate

Click calculate

The program will output


the equivalent amount
in a foreign currency

End

G.)

Test

Description

No input

There is
nothing put
into the input
box

Entering
letters into
the input box

Entering
numbers
should only
work
The program
should t
continue

Not choosing
a currency

Expected
result
Nothing
should
happen
without an
input
There should
be an error

Actual result

How to rectify

Pass or fail

Nothing
happened

Enter an input
to get an out
from the
program

Pass

Nothing
happened

Fail

The program
should ask you
to choose a
currency

The program
refused to
continue
without a
currency

Edit the
coding to
display an
error
Change the
code to only
begin when a
currency has
been chosen

Pass

h) Alternative design ideas:


* The currency rate, could be already determined by the program automatically to
make it easier and save time
* A scroll bar to input the currency rate as opposed to doing it yourself might be a
preferred option by the employees
I)
I have chosen my program because it is easy to use for the employees and meets
the requirements for the company. It works well and is much better than what the
employees were using previously. Specific design ideas have been, chosen to
further increase ease of use and decrease errors that could possibly affect the
business. The program was designed to cater all the needs of the company and its
employees.

E.)

control
Text box 1
Text box 2
Text box 3
Button

property
Name
Text
Name
Text
Name
Text
Name
Text

Property setting
txtEnteramount
blank
txtConversionrate
blank
txtamountineuros
blank
cmdSubmit
Submit

Das könnte Ihnen auch gefallen