For my c++ class I need to complete this assignment. I've been stuck on it for a few hours now and was wondering if anyone could help me out by giving me some hints or whatever.

You work for an exchange bank. At the end of the day a teller needs to be able to add up the value of all of the foreign currency they have. A typical interaction with the computer program should look like this:

How many Euros do you have?
245.59

How many Mexican Pesos do you have?
4678

How many Chinese Yen do you have?
5432

The total value in US dollars is: $1378.73

Think about how to break this problem into simple steps. You need to ask how much the teller has of each currency, then make the conversion to US dollars and finally add the dollar amounts into a total.
Here is a sketch of the solution.

double currencyAmount;
double total;

// get the amount for the first currency
total += currencyAmount;

// get the amount for the second currency
total += currencyAmount;

// get the amount for the third currency
total += currencyAmount;

// output the total
Notice the use of the += operator, this is a shortcut that means the same thing as total = total + currencyAmount. It is usful for accumulating a total like we are doing here.
Submit only the .cpp file containing the code. Don't forget the code requirements for this class:
Good style: Use good naming conventions, for example use lower camel case variable names.
Usability: Always prompt the user for input so they know what to do and provide meaningful output messages.
Documentation: Add a comments that document what each part of your code does.
Testing: Don't submit your solution until you have tested it. The code must compile, execute and produce the correct output for any input.

Respuesta :

Answer:

246,45 Euro

Explanation:

A simple algorithm that would help you convert the individual currencies is given below:

Step 1: Find the exchange rate for Euros, Mexican Pesos, and Chinese Yen to the United States Dollar

Step 2: Convert the values of each currency to the United States Dollar

Step 3: Add the values of all

Step 4: Express your answer in United States Dollars

Step 5: End process.

What is an Algorithm?

This refers to the process or set of rules to be followed in calculations or other problem-solving operations, to find a value.

Read more about algorithm here:

https://brainly.com/question/24953880

#SPJ1