Week 9: Currency Conversion
|
Appendix I IT/210 Version 5 |
3 |
Associate Program Material
Appendix I
Currency Conversion Development Assignment—Flowcharts
Complete the flowcharts for the assignment by typing into the textboxes below.
Control Flow Diagram—Main Control
Control Flow Diagram—Display Menu
|
|
Control Flow Diagram—Get_Int_Value
|
Begin
Legal input ?
No Yes End Valid Input ? No
Yes
|
Control Flow Diagram—Convert Currency
|
|
Control Flow Diagram—Display_Results
|
Begin
Nation = Canadian Currency = Dollars
French ? No No No No No
Yes Yes Yes Yes Yes
End Currency = null ?
Yes Error 5 : Invalid Currency Type No print Nation , Int _ Value , Currency , US Value No |
Begin
Do you want to Quit?
Quit
?
Provide exit
message
Display_Menu
Yes
No
Convert_currency
Display_Results
End
Begin
Selection Menu
Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes
Provide Exit Message
Quit
Verified
?
Yes
Take Selection from user
Get_Int_Value
No
Conversion
Verified
?
No
Yes
No
Tell user to enter a number
Display Error Message
Display Error Message
Take input from user
Begin
Canadian
?
Rate = Canadian
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
Mexican
?
text here
Japanese ?
French
?
Nation = English
Currency = Pound
Nation = Mexican
Currency = Pesos
Invalid Selection
Nation = French
Currency = Francs
Nation = Japanese
Currency = Yen
Japanese
?
English
?
Mexican
?
Canadian
?