IT210 Final Essay

Submitted By bstewart22
Words: 503
Pages: 3

Final Project: Currency Conversion
The currency conversion application is a menu-driven program that allows users to select one of five international currency types, input the amount of a foreign currency, and convert the foreign currency to dollars. The program displays the equivalent dollar amount and returns the user to the menu until he or she enters another conversion or quits the program.

International currency type (menu selection)
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)

Requirements
Problem: Currency Conversion
Description: The Currency Conversion application is a menu-driven program that allows users to select one of five international currency types, input the amount of a foreign currency, and then convert the foreign currency to dollars. The program displays the equivalent dollar amount and returns the user to the menu until he or she enters another conversion or quits the program.

International currency type (menu selection)
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)

Application-Level Requirements List
1. The program should present a series of user screens that prompts the user for specified input.
2. The main user screen should have an application title.
3. The main user screen should have a short description telling the user how to use the program.
4. The calculation of the currency should be executed only after all the valid input values are provided.
5. The program should allow the user to clear all input fields and recomplete the calculation.
Input-Process-Output Chart
Input
Process
Output
Name:
Type:
Range:

Display Menu
Name:
Type:
Range:
Currency Type
Integer
1-6

Name:
Type:
Range:
International Value
Real
0-1,000,000

Get Foreign Value
Name:
Type:
Range:
International Value
Real
0-1,000,000

Name:
Type:
Range:

Name:
Type:
Range:

International Value
Real
0-1,000,000

Currency Type
Integer
1-6

Convert Currency
Name:
Type:
Range:
US Value
Real
> 0
Name:
Type:
Range:

Name:
Type:
Range:

Name:
Type:
Range:

Currency Type
Integer
1-6