It 210 Week 9 (Final Project)

Only available on StudyMode
  • Download(s) : 538
  • Published : October 6, 2012
Open Document
Text Preview
Final Project
Leroy Six
IT/210
1-22-12
Robert Estey

Final Project

Application-Level Requirements List
1. The program will present a series of user screens that prompts the user for specified input. 2. The main user screen will have an application title.
3. The main user screen should have a short description saying how to use the program. 4. The calculation should be executed only after all the valid input values are provided. 5. The program shall allow the user to clear all the input fields and do the calculations over. Input-Process-Output

Input| Process| Output|
Currency TypeCurrency AmountExchange Rate| Get User Input| Currency typeCurrency AmountExchange Rate| Currency Type| Choose correct type| Currency Type | Enter Currency Amount| Calculate total to the nearest Dollar amount| Dollar Amount| Foreign Currency Amount| Convert to U.S. Dollars| U.S. Currency Amount| Currency TypeCurrency AmountExchange Rate| Display Results| Conversion Of foreign Currency into U.S. Dollars|

Hierarchy Chart

Main Module

Main Module

Display Menu
Module
Display Menu
Module
Get Currency Module
Get Currency Module
Convert Currency Modules
Convert Currency Modules
Display Output Results Module
Display Output Results Module

Control Flow Diagram—Main Control
-------------------------------------------------
Begin

Quit
?
Provide exit
message

Yes
No

End
Input Currency Amount
Select Currency To Be Converted

Divide By Currency Rate
Display Converted Results
Begin

Quit
?
Provide exit
message

Yes
No

End
Input Currency Amount
Select Currency To Be Converted

Divide By Currency Rate
Display Converted Results

-------------------------------------------------

Control Flow Diagram—Display Menu
Input Currency Amount
Input Currency Type

Invalid Selection

Compute Currency Conversion
Input Currency Amount
Input Currency Type

Invalid Selection

Compute Currency Conversion
Begin

Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes

Quit
Verified
?

Yes

No
Conversion
Verified
?
No
Yes

No
Begin

Valid
selection
?
Error
4
:
Invalid
menu selection
No
Yes
End
Quit
?
Yes

Quit
Verified
?

Yes

No
Conversion
Verified
?
No
Yes

No
|

Control Flow Diagram—Get_Int_Value
Invalid Selection
Invalid Selection
Invalid Selection
Invalid Selection
Currency Type
Currency Type
Currency Amount
Currency Amount
|

Pseudo Code

Application requirements list

1) Get input from the user.
2) Enter the amount of foreign currency that is to be converted. 3) Select the type of foreign currency that is to be converted to U.S dollars. 4) Divide the amount of currency by the foreign currency rate.

Canadian Dollars (Rate: 1 U.S. Dollar = 1.4680 Canadian Dollars.) Mexican Pesos (Rate: 1 U.S. Dollar = 9.5085 Pesos.)
English Pounds (Rate: 1.6433 U.S. Dollars = 1 Pound.)
Japanese Yen (Rate: 1 U.S. Dollar = 104.9200 Yen.)
French Francs (Rate: 1 U.S. Dollar = 6.2561 Francs.)
5) Output the results.

Main Module
Declare Nationality as string
Declare Currency Type as integer
Declare Currency Amount as real
Declare US Dollar as real
Declare Quit as string

Call Input Module
Call Check Module
Call Currency Type Module
Call Exit Module
Call Output Module

Input Module

Declare Currency_Type as integer

Write, “Welcome to the currency converter”
Write, “Please select the currency you want to convert”
Write, “Use the menu”
Write, “(Enter 1, 2, 3, 4, 5, or 6)”

Write, 1 - Canadian Dollars
Write, 2 - Mexican Pesos
Write, 3 - English Pounds
Write, 4 - Japanese Yen
Write, 5 - French Francs
Write, 6 - Quit

Input Currency_Type
Call Check Module
End Input Module...
tracking img