Week 4 Currency Conversion Design

Week 4 Currency Conversion Design - Display (2. Mexican...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 4 Currency Conversion Design By: Brandon Hunter 7/31/2011 IT/210
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Hierarchy Chart
Background image of page 2
IPO Chart Input Process Output Menu Options Display menu Menu Options Menu Choice Currency User Input Menu Choice Currency Currency Conversion Formula Convert Currency US dollar
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Flow Charts Control Flow Diagram—Main Control
Background image of page 4
Begin Legal input? No Yes End Valid Input? No Yes Control Flow Diagram—Display Menu Ta Control Flow Diagram—Get_Int_Value
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Control Flow Diagram—Convert Currency
Background image of page 6
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 Control Flow Diagram—Display_Results
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Pseudocode Module Main () Declare option = 0; Declare value = 0; Declare converted = 0; Display (“*** Currency Convertor ***”); Display (“1. Canadian dollars to US dollars”);
Background image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Display (2. Mexican pesos to US dollars); Display (3. English pounds to US dollars); Display (4. Japanese yen to US dollars); Display (5. French francs to US dollars); Display (Enter the choice:); Get option; Display(Enter the amount:); Get value; if ( option := 1), then Converted: = value * (1/1.04701); Else if (option: = 2), then Converted: = value * (1/0.08514); Else if (option: = 3), then Converted: = value * 1.64217; Else if (option: = 4), then Converted: = value * (1/0.01303); Else if (option: = 5), then Converted: = value * (1/1.43968); Else Display (Wrong Menu Selection); End If Display (Entered Value: value); Display (US dollar equivalent: converted); END Main MODULE...
View Full Document

Page1 / 8

Week 4 Currency Conversion Design - Display (2. Mexican...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online