Question: program it c++ please You are a tourist arriving at Harry Reid International Airport and you want to enjoy what Las Vegas has to offer

You are a tourist arriving at Harry Reid International Airport and you want to enjoy what Las Vegas has to offer (I mean who wouldn't?) You do not want to use an ATM to take out money since the ones at the casino charge you way to much so you brought money from home with you. The issue is that you need to exchange the money into US Dollars (USD), the automated kiosk is set up to stores all the transactions throughout the day, and you will write a program to read through all the transactions and output the total amount of money exchanged along the profit made (there's a 1% transaction fee), and the amount of valid transactions (since this log file could contain invalid input). Contents Of Main You will need to declare the following constants, these will be used for converting a currency to USD and the transaction fee. const double EUR =1.0828; const double GBP =1.2048; const double JPY =0.0076; const double CNY =0.1276; const double INR =0.01212; const double FEE =0.01; Input You will read in a filename from standard input and attempt to open an input filestream, if the filename is not valid, re-prompt for a file name until a valid file is read. The input file will contain several lines and each line contains the following Currencycode Amount Currency Code is a string and amount is a double separated by a whitespace and each line is terminated with an end of line. Every successful transaction will have a valid 3 letter currency code ("EUR", "GBP". "JPY"," "CAY", or "INR") and a non negative amount. You would just need to use a series of if else statetnents to validate the currency code. For each line read, you have to compute the amount of USD and add it into a running total and increment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
