Currency Conversion Hierarchy Chart

Currency Conversion Hierarchy Chart - End Main Module...

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

View Full Document Right Arrow Icon
Currency Conversion Hierarchy Chart Display Menu Convert Currency Display_Results Get_Int_Value Main Control Main Program Declare Value as real Call Display Menu Module  Call Get_Int_Value Module Call Convert_Currency Module Call Display Results Module  End Main Program Display Menu Declare Language Module Declare Convert_Currency as real Print “Please select Language” Get Int_Value   Print “Welcome to the Currency Converter, Enter Value:“ Input_Value  Convert Currency  US Value = (1 / 6.2561) * Int_Value =  US Dollars Convert Currency Display Results Print, Nation Int_Value,Currency, US Value “Thank you for using   Converter” Pseudo code   Main Module Declare selection as integer Declare currencyType as Integer Declare internationalValue as real Declare USValue as real Do While  user wants to continue Display Menu Get International Value Convert Currency Display Results End loop Print exit message
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: End Main Module Display Menu Declare continue as user Set continue = true While continue = true Display "Currency conversion program" Display "Please make a selection" Display "1: Canadian Dollars" Display "2: Mexican Pesos" Display "3: English Pounds" Display "4: Japanese Yen" Display "5: French Francs" Display "6: Quit" Display "Enter a selection:"; Input currencyType If currencyType >= 1 AND currencyType <= 5 then Set continue = false else if currencyType = 6 Display Quitting Currency Conversion continue = false else Display "Error 4: Invalid menu selection." continue = true end if end While End Display Menu Get International Value Declare value as integer Declare continue as user Set continue = true While continue = true Display "Enter a currency value (positive number): " Input. .....
View Full Document

Page1 / 2

Currency Conversion Hierarchy Chart - End Main Module...

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

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