Preview

Currency Conversion Program

Powerful Essays
Open Document
Open Document
1249 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Currency Conversion Program
Application – Level Requirements

1. Get input from user. 2. User selects the type of currency they wish to convert. 3. User enters the amount of currency they wish to convert. 4. Currency is converted using established conversion rates. 5. Completed conversion amount is displayed for the user.

IPO Chart

Input | Process | Output | (Keyboard) User enters selection | Get type of foreign currency | ForeignCurrencyType (string) | (Keyboard) User enters amount | Get amount of foreign currency | ForeignCurrency (float) | Rate (float)ForeignCurrency (float) | Convert Currency | USDollar (float) | ForeignCurrencyType (string)ForeignCurrency(float)USDollar (float) | Display converted currency | (output results to screen) |

Main Module

Display Module
User Input Module
Menu Module

Calculation Module

Control Flow Diagram—Main Control

-------------------------------------------------
Begin
Menu Module Quit
?
Thank you for using the currency conversion program.”

User Input Module

Yes
No
Calculation Module

Display Module

End

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

Control Flow Diagram—Menu Module

Begin
Welcome message

Valid selection ?
Error
4
:
Invalid menu selection
No
Yes
End
Quit
?
Yes
Write “Are you sure?”

Quit
Verified
?

Yes
Select foreign currency type

Is selected currency correct?

No
Conversion
Verified
?
No
Yes

No |

Control Flow Diagram—User Input Module

Please enter the amount of foreign currency you would like to convert.

Write “Please enter a non-negative number.”

Input ForeignCurrency

Write “Invalid entry. Please try again.”

|

Control Flow Diagram—Calculation Module

French?
Japanese?
Mexican?
Begin
Canadian
?
Rate = 1.4680

English
?

No
No
No
No
No Yes
Yes
Yes
Yes
Yes
Rate = 9.5085

Rate = 0.6085

Rate = 104.9200

You May Also Find These Documents Helpful

  • Powerful Essays

    IT 210-Final Currency Conversion Program Florence Sanders IT/210 Fundamentals of Programming with Algorithms and Logic September 16, 2012 Ed Addison Application-Level Requirements List 1. User screen that prompts user 2. Display prompts main user title screen 3. Main user screen provides short description explaining use of program 4. Calculations of currency is executed with valid inputs 5.…

    • 1386 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Axia College Material Appendix I Currency Conversion Development Assignment—Flowcharts Complete the flowcharts for the assignment above by typing into the textboxes below. Week 4 IT/210 Control Flow Diagram—Main Control ------------------------------------------------- Begin You are entering the currency converter Quit ?…

    • 585 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    As the user is deciding which they would like to select an international currency type. When the user enters a number between 5 and 26 corresponding with a currency type, then the program is set to false. If 26 is selected the program displays “Quitting Currency Conversion.” But if the user does not enter a number between 5 and 26 the program displays “Error 4: Invalid Menu Selection” and the set it true.…

    • 1052 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Curreny Forecast

    • 1242 Words
    • 16 Pages

    selected currencies is one of the approaches to make money. For the past many years,…

    • 1242 Words
    • 16 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Case 11-4 Functional Currency Determination — IFRS 2009: Sparkle Company is a Nigerian diamond mining company. (Nigerian currency is the Naira (NGN).) Sparkle is a joint venture, 50 percent owned by Shine and 50 percent owned by Brighten. Both Shine and Brighten are U.S.-based companies with US$ functional currency. This year, Sparkle had several transactions with its joint venture owners and outside parties. The details of Sparkle’s transactions are as follows: Loans    $1 million from Brighten. $1 million from Shine. NGN 300 million from a local bank.…

    • 435 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Foreign Exchange markets are set up specifically for the purpose of trading in foreign currencies,…

    • 2841 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    Students generate a set of test inputs and expected results for the Currency Conversion program.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Hard Currency Case Study

    • 614 Words
    • 3 Pages

    1) Since the amounts are fixed, deflation will cause the amount to be lower each month for him. If the rates were not fixed, he’d be angry but having fixed rates keeps his cost low and the lender loses out.…

    • 614 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Riordan manufacturing has proven to be leader in the manufacturing industry with the production of plastic injecting molding. They have plants in Georgia, Michigan and China, and have even been carefully viewing their options for opening a plant in Japan. Riordan understands that with the possibility of expansion in global markets that there is a need for great legal and regulatory practices and policies that must be adhered to. The Human Resource department must be able to work closely with the foreign country in order to understand the customs and preferences of the locals while complying and enforcing privacy, copyright, and intellectual property laws.…

    • 1909 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    Test Case 4: Invalid Input Input: -11 Expected output: “Error: Invalid input, please enter a valid value” Currency Coversion Test Cases Test Case 1: Valid International Currency = Canadian Dollars Inputs: Currency Type = 1 Int-Value= 150.00 Expected Output: convert currency US Value = Rate * Int-Value…

    • 640 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    As we have to find the optimal trading plan, hence we will “MINIMIZE” this objective function.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Currency Manipulation

    • 1869 Words
    • 8 Pages

    The United States of America has been conducting trade with China ever since it has had a port. One of the first ships to sail under the American flag was the Empress of China, which left the New York harbor on February 22, 1784, to become the first U.S. ship in Chinese waters when it landed in Guangzhou, China. That first voyage opened a door to both the United States and China, a door that would lead to centuries of trade, and would make both nations the largest economies in the modern world. Later, the U.S. saw China for what it was: a huge mass filled with natural resources ripe for the taking. The U.S. government knew that European nations would also have this realization. To combat the theory of chopping China up into colonies, such as…

    • 1869 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    indian currency

    • 4278 Words
    • 14 Pages

    The Indian rupee (symbol: INR; ISO code: INR) is the official currency of the Republic of India. The issuance of the currency is controlled by the Reserve Bank of India.[2]…

    • 4278 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Philippine Currency

    • 651 Words
    • 3 Pages

    The evolution of the Philippine currency has become a journey through centuries that began in the pre-colonization periods and continued up to now in our modern days.…

    • 651 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Currency convertibility can be talked about in terms of two specific things which are Current…

    • 1667 Words
    • 6 Pages
    Powerful Essays