CS-151 Labs
Lab 0. Setup
Due: Sunday, September 18, by 10:00 PM.
For this course we are using the Computer Science Lab in King 201. The lab has desktop machines for you to use, and you can do all of your work for this course on these machines. The machines run Ubuntu - an open-source distribution of Linux operating system.
The goal of this lab is to learn how to use the lab environment. Towards this goal you will perform the following tasks:
- Excercise compiling and running Java programs from the command line.
- Become familiar with Eclipse IDE.
- Learn how to add files to an Eclipse project.
- Create a new Java program by modifying a given code.
- Learn how to submit your work for grading.
Before you go on with the lab, make sure that you are ready for the course and have completed all the tasks from the following checklist:
- Forum. You need a place to ask questions to clarify things. Check that you have enrolled in the Piazza forum following this LINK. Questions about the lectures and labs could be posted on Piazza.
- Clickers. We will be using iClickers for class participation. If you have not yet registered your iClicker, go now to the Blackboard page for this class and register your clicker.
- ZyBook. We will be using an online textbook from zybooks. To purchase the textbook directly from zybooks, sign in or create an account at learn.zybooks.com and enter zyBook code OBERLINCSCI151Fall2022. You can also purchase the book access code from the Oberlin bookstore.
- Lab Access. After the regstration period is over, everyone who is registered for this course should have an access to the King building. If you weren’t registered for any CS class at the start of the semester, you probably should double-check that you indeed have a building access by contacting Jackie Fortino in King 139.
- CS Lab Account. If you don’t have a CS account, you should contact Steve Mather in King 139 or send an email to IT Support about getting a new CS account (This one is different from your general Oberlin account).
Once you are done with all these setup tasks, move to the next step.
First Login
Sit down at one of the lab machines and jiggle the mouse to see if it is running. If not, the power button is at the bottom of the right side of the monitor frame; it will take a minute to boot up. The system will ask for your (Oberlin) username. It will then ask for your password. You have been assigned a temporary password of oberlin@123
. This password has already expired so as soon as you log in, you have to change your password. The system will ask for your current password – that is oberlin@123
. It will then ask to enter a new password and ask you to repeat your new password (as a guard against typos).
Once you logged in, open the web browser (Mozilla Firefox, located in the upper left corner of the screen) and navigate to the Lab0 web page at https://www.cs.oberlin.edu/~mbarsky/classes/cs-151/f2022/labs/lab0/.
General Lab Workflow
Each lab in this course starts with a warmup. During the warmup you are allowed (and encouraged) to work in pairs. Openly discuss the tasks with your peers and with the instructor. Warmup tasks are graded not on correctness, but on participation. They are designed to help you with the main part of the lab.
After warmup you work on several programming assignments. This should be your individual work, but we are here to help if you get stuck.
In this course we will be using Eclipse IDE (Integrated Programming Environment) to write Java programs. All the code you write for the main part of each lab should be stored in a single folder and be a part of a single Eclipse project.
You are provided with the following starter files:
Hello.java
Hello2.java
By the end of this lab you would need to submit a single zipped project folder named lab0.zip
. The folder should include the following files:
Hello.java
Hello2.java
HelloAll.java
readme.txt
Let’s warm up!