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

  • Satisfactory Essays

    Mat 221 Week 4 Assignment

    • 390 Words
    • 2 Pages

    P = $5670 and r = 3.5% = .035 Interest rate as a decimal number…

    • 390 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It210 Week 4 Psuedocode

    • 584 Words
    • 3 Pages

    No || no Then Write: “Let’s start then.” Call Display_Menu End If End Quit_Program Display_Menu Module Write: “*Welcome to the Currency Convertor*” Write: “Please select the currency you would like to convert to U.S. Dollars.”…

    • 584 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    You are entering the currency converter Quit ? You are exiting the currency converter Get user input Yes No Calculate Foreign currency to dollars Display equal value U.S dollar amount End -------------------------------------------------…

    • 585 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    If Currency Type >= 1 AND currency Type <= 5 then Set continue = false Else if currency Type = 6 Display “Quitting Currency Conversion” Continue = false Else Display “Error 1: Invalid menu selection.” Continue = true End If End While End Display Menu Get International Value Declare value as integer Declare continue as…

    • 1386 Words
    • 6 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
  • Satisfactory Essays

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

    • 360 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
  • 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
  • Satisfactory Essays

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

    • 354 Words
    • 2 Pages
    Satisfactory 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
  • 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

    Blade Case - Chapter 7

    • 798 Words
    • 4 Pages

    Determine whether the cross exchange rate between the Thai baht and Japanese yen is appropriate. If it is not appropriate, determine the profit you could generate for Blades Inc, by withdrawing $100,000 from Blades’ checking account and engaging in triangular arbitrage before the rates are adjusted.…

    • 798 Words
    • 4 Pages
    Satisfactory 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