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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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