home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
565a.lha
/
CurrencyConvert_v1.5
/
Convert.doc.pp
/
Convert.doc
Wrap
Text File
|
1991-11-10
|
9KB
|
221 lines
Currency Convert
® v1.5 1991
______________________________
Written by Ian Steuart
What is
Currency Convert
you may ask?
Well, hopefully the name gives a little bit away as to its origin. It
is an exchange rate conversion program born out of frustration, due to my
never having seen any other similar program in the Public Domain for the
AMIGA.
In its simplest form it will
Convert
a given
Currency
over
to one of three Countries formats. Namely:-
Sterling to Australian
Australian to Sterling
U.S. to Australian
Australian to U.S.
Sterling to U.S.
U.S. to Sterling
I often read overseas AMIGA magazines to compare Software/Hardware
prices with those here in Australia and have often wished there was a
quicker way than using the calculator to work out the exchange rate between
Australia and U.S.A. or Australia and England etc.... Plus I can never
remember the exchange rate any way, and often end up ringing the bank or
grabbing the daily NewsPaper to look up the exchange rate for the day.
Currency Convert
I hope will solve part of that problem.
Supposing you see in a U.S. magazine a software program costing
around
$ 400.50
, it would be nice to know how much in Australian Dollars
that would be so that a comparison could be made with Australian prices.
Whilst it is always best to buy from your home Countries dealer, if you work
on a tight monetary budget, it is on occasions, sometimes a little cheaper
to buy from overseas.
Hence, here now enters
Currency Convert
.
This program will take input from the user, of say
$ 200.50
plus
if you know it, the exchange rate between the Countries concerned
( converting U.S.
$
to Australian
$
). Enter Exchange rate of
$ 78.40
,
then the converted amount of Australian
$ 255.74
will be output.
When designing the layout of the program I went to great lengths to
ensure that it was V E R Y user friendly. I have attempted to catch every
ERROR that could possibly be input so that the outputted money figure will
always be as accurate as possible ( of course dependent on accurate exchange
rate input from the user ). The program can be started from the both the
CLI
and
WORKBENCH
and will sense from which mode it is provoked and thus
the startup procedures will vary slightly, as will be explained below.
CLI STARTUP
At the CLI prompt type program name ( from here on called
Convert
as
it appears in its release form ) with no additional arguments. After
selecting <RETURN>, the screen display will consist of a HELP menu explaining
its operation which is fairly self explanatory. The allowable arguments for
provoking the exchange rate conversions are:-
Sterling to Australian, type >
Convert
[
ea
] [
-r
]
Australian to Sterling, type >
Convert
[
ae
] [
-r
]
U.S. to Australian, type >
Convert
[
ua
] [
-r
]
Australian to U.S., type >
Convert
[
au
] [
-r
]
Sterling to U.S., type >
Convert
[
eu
] [
-r
]
U.S. to Sterling, type >
Convert
[
ue
] [
-r
]
There is a second argument that can be used if you wish, following
the country of origin option and that is [
-r
].
What this does will leave you in the [
Re-enter Mode
] so that after
each conversion is completed, instead of the CLI prompt returning, you will
be prompted for a new conversion option ie: [
ue
]. This loop will
continue until you have enjoyed dreaming of cheaper prices and decide to
QUIT the program - this can be done at A N Y P R O M P T that appears in
Convert
by simply typing the letter "
Q
" and selecting <RETURN>.
There are a number of additional options available to the user once
the first prompt appears....
USAGE
: Converts Australian
$
to U.S.
$
Enter amount in Australian Dollars
$
200.50
- 1st prompt
Enter U.S./Australian exchange rate in cents
¢
78.40
- 2nd prompt
Converted to Australian Dollars =
$
255.74
¢
- amount to pay
FIRST PROMPT
Entering "
?
" will display a the currently known exchange rate as of
the date when this program was completed "
06/11/91
"
This action can also occur at the second prompt.
Type in "
m
" and this will abort the current conversion status and
return you to a menu of options and selector prompt.
This action can also occur at the second prompt.
Entering "
h
" will display an extensive display of all the arguments
available to the user from within the program as explained above.
This action can also occur at the second prompt.
In addition there is full
ERROR CHECKING
. Try a few errors of say
alphabetical input, number input lower than 5, control codes or whatever and
unless there is something I have missed, you should get back an error report!!
SECOND PROMPT
Entering "
b
" will abort the prompt and return you to the first prompt.
This function is useful in case you realize that the input at the 1st prompt
is incorrect and you wish to change it.
Enter in "
d
" and this will type out a default exchange rate I have
encoded in that was current as of "
06/11/91
". This is an active function
and will actually complete the calculation resulting in an answer displayed.
This function is only meant as an example but is useful if you are only after
an idea of an approximate exchange rate value.
WORKBENCH STARTUP
If beginning
Convert
from the workbench icon(.info), naturally the
startup arguments cannot be switched in at program execution, so I have allowed
optional input to be selected after
Convert
is run.
Clicking on the program icon will result in an output window opening up
of 604 X 200 (ntsc size) in which will appear the following display....
O P T I O N S M E N U
Sterling to Australian, type "
ea
"
Australian to Sterling, type "
ae
"
U.S. to Australian, type "
ua
"
Australian to U.S., type "
au
"
Sterling to U.S., type "
eu
"
U.S. to Sterling, type "
ue
"
Enter your selection
:
After entering selection and <RETURN> the program will operate
fairly much the same as when in the CLI mode with one exception. If you enter
at the prompt "
h
" you will find a fairly extensive HELP display that is
along similar lines to that displayed if run from the
CLI
with no arguments.
This feature was added to allow new
WORKBENCH
users to gain additional HELP
if unsure of some of the programs features. This display like all others is
based on a timing feature and will display for a preset amount of time and
then return to a prompt etc - if you find it is not long enough then hit the
space bar once, and when finished reading, hit <RETURN> and the program will
continue.....
Remember, at any prompt regardless from where "
CONVERT
" was begun,
typing in the letter "
Q
" will abort the program.
All input incidently is NOT CASE SENSITIVE.
The selection of Countries that I used for this version of "
CONVERT
"
was based on the where I currently peruse pricing of Software/Hardware. I am
quite happy to encode other exchange rates into the program only if I am
provided with full details including the exchange rate between the nominated
countries.
Any compliments "good or bad" about "
CONVERT
" would be
appreciated, so I would love to hear from you at the address indicated below.
Hope you find a use for "
CONVERT
" and that it becomes a useful addition
to your program requirements!!
Have Fun!!!! Author Ian Steuart
11 St. Georges Terrace
Bellevue Heights
Adelaide S.A. 5050
Australia.
Phone (08) 276.4817