Create a program that can convert money

Assignment Help Computer Engineering
Reference no: EM132397901

Assignment: The Currency Converter

The goal of this assignment is to use functions. Try to contain as much of your code as possible inside of functions that are well named and can be reused. At a minimum your code must use two functions.

You are to create a program that can convert money from one system to another. (Going back & forth form USD - EURO or EURO - USD)
At the start of your program, ask the user how much money they have. Next ask them what currency they have and finally ask them what they want to convert it into. Convert the currency to the requested output and print a nice alert message with the value in the other currency.

Requirements: Use the following currencies and conversion rates:

• 1 USD = 0.91 Euro

• 1 USD = 124.17 JP Yen

• 1 USD = 0.65 British Pound

• 1 USD = 3.51 Brazilian Real

You can use math to figure out what all of these are equal to relative to one another.

Use the following as allowed input for the currency systems:

• 'USD'

• 'EUR'

• 'GBP'

• 'JPY'

• 'BRL'

Program expectations

• Your code must use a minimum of two functions.

• One function should calculate the conversion.

• One function should print the alert message with the converted currency and the currency name.

• The conversion function(s) should accept input parameters and return a value.

• The print function should also take input parameters.

• The final message should display the converted currency rounded to two decimal places.

Hint - It probably makes sense to use two conversion functions. One function to convert from any currency into USD and another to convert from USD into anything other currency.

Reference no: EM132397901

Questions Cloud

Security lighting and intrusion detection systems : Security Lighting and Intrusion Detection Systems. Pole, street, and parking lot lights were never designed specifically for perimeter
Why is intrusion prevention critical in a modern network : Why is Intrusion Prevention critical in a modern network? Compare and Contrast the Advantages and Disadvantages of IDS and IPS. At a minimum address.
Why is information security not considered : Why is information security not considered to be a full time job by many organizations?
How an ips-ids can protect user information : Discuss how an IPS/IDS can protect user information on a Windows system or any computing device that is connect to a network. What other security controls.
Create a program that can convert money : You are to create a program that can convert money from one system to another. (Going back & forth form USD - EURO or EURO - USD) At the start of your program.
About the company privacy policy : For this assignment, you are asked to locate any company privacy policy. Some of the more popular ones might include GOOGLE, APPLE, or MICROSOFT,
What is difference between block cipher and stream cipher : Explain the difference between an attack surface and an attack tree. What is the difference between a block cipher and a stream cipher?
Describing the the concept of information stores : Using Chapter 10 as a reference, Explain the concept of information stores. Why is an understanding of how different clients store messaging.
Considered in determining global expansion : What are the key issues that need to be considered in determining global expansion?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Testing the procedures

The company receives new release movies each Tuesday. Make a procedure that will enable the receiving clerk inorder to add the new movies received to the mm_movie table.

  Questiona company has 3 sites- micah mallory and william

questiona company has 3 sites- micah mallory and william. micah and mallory need 100 mbps of transmission capacity

  How cloud services will streamline company business process

Discuss ?how cloud services will streamline a company's business process.? List 2 ways cloud service serves as a competitive edge in the management of processes

  Write a haskell function combine

When x, y, and z all correspond to digit values (i.e., integers between 0 and 9, inclusive), combine x y z returns the integer given.

  Write a scheme function that takes as an argument a list

Write a Scheme function sumEven that takes as an argument a list of integers L, and returns th e summation of the even number s only in L.

  What is the true marginal mean

Add the bounds of the true 90% prediction interval to your plot (use qnorm for help with quantiles and and lty=2 in lines() to get a dashed line).

  How are the values and represented as ordinary binary number

How are the values 51510 and -51510 represented as ordinary binary numbers? How are they represented as octal and hexadecimal numbers?

  What happens when you add a button to a container

What happens when you add a button to a container that uses a border layout and omit the position? Try it out and explain.

  What are the roles of the management sponsors

What are the roles of the management sponsors

  What is the trap

The 68000 has a rich instruction set. However, some of these instructions overlap and perform almost the same function. If you were to streamline the 68000.

  Why did you select phd in information technology

Why did you select PhD in Information Technology? Why did you select University of the Cumberlands? As an individual, what are your strengths and weaknesses.

  Describe an algorithm for finding the maxima pairs of c

Given a collection C of n cost-performance pairs (c,p), describe an algorithm for finding the maxima pairs of C in O(n logn) time.

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