It210 Final

Only available on StudyMode
  • Download(s) : 60
  • Published : March 27, 2013
Open Document
Text Preview
IT 210-Final Currency Conversion Program
Florence Sanders
IT/210 Fundamentals of Programming with Algorithms and Logic September 16, 2012
Ed Addison

Application-Level Requirements List

1. User screen that prompts user

2. Display prompts main user title screen

3. Main user screen provides short description explaining use of program

4. Calculations of currency is executed with valid inputs

5. Provides option to clear input fields

Input| Process| Output|
Currency TypeCurrency AmountExchange Rate| Get user input| Currency Type Currency Amount| Currency Type| Foreign Exchange Currency | Currency Type| Enter currency amount| Calculate total| Currency Amount| Foreign Currency amount | Convert to US dollar| US currency amount| Currency TypeCurrency AmountExchange Rate| Display results| Conversion of foreign currency into US Dollars|

Main Module
Main Module

Display_Resluts Module
Display_Resluts Module
Get_Int_Value Module
Get_Int_Value Module
Display_Menu Module
Display_Menu Module

Convert_Currency Module
Convert_Currency Module

Control Flow Diagram—Main Control

-------------------------------------------------
Begin
Display Menu

Quit
?
Provide exit
message
Display Menu

Yes
No
Convert Currency

Display results

End
Begin
Display Menu

Quit
?
Provide exit
message
Display Menu

Yes
No
Convert Currency

Display results

End

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

Control Flow Diagram—Display Menu

Begin
Selection menu

Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes
Provide exit menu

Quit
Verified
?

Yes
Take selection from user

Get_Int_Value

No
Conversion
Verified
?
No
Yes

No
Begin
Selection menu

Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes
Provide exit menu

Quit
Verified
?

Yes
Take selection from user

Get_Int_Value

No
Conversion
Verified
?
No
Yes

No
|

Control Flow Diagram—Get_Int_Value

Tell user to enter number

Tell user to enter number

Take input from user

Take input from user

Error message

Error message

Error message

Error message

|

Control Flow Diagram—Convert Currency

French
?
French
?
Japanese?
?
Japanese?
?
Mexican?
Mexican?
Begin
Canadian
?
Rate=Canadian Rate

English
?

No
No
No
No
No

Yes
Yes
Yes
Yes
Yes
Rate =Mexican rate

Rate=pound rate

Rate=Japanese rate

Rate
=
French Rate
Rate
=
0
.
0
US Value
=
Rate*Int_Value

End

Begin
Canadian
?
Rate=Canadian Rate

English
?

No
No
No
No
No

Yes
Yes
Yes
Yes
Yes
Rate =Mexican rate

Rate=pound rate

Rate=Japanese rate

Rate
=
French Rate
Rate
=
0
.
0
US Value
=
Rate*Int_Value

End

|

Control Flow Diagram—Display_Results

Nation=French
Currency=Francs
Nation=French
Currency=Francs
Nation=Japanese
Currency=Yen
Nation=Japanese
Currency=Yen
Nation=English
Currency=Pound
Nation=English
Currency=Pound
Nation=Mexican
Currency=Pesos
Nation=Mexican
Currency=Pesos
Japanese
?

Japanese
?

English
?

?
English
?

?
Mexican
?

Mexican
?

Canadian ?
Canadian ?
Invalid Selection

Invalid Selection

|

Final Project Currency Conversion

Psuedocode
Main Module

Declare selection as integer
Declare currency Type as Integer
Declare international Value as real
Declare US Value as real

Do while user wants to continue
Display Menu
Get International Value
Convert Currency
Display Results
End Loop
Print exit message

End Main Module

Display Menu

Declare continue as Boolean
Set continue = true
While continue = true...
tracking img