Beruflich Dokumente
Kultur Dokumente
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;
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.)
Kommentar [NCC2]:
17
Exchange rate
Convert
Command
button convert
Pounds to Euros
Euros
22.07
F.)
Start
Kommentar [NCC4]: excellent
flowchart
Click calculate
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
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