Program to convert the currency

Assignment Help Programming Languages
Reference no: EM13947563

Start Main Module

Declare selection as integer
Declare currencyType as Integer
Declare internationalValue as real

End Main Module

Display Menu

Display "Welcome to the international currency conversion program"
Display "Please make a selection"
Display "International Currency Types:"
Display "1: Canadian Dollars"
Display "2: Mexican Pesos"
Display "3: English Pounds"
Display "4: Japanese Yen"
Display "5: French Francs"
Display "6: Quit"
Display "Enter a selection:"

Input currencyType

If currencyType >= 1 AND currencyType <= 5 then
elseif currencyType = 6

Display "Quitting Currency Conversion"

Display "Error 4: Invalid menu selection."

End Display Menu

Get International Value

Declare value as integer

Display "Enter a currency value (positive number): "
Input internationalValue

if internationalValue > 0 AND internationValue <= XXXXXXX then

Display "Error 1: Invalid input--Negative Number"
continue = true

Convert Currency

Declare rate as real
Select Case of currencyType

case 1:
Set rate = 1.4680

case 2:
Set rate = 9.5085

case 3:
Set rate = .6085

case 4:
Set rate = XXX.XXXX;

case 5:
Set rate = 6.2561

default:
Set rate = 0.0

End Case

USValue = rate * internationalValue

End Convert Currency

Display Results
Select Case of currencyType

case 1
nation = "Canadian"
currency = "Dollars"

case 2
nation = "Mexican"
currency = "Pesos"

case 3
nation = "English"
currency = "Pounds"

case 4:
nation = "Japanese"
currency = "Yen"

case 5
nation = "French"
currency = "Francs"

default:
nation = "No country"
currency = ""

end case

Display "The value of ", internationalValue, " " , nation, " ", currency, " is ", USValue, " dollars"

Display "Error 5: Invalid currency type."
End Display Results

Attachment:- Appendix A.zip

Reference no: EM13947563

Questions Cloud

What are the fair value standards : How has fair value accounting challenged leveraged instruments - what are the fair value standards that need to be followed in the U.S. under GAAP and internationally under IFRS?
Rate of heat loss from surface per unit length of pipe : If the coefficient associated with free convection heat transfer from the surface to the air is 15 W/m2 · K, what is the rate of heat loss from the surface per unit length of pipe?
What will be the price of the treasury bill : Assume a $1,000 treasury bill is quoted to pay 10 percent and matures in 3 months. a) How much interest would an investor receive? b) What will be the price of the treasury bill? c) What will be the effective yield?
Describe capital investment in the manufacturing environment : Describe capital investment in the advanced manufacturing environment. Explain how the relevant costing principles learned in this chapter relate to dumping.
Program to convert the currency : Display "Enter a currency value (positive number):"
Overall cost of debt is the weighted average implied : Filer Manufacturing has 8.3 million shares of common stock outstanding. The current share price is $53, and the book value per share is $4. Filer Manufacturing also has two bond issues outstanding. Assume that the overall cost of debt is the weighted..
Use the most current european term quotes : Use the most current European term quotes to calculate the cross-rates so that the triangular matrix result is similar to the portion above the diagonal in Exhibit 4.6.
Project costs-cash flows rise : A project costs $10 million at time t=0, then pays cash flows of $1 million per year for 5 years, then the cash flows rise by $1 million per year through year 12. Assuming a WACC of 7%, use the NPV function to find the answer. Write down the equation..
Whats times interest earned ratio at each probability level : What impact will this utilization of this debt have on the value of the company - whats going to be the company's EPS after the recapitalization?

Reviews

Write a Review

Programming Languages Questions & Answers

  Super call for constructor to allot value of attribute

We have given a super call, which does some work of constructor. Your code must complete constructor by allotting the value of g to gpa attribute.

  Write html page to enter city current temperature

Write HTML page that asks user to enter city current temperature and changes background color depending on that temperature.

  Write a windows form program for a nina''s cookie source.

Include at least one other functional control such as a button (Exit button) or a MenuStrip having an Exit and an About selection.

  Program to display all products and ask user to select

Write a program which displays all products you have and ask user to select, for instance 1 for Optical Mouse. Show the price and ask user for quantity. Compute the amount.

  Write application to inputs ten numbers from user

Write the application to inputs ten numbers from user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is number already entered.

  Write program prompts to enter three sides of triangle

Write a program which prompts the user to enter three sides of a triangle and your program will display the three sides and its category of either equilateral, isosceles or all unequal.

  Script that displays the results of rolling a die n times

The example in the links below shows a script that displays the results of rolling a die n times. It retains (in memory) and can display the results of all rolls. The two links below are the html and js files for this example.

  Write a program to ask the user to enter the amount spent

Write a program to ask the user to enter the amount spent on food and Gas for each day of the week. Count and display the number of days the user spent more than 20 dollars per day on food and more than 10 dollars/per day on gas.

  Rewrite the sql statement to make it correct.

Tell why the following SQL statement is incorrect

  Write a program to prints the sum of all elements with an

write a program to prints the sum of all elements with an even index and all elements with an odd index of the

  How he sees the future of world englishes and world standard

Discuss how David Crystal’s book is a reaction to the official English movement in the United States. Explain how he constructs an argument about the benefits of multilingualism through the notions of identity and intelligibility

  How can the two arrays share the same memory

This results in the two arrays sharing the same portion of memory. Can you picture this? How can the two arrays share the same memory?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd