Currency Conversion

Submitted by: Submitted by

Views: 1181

Words: 484

Pages: 2

Category: Business and Industry

Date Submitted: 07/18/2011 07:47 PM

Report This Essay

Currency Conversion Final Project

Patti Belden

IT210/Fundamentals of Programming with Algorithms and Logic

Daryl Davis

December 19, 2010

Currency Conversion Final Project

Requirements

Problem: Currency Conversion

Description: The Currency Conversion application a menu-driven program that lets the user to select one of the five international currency types, input the amount of a foreign currency, and then coverts the foreign currency over to U.S. dollars. The program displays the equivalent dollar amount and then returns the user to the main menu until they enter currency conversion or they quit 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 Mexican pesos)

• English pounds (rate: 1.6433 U.S. dollars = 1 English pound)

• Japanese yen (rate: 1 U.S. dollar = 104.9200 Japanese yen)

• French francs (rate: 1 U.S. dollar = 6.2561 French francs)

Application-Level Requirements List

1. Display Menu to user

2. Get user input – Foreign currency types

3. Find foreign currency rates

4. Calculate currency per $1 U.S.

5. Multiply foreign currency with requested amount

6. Calculate total

7. Clear to enter another currency type or quit program

Input-Process-Output Chart

Input Processes Output

Nation

International currency

1. Get User Input Nation

International currency

International currency 2. Determine currency/rate International currency/rate

International currency

Currency rate 3. Calculate currency rate

to US value Currency rate to US value

Nation

International currency

Currency rate

US value 4. Display Nation, currency,

rate, US value

Nation

International currency

Currency rate

US value

Currency Conversion Design – Hierarchy Chart

Currency Conversion Development – Flowcharts

Control Flow Diagram - Main Control

Control Flow...