27‚ 2013 IT210/ Wk 6 Conversion Currency Conversion Procedure Currency Conversion Test Procedure Display Menu Declare as Boolean Set = true While = true Display = International Currency Conversion Program Display = Make a Selection Display = International Currency Types Display = Canadian Dollars Display = Mexican Pesos Display = English Pounds Display = Japanese Yen Display = French Francs Display = Quit Display = Enter a Selection Input Currency Type If Currency
Premium United States dollar Pound sterling Currency
Input Module 3. Conversion Module 4. Output Module 5. Display Module/End Module Input-Process-Output Chart |Input |Process |Output | |Currency Selection |Get user input |Currency Type | |Canadian Dollars |Convert currency to US |US Dollar
Premium United States dollar Currency
Assignment: Currency Conversion Design Currency Conversion Design Analysis Process: 1. Display Menu 2. Get Foreign Value 3. Convert Currency 4. Display Results Input: 1. Currency Type (integer: Currency Type) 2. International Value (real: International Value) 3. U.S. Value (real: U.S. Value) Output: 1. Currency Type (integer: Currency Type) 2. International Value (real: International
Premium United States dollar Currency Pound sterling
title of the program with a welcome. 2. A description of how the program will be used. 3. User has 5 currencies (Canadian dollars‚ Mexican Pesos‚ English Pounds‚ Yen‚ and Francs) to choose from to convert to dollar amount or vice versa. 4. Program displays the dollar amount the chosen currency is equivalent to. 5. User has an option to quit the program or restart any with any other currency to convert. Input-Process-Output Chart Complete the following Input-Process-Output chart for the application
Premium United States dollar Currency Dollar
Currency Conversion Design Appendix H Currency Conversion Design Assignment—Hierarchy Chart Complete a hierarchy chart for the application by typing into the textboxes below. 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
Premium United States dollar Currency Dollar
” Call Display_Menu End If End Quit_Program Display_Menu Module Write: “*Welcome to the Currency Convertor*” Write: “Please select the currency you would like to convert to U.S. Dollars.” Write: “Enter 1 to convert Canadian dollars to U.S. Dollars.” Write: “Enter 2 to convert Mexican Pesos to U.S. Dollars.” Write: “Enter 3 to convert English Pounds to U.S. Dollars.” Write: “Enter 4 to convert Japanese Yen to U.S. Dollars.” Write: “Enter 5 to convert French Francs to U.S. Dollars
Premium United States dollar Pound sterling Currency
Currency Conversion Design Currency Conversion Design **********Begin Test Procedure*********** ------------Menu Error Testing------------ Test Case 1: Inputs: CurrencyType = “U” Expected Output: Invalid currency selection. Please try again Test Case 2: Inputs: CurrencyType = “0” Expected Output: Invalid currency selection. Please try again Test Case 3: Inputs: CurrencyType = “9” Expected Output: Invalid currency selection. Please try again ------------End Menu Error Testing------------
Premium
Currency Conversion Design Assignment—Hierarchy Chart Complete a hierarchy chart for the application by typing into the textboxes below. Main Module Display_Results Module Get_Int_Value Module Display_MenuModule Convert_Currency Module Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment by typing into the textboxes below. Control Flow Diagram—Main Control ------------------------------------------------- Begin Do you want to
Premium
Currency Conversion Pseudocode Main Module { Declare ExchangeRate as real; Declare VariableCurrency as String; Declare UnitedStatesValue as real; Declare AmountVariable as real; Call Input DataModule; EndMainModule; InputDataModule; Write "Welcome to International Currency Conversion"; Write "Please choose Currency Type" Write "International Currency Types:" Display "1. Japanese Yen."; Display "2. French Francs."; Display "3. Mexican Peso."; Display "4. Quit." Write "Enter Amount
Premium United States dollar Currency
user. 2. User selects the type of currency they wish to convert. 3. User enters the amount of currency they wish to convert. 4. Currency is converted using established conversion rates. 5. Completed conversion amount is displayed for the user. IPO Chart Input | Process | Output | (Keyboard) User enters selection | Get type of foreign currency | ForeignCurrencyType (string) | (Keyboard) User enters amount | Get amount of foreign currency | ForeignCurrency (float) | Rate (float)ForeignCurrency
Premium United States dollar Pound sterling Currency