Peter Walkoviak
IT 210
SEPTEMBER 10 2011
CASANDRA RICHARDSON
FINAL PROJECT
Application level requirements INPUT | PROCESS | OUTPUT | Main options | Display main | Main options | Main choose currency to be converted | Get users input | Display currency rate | Input total amount of currency to be converted | Calculate foreign currency into US dollars | Display total amount of currency in US dollars | Enter another currency amount or quit program | Return user to menu | Another conversion or quit program |
Display results module
Display module
Foreign currency module
Convert currency module
Main module
Currency Conversion Design
Main Module
Declare CurrencyType as string
Declare CurrencyTotal as integer
Declare USTotal as integer
Declare Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs as real
Declare Response as string
Declare Answer1 as string
Declare Answer2 as string
Declare Answer3 as string
Declare Answer4 as string
Declare Answer5 as string
Declare Answer6 as string
Get user input
Determine foreign currency type
Determine foreign currency total
Convert foreign currency to U.S. dollars
Divide currency total by rate to find U.S. total
Display equivalent U.S. dollar amount
Return user to menu
End Main Module
Display Menu Module
Repeat
Write, “Welcome to the currency converter.”
Write, “Select international currency type: Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs.”
Input CurrencyType
Write, “Is selected currency type valid? (Yes or No)” Input Answer1
If (Answer1 = No) Then Write, “Error 4: Invalid menu selection”
Until Answer1 = “Yes”
If (Answer1 = Yes) Then Write, “ Would you like to quit currency converter? (Yes or No)” Input Answer2
If (Answer2 = Yes) Then Write, “Are you sure you want exit currency converter? (Yes or No)” Input Answer3
Until