It 210 Final Project

Only available on StudyMode
  • Download(s) : 378
  • Published : February 21, 2013
Open Document
Text Preview
IT/210 Final Project - Currency Conversion

Application-Level Requirements List

1. Application has interface with title and direction to accept data form user and convert foreign currency to US currency

2. First page should include the title of the application as well as any instructions the user might need to complete the conversion process

3. User data should be requested in clear and concise means. “Please Enter Amount of Foreign Currency (Whole amounts only please”

4. A reset option should be available to clear variables and start over. This allows users to do various conversions or correct errors. 5. Program comments in the code should be maintained for team members to track suggestions, revisions, and errors easily.

Input-Process-Output Chart

Input| Process| Output|
Currency Type| Input Currency Type| Logical Name: CurrencyTypeData Output: Text| Currency Amount| Input Currency Amount| Logical Name: CurrencyAmountData Output: Integer| Exchange Rate| Input Exchange Rate| Logical Name: RateData Output: Integer| Calculate Conversion to US dollars| Convert to US Currency| Logic Name: USDollarsData output: Interger| CurrencyTypeCurrencyAmountRateUSDollars| Display results of conversion| Display Results|

Hierarchy Chart

Main Module
Main Module

Foreign Money Information
Foreign Money Information
Display Input Screen for User Data
Display Input Screen for User Data
Display Results
Display Results
Convert To US Currency
Convert To US Currency

Application Hierarchy Chart

Main Module
Main Module

Return to main menu
Return to main menu

Display converted US currency
Display converted US currency
Convert foreign currency to US currency
Convert foreign currency to US currency
Get user data
Get user data

Flow Charts
Control Flow Diagram—Main Control

-------------------------------------------------
Begin
International Currency Converter

Quit
?
Provide exit
message
Enter Currency Type (User Input)

Yes
No
Convert currency
To US Dollart

Display US Currency

End
Begin
International Currency Converter

Quit
?
Provide exit
message
Enter Currency Type (User Input)

Yes
No
Convert currency
To US Dollart

Display US Currency

End

-------------------------------------------------

Control Flow Diagram—Display Menu

Begin
International Currency converter

Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes
Exit Currency Converter?

Quit
Verified
?

Yes
Select currency to convert

Is currency type correct?

No
Conversion
Verified
?
No
Yes

No
Begin
International Currency converter

Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes
Exit Currency Converter?

Quit
Verified
?

Yes
Select currency to convert

Is currency type correct?

No
Conversion
Verified
?
No
Yes

No
|

Control Flow Diagram—Get_Int_Value

Divide currency by the rate of exchange for US total

Divide currency by the rate of exchange for US total

Invalid Input

Invalid Input

Invalid Input

Invalid Input

Input amount of foreign currency
Input amount of foreign currency
|

Control Flow Diagram—Convert Currency

Begin
Canadian
?
Rate=1 US Dollar=1.4680 Canadian dollar

English
?

No
No
No
No
No

Yes
Yes
Yes
Yes
Yes
Rate=1 US Dollar=9.5085 Pesos
Rate=1 US Dollar=.6433 pounds

Rate=1 US Dollar=104.9200 yen

Rate
=
1 US Dollar = .7676 euros
Rate
=
0
.
0
US Value
=
Rate*Int_Value

End

Mexican?
Japanese?
European Union
Begin
Canadian
?
Rate=1 US Dollar=1.4680 Canadian dollar

English
?

No
No
No
No
No

Yes
Yes
Yes
Yes
Yes
Rate=1 US Dollar=9.5085 Pesos
Rate=1 US Dollar=.6433 pounds

Rate=1 US Dollar=104.9200 yen...
tracking img