Currency Conversion Program Essay

1236 Words Aug 13th, 2012 5 Pages
Application – Level Requirements

1. Get input from 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 (float) | Convert Currency | USDollar (float) | ForeignCurrencyType (string)ForeignCurrency(float)USDollar (float) | Display converted currency | (output results to
…show more content…
Y/N ForeignCurrencyType = Canadian Dollars

Test Case 2: Invalid Menu Selection = 7 Inputs: ForeignCurrencyType = 7 Expected Outputs: Error 4: Invalid menu selection

Test Case 3: Conversion Verified = Y Inputs: Continue = Y Expected Outputs: Call User Input Module

Test Case 4: Quit Program = 6 Inputs: ForeignCurrencyType = 6 Expected Outputs: Are you sure you want to quit? Y/N QuitProg = Y

Test Case 5: Quit Program = Y Inputs: QuitProg = Y Expected Outputs: Are you sure? Y/N

Test Case 6: Quit Program = N Inputs: QuitProg = N Expected Outputs: Welcome to the Currency Conversion Program!

User Input Module

Test Case 1: Valid Input = 100.00 Inputs: ForeignCurrency = 100.00 Expected Outputs: Is this amount correct and ready to be converted? Verify = Y

Test Case 2: Invalid Input= -100.00 Inputs: ForeignCurrency = -100.00 Expected

Related Documents