Appendix I
Currency Conversion Development Assignment—Flowcharts
Complete the flowcharts for the assignment above by typing into the textboxes below.
Week 4
IT/210
Control Flow Diagram—Main Control
-------------------------------------------------
Begin
You are entering the currency converter Quit
?
You are exiting the currency converter
Get user input Yes
No
Calculate Foreign currency to dollars Display equal value U.S dollar amount
End
Begin
You are entering the currency converter Quit
?
You are exiting the currency converter
Get user input Yes
No
Calculate Foreign currency to dollars Display equal value U.S dollar amount
End
------------------------------------------------- …show more content…
Control Flow Diagram—Display Menu Begin
Welcome to currency converter Valid selection ?
Error
4
:
Invalid menu selection
No
Yes
End
Quit
?
Yes
Are you sure you want to exit the currency converter Quit
Verified
?
Yes
Select International currency type Is currency correct and ready for conversion No
Conversion
Verified
?
No
Yes
No
Begin
Welcome to currency converter Valid selection ?
Error
4
:
Invalid menu selection
No
Yes
End
Quit
?
Yes
Are you sure you want to exit the currency converter Quit
Verified
?
Yes
Select International currency type Is currency correct and ready for conversion No
Conversion
Verified
?
No
Yes
No |
Control Flow Diagram—Get_Int_Value Begin
Input total amount of foreign currency Legal input ?
Error3: Invalid legal input No
Yes
End
Valid
Input
?
No
Divide total currency by the rate to find U.S. dollar total Yes
Error 2: Invalid input Begin
Input total amount of foreign currency Legal input ?
Error3: Invalid legal input No
Yes
End
Valid
Input
?
No
Divide total currency by the rate to find U.S. dollar total Yes
Error 2: Invalid input |
Control Flow Diagram—Convert Currency Begin
Canadian
?
English
?
No
No
No
No
No Yes
Yes
Yes
Yes
Yes
Rate = 9.5085 pesos = 1 U.S. dollar Rate = 1 pound = 1.6433 U.S. dollars Rate = 104.9200 yen = 1 U.S. dollar Rate = 6.2561 francs =
1 U.S. dollar
Rate
=
0
.
0
US Value
=
Rate*Int_Value
End Mexican
?
Japanese
?
French
?
Rate = 1.4680 Canadian dollars = 1 U.S. dollar
Begin
Canadian
?
English
?
No
No
No
No
No Yes
Yes
Yes
Yes
Yes
Rate = 9.5085 pesos = 1 U.S. dollar Rate = 1 pound = 1.6433 U.S. dollars Rate = 104.9200 yen = 1 U.S. dollar Rate = 6.2561 francs =
1 U.S. dollar
Rate
=
0
.
0
US Value
=
Rate*Int_Value
End Mexican
?
Japanese
?
French
?
Rate = 1.4680 Canadian dollars = 1 U.S. dollar |
Control Flow Diagram—Display_Results Mexican
Mexican
Japanese
Japanese
English
English
Begin Nation
=
Canadian
Currency
=
Dollars
French
?
No
No
No
No
No Yes
Yes
Yes
Yes
Yes
Nation = Canadian
Currency = Dollars Nation = Mexican
Pesos = Dollars Nation = English
Pounds = Dollars Nation = French
Francs =
dollars “Additional countries unavailable” End
Currency
= null ?
Yes
Error
5
:
Invalid
Currency Type
No
print Nation
,
Int
_
Value
,
Currency
,
US Value
No
Canadian Begin Nation
=
Canadian
Currency
=
Dollars
French
?
No
No
No
No
No Yes
Yes
Yes
Yes
Yes
Nation = Canadian
Currency = Dollars Nation = Mexican
Pesos = Dollars Nation = English
Pounds = Dollars Nation = French
Francs = dollars “Additional countries unavailable” End
Currency
= null ?
Yes
Error
5
:
Invalid
Currency Type
No
print Nation
,
Int
_
Value
,
Currency
,
US Value
No
Canadian |