Lab 2: Variables and assignments
- Due Feb 16, 2021 by 4pm
- Points 10
- Available after Feb 16, 2021 at 2pm
Overview
In this lab, you'll work with a partner to program solutions to a number of problems that involve processing input and computing formulas.
Learning outcomes
By the end of this lab, you should be more comfortable...
- using cin to read in numbers from the user
- performing integer and floating point arithmetic
- using cout to display data to the console
- using C++ math functions
Exercises
With a partner, complete as many of the following zyLabs in the zyBook as you can during the lab. You will receive full credit for the lab as long as you are working diligently during the lab period (your grade is not based on how much you complete). As you work on each problem, be sure to implement incrementally—write a line or two of code, then compile/run it. Test frequently by clicking "Submit mode" and then "Submit for grading". You have unlimited submits, so don't worry about using some quota up.
- zyLab 2.25 Divide by x
- zyLab 2.28 Expression for calories burned during workout
- zyLab 2.29 Using math functions
- zyLab 2.38 Computing areas of trapezoids.
Submitting
Click "Submit mode" then "Submit for grading" when you are finished so I can see that you have done the zyLab.
PA options
Please see the syllabus and course schedule (both on the homepage) for more information about how many programming assignments you are required to pass, due dates, etc. Of note: you do not need to attempt every or even most PAs.