Browse over 20 million
homework answers & study documents

IT210 - Week 4 Currency Conversion Design

Type

Homework

Rating

Showing Page:
1/5
Application-Level Requirements List
1. Get user input
2. Enter amount of foreign currency to be converted
3. Select currency type to be converted to U.S dollars
4. Divide amount of currency by 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 results
Main Module
Declare Nationality as string
Declare CurrencyType as integer
Declare CurrencyAmount as real
Declare USDollar as real
Declare QuitProg as string
Call Input Module
Call Check Module
Call Currency Type Module
Call Canadian Module
Call Mexican Module
Call English Module
Call Japanese Module
Call French Module
Call Exit Module
Call Output Module
Input Module
Decleare CurrencyType as integer
Display “Welcome to Foreign Currency Converter”
Display “Please select a type of currency (Enter 1 – 6)”
Display “1 Canadian Dollars”
Display “2 Mexican Pesos”
Display “3 English Pounds”
Display “4 Japanese Yen”
Display “5 French Francs”
Display “6 Quit”
Input CurrencyType
Call Check Module
End Input Module
Check Module
Declare CurrencyType as integer

Sign up to view the full document!

lock_open Sign Up
If CurrencyType < 1 or CurrencyType > 6
Then Display “Invalid currency selection. Please try again”
Call Input Module
Else
Call Currency Type Module
End Check Module
Currency Type Module
Declare CurrencyType as integer
If CurrencyType = 1
Then Call Canadian Module
Else
If CurrencyType = 2
Then Call Mexican Module
Else
If CurrencyType = 3
Then Call English Module
Else
If CurrencyType = 4
Then Call Japanese Module
Else
If CurrencyType = 5
Then Call French Module
Else
If CurrencyType = 6
Then Call Exit Module
End Currency Type Module
Canadian Module
Declare CurrencyAmount as real
Declare USDollar as real
Nationality = “Canadian Dollars”
Display, “Please Enter Amount of Currency (0-100,000)”
Input CurrencyAmount
If CurrencyAmount < 0 or CurrencyAmount > 100,000
Then Display “Invalid Amount”
Call Canadian Module
Else
USDollar = CurrencyAmount * 1.4680
Call Output Module
End Canadian Module
Mexican Module

Sign up to view the full document!

lock_open Sign Up

Sign up to view the full document!

lock_open Sign Up

Anonymous
Had to paraphrase some of the content but overall, really useful material.

Anonymous
Thanks, good work

Anonymous
Heard about Studypool for a while and finally tried it. Glad I did caus this was really helpful.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4