Question
C++ For lab lesson 3 (all parts) you will be entering your programs directly into zyBooks/zyLabs . If you want to use an Integrated Development
C++
For lab lesson 3 (all parts) you will be entering your programs directly into zyBooks/zyLabs. If you want to use an Integrated Development Environment (IDE) such as Visual Studio, Code::Blocks or Eclipse you can do so, but you will have to cut and paste the code into zyBooks/zyLabs.
You will need to use Develop mode and Submit mode as you did in lab lessons 1 and 2.
Staring with lab lesson 4 you will be doing your development in an IDE (use whatever your CS 1336 class is using) and you will be uploading the files to zyBooks/zyLabs.
C++ requirements
You must have the conversions values for Pesos, Euros and Yen defined as const double values in your program. The calculations should all be done using double values and variables.
Failure to follow the C++ requirements could reduce the points received from passing the tests.
General overview
Write a program that reads in one double value in US dollars. The program should them calculate how many Mexican Pesos you can get for the number of values read in. You also need to calculate the number of Euros and the number of Japanese Yen.
You must have the conversions values for Pesos, Euros and Yen defined as const double values in your program. One US dollar maps to 19.73 Pesos, 0.84 Euros, and 113.27 Yen.
The calculations should all be done using double values and variables.
You will then output a table with all of the values. Assuming your input is 100 your output should look as follows:
Note that the above numbers (and headings) all have a width of 15 characters.
Failure to follow the requirements for lab lessons can result in deductions to your points, even if you pass the validation tests. Logic errors, where you are not actually implementing the correct behavior, can result in reductions even if the test cases happen to return valid answers. This will be true for this and all future lab lessons.
Expected output
There are five tests. Each test will have a new set of input data. You must match, exactly, the expected output.
You will get yellow highlighted text when you run the tests if your output is not what is expected. This can be because you are not getting the correct result. It could also be because your formatting does not match what is required. The checking that zyBooks does is very exacting and you must match it exactly. More information about what the yellow highlighting means can be found in course "How to use zyBooks" - especially section "1.4 zyLab basics".
Finally, do not include a system("pause"); statement in your program. This will cause your verification steps to fail.
Note: that the system("pause"); command runs the pause command on the computer where the program is running. The pause command is a Windows command. Your program will be run on a server in the cloud. The cloud server may be running a different operating system (such as Linux).
C++ requirements You must have the conversions values for Pesos, Euros and Yen defined as const double values in your program. The calculations should all be done using double values and variables. Failure to follow the C++ requirements could reduce the points received from passing the tests. General overview Write a program that reads in one double value in US dollars. The program should them calculate how many Mexican Pesos you can get for the number of values read in. You also need to calculate the number of Euros and the number of Japanese Yen. You must have the conversions values for Pesos, Euros and Yen defined as const double values in your program. One US dollar maps to 19.73 Pesos, 0.84 Euros, and 113.27 Yen The calculations should all be done using double values and variables. You will then output a table with all of the values. Assuming your input is 100 your output should look as follows: Dollars 100.00 Euros 84.00 Pesos 1973.00 Yen 11327.00 Note that the above numbers (and headings) all have a width of 15 charactersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started