Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ coding 6.2 Lab Lesson 3 (Part 2 of 3) Part of lab lesson 3 There are three parts to lab lesson 2. The entire

c++ coding

image text in transcribed

6.2 Lab Lesson 3 (Part 2 of 3) Part of lab lesson 3 There are three parts to lab lesson 2. The entire lab will be worth 100 points. Bonus points for lab lesson 3 There are also 10 bonus points. To earn the bonus points you have to complete the Participation Activities and Challenge Activities for ZyBooks/zyLabs unit 5 (Gaddis Chapter 3). These have to be completed by the due date for lab lesson 3. For example, if you complete 89% of the activities you will get 8 points (there is no rounding). As with units 1 and 2 the bonus points on ZyBooks will be more than 10 points. These will adjust to 10 points total for the bonus points on the grade in eLearning. This will be true for the units that map to Gaddis Chapters through 7. La lesson 3 part 2 is worth 30 points For part 2 you will have 20 points if you enter the program and successfully run the program tests. An additional 10 points will be based on the style and formatting of your C++ code Style points The 10 points for coding style will be based on the following guidelines Comments at the start of your programming with a brief description of the purpose of the program Comments throughout your program Proper formatting of your code (follow the guidelines in the Gaddis text book, or those used by your CS 1236 professor) If you have any variables they must have meaningful names Development in Books 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 1836 class is using) and you will be uploading the files to Books/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 readin. You also need to calculate the number of Euros and the number of Japanese Yen The prompt for the read must be Enter the anount in dollars 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 Yen 11327.00 Euros 84.00 Pesos 1973.00 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 zy Books 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 2yBooks"-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) LAD ACTIVITY 6.21 Lab Lesson 3 (Part 2 of 3) ) D/20 lesson3part2.cpp 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

=+(a), identify points A, B, C, and D on your graph.

Answered: 1 week ago