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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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