Western International University Material



Western International University Material

Appendix I

Currency Conversion Development Assignment—Flowcharts

Complete the flowcharts for the assignment above by typing into the textboxes below.

Control Flow Diagram—Main Control

[pic]

Control Flow Diagram—Display Menu

| |

|[pic] |

Control Flow Diagram—Get_Int_Value

| |

|[pic] |

Control Flow Diagram—Convert Currency

| |

|[pic] |

Control Flow Diagram—Display_Results

|[pic] |

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

Ask if you want to quit.

Get input

Convert currency

Display result

Show menu

Ask for a selection

Confirm quit

Convert currency

Show a message that the input wasn’t valid

Show a message that the input had an error

Confirm whether input is valid and legal

Ask for input

French ?

Japanese ?

Mexican ?

Rate = Japanese rate

Rate = English rate

Rate = Canadian rate

Rate = Mexican rate

Display “Other currency”

Nation = France

Currency = Francs

Display calculation

Nation = Japan

Currency = Yen

Display calculation

Nation = England

Currency = poundss

Display calculation

Nation = Mexican

Currency = pesos

Display calculation

Japanese?

English?

Mexican?

Canadian?

Begin

Valid

selection

?

Error

4

:

Invalid

menu selection

No

Yes

End

Quit

?

Yes

Quit

Verified

?

Yes

No

Conversion

Verified

?

No

Yes

No

Begin

Canadian

?

English

?

No

No

No

No

No

Yes

Yes

Yes

Yes

Yes

Rate

=

French Rate

Rate

=

1

.

0

US Value

=

Rate*Int_Value

End

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download