New Analysis
Autor: rita • August 14, 2012 • Essay • 323 Words (2 Pages) • 1,028 Views
Analysis
Process:
1. Display Menu
2. Get International Value
3. Convert Currency
4. Display Results
Input:
Int_Value (Float 0- 10,000,000)
Nation (Integer 1-6)
Currency (String)
Output:
US_Value (Float 0-10,000,000)
Rate (Float 0-10,000)
Design
Main Module
Declare Nation As Integer
Declare Int_Value As Float
Declare US_Value as Float
Call Display Menu module
Call Int_Value module
Call Convert Currency module
Call Display Results module
Display Menu
Get Int_Value
Convert Currency
Display Results
End Main Module
Display Menu module
Display "Welcome to the International Currency Conversion Program"
Display
Display "This program will help you calculate a foreign currency"
Display "to U.S. dollars"
Display "Please select one of the five international currency types"
Display "Canadian dollars……………….Enter 1"
Display "Mexican Pesos…………………Enter 2"
Display "English Pounds………………...Enter 3"
Display "Japanese Yen…………………..Enter 4"
Display "French Francs………………….Enter 5"
Display "If you want to quit……………..Enter 6"
Display " Selection ----- "
Input Nation
IF (Nation <1) And (Nation >6) Then
Display "Error
...