Lab 2
Welcome to the first CS 141 Lab!
Note that there was no lab the first week of class, hence this is lab 2 and not lab 1.
Today's Objectives:
Introduction to labs and how they will be run.
Quiz related to Zyante Readings and topics discussed during class.
Work on Lab Assignment that focuses on user input/output and basic subtraction arithmetic
Finish!
Before we begin, if you are going to use the Lab Computers and do not know your ID to login, please visit:
https://www.cs.uic.edu/bin/view/ComputerSupport/Accounts
It will help you get your login information for the computers in lab. Your password is defaulted to your 9-digit UIN!
Overview: Since this is the first lab, here is a description of what you should expect each week during lab.
Each lab will be 50 minutes long The basic structure of each lab will be:
A ~five minute quiz, likely using Blackboard. You will find in the corresponding quiz for each lab section on Blackboard in the Quiz section for the course.
The quiz name format is Lab Quiz-n where n is the quiz number. For instance Lab Quiz-1 is quiz 1 for the Lab1.
The quiz links will likely only be available during these first ~5 minutes of lab.
The quizzes will also likely be password protected, with the password written on the board, so you will need to be present to get the password to take the quiz.
A ~five minute overview of the tasks of the lab activity for the day.
About 30 minutes to work on the lab tasks. You must work with a partner to get credit for the lab. The two of you will complete and finish a single project. Every 10 minutes or so we will make an announcement for you to switch driver / navigator roles, which means you alternate being the person typing on the keyboard.
During the last 10 minutes of the lab the TA(s) will come around to verify your work and check off what you have done.
TAs will give you guidance when you ask a question, but will not necessarily give away the answer. Remember to "ask three before me". If you don't understand something, first confer with your partner. If you still can't get it confer with two other students in a nearby group. If you still can't get it then get help from a TA. You are highly encouraged to help each other, since 2% of your grade in this class will be the average of your entire lab section's grade.
--
Now the Lab!
Today's lab is to just get us comfortable with finding a platform we can program C++ in and write a few basic operations and then we're done!
You have a few options for today's labs with what IDE you want to use to program your lab. Essentially the goal is to just create a simple C++ program and submit it.
Here are some options to choose from. You only need to choose 1:
www.ideone.com is a website that has multiple languages on the site that you can use. Since we will be working with C++, you need to make sure you have C++ labeled as such in the bottom left.
You can use zyBooks as an IDE for this week's lab. If you go to Chapter 1 (Introduction to C++), at the bottom you will have a tab that says, 1.13 zyBooks built-in programming window:
If you have DevC++ or X-Code for Macs, you can also use that.
The Lab computers should have QTCreator. QTCreator is an IDE that we will be using later in the course. If you want to get familiar with it now (or sometime later today if you're interested in downloading it), then you are able to use that. QTCreator is a great IDE that easily allows us to use C++ with Graphical Representations. (Bar graphs, line graphs, etc.)
Again, you only need to choose from one of the options listed above. Use whichever you are most comfortable with.
You can use your laptops or the computers in Lab. We suggest using your Laptops so that you have a device you have readily available to you any time. I would suggest installing anything you need for this class on your own personal computer as soon as possible.
--
Now for the actual assignment:
Your program is to prompt for and read in the current year (2018) and the year you think self-driving cars will be common.
You are then to compute and display how many years from now that is by doing a simple subtraction between the two years, displaying the result.
--
Grading Rubric:
0 - did not show up or did not try anything
1 - worked on code, and got it to run, but did not zip it or submit in Blackboard
2 - got it working and zipped and submitted to Blackboard
3 - (Extra Credit) Add a loop to count to a million, printing out every 10,000th number
--
Submission Details:
Although there are multiple ways to do this assignment, you will be required to save your file as a .cpp and then zip up the file and submit it with the link provided in this lab.
Note: You may need to use a text editor to copy paste your code into from the platform you used and save it as a .cpp file. Failure to save it as a .cpp will result in point deductions.