Access to On-Campus Lab Computers and WiFi

For in-class sessions you need access to the labs PCs or bring your own device. Below you will find instructions for both scenarios. It is strongly encouraged that you bring your own device in case of technical difficulties.

In order to gain access to the labs computers on-campus please follow the steps in the following tutorial: https://openlab.citytech.cuny.edu/ellis-eng2575-sp2022/files/2022/02/Student-SSPR.pdf

If you bring your own laptop, you need to connect to the College’s WiFi. Please follow these steps once you are in the building: https://www.citytech.cuny.edu/alc/docs/NYCCT-WiFi-MAC-Laptop.pdf

How to Create a CodeStepByStep Account

In order to create a CodeStepByStep account for this course please click this link and follow the instruction below:

Once you click the link you should see the page to enter your account details. You must use your City Tech email address for your account and make sure the School/Org says “New York City College of Technology CUNY”. See the image below for reference.

Once you create your account, you will receive an email to verify it. Please go to your City Tech email account and click the link. Sometime it might go to the junk/spam folder so please check there too. Once you do you will see a screen with your information as the one below:

If the platform says that your account is not verified but you clicked the link, please log out and log back in. This is know bug that happens occasionally. Once you are verified, the you need to proceed to add this course to your list of courses. In order to do that go to the upper right corner of the page and click on your username. Once you do, you will see a menu. From the menu select the option Courses as shown in the next image.

Once you click on Courses, you will see another page with a drop-down menu. Click on it to see the list of available courses. Select your course and section number from that list. Then click the button Add as shown below.

You should see your selected course in the Course List page. Make sure it is the right course and section, otherwise I will not be able to see your completed work. Once you confirm that, then click on the Problem Sets button as the next image shows.

After clicking the Problem Sets button you will see a list of the assigned labs. Click on the corresponding lab and complete the problems there. See an example in the image below.

With these steps you should be up and ready to complete the homework assignments for this course. If you experience any technical difficulty please reach out.

How to Find the Source Code Files in Eclipse

In order to correctly submit the labs on Blackboard, you need to provide the source code. In java the source code is stored in files with extension .java. Do not submit screenshots as the instructor must be able to run and test your code. Also once you test your code, the JDK will create bytecode files that have a .class extension. DO NOT submit those, as although they are executable by the JVM, the source code is not available and therefore cannot be properly assessed. In this tutorial I will show you how to find the source code files you need to submit for your labs.

The first step is once you are done with your lab, go to Eclipse and identify one of the files that is part of your solution. Position the mouse over it and make a right-click. In the context menu go to Properties as shown in the image below.

Once you click on Properties you will see a Window with the properties of the file. As an alternative to reach this Properties Window, you may press ALT + Enter.

Under the Resource sections you will see that one of the properties is Location. that property gives you the exact location of the field in your PC. You will also see a button to the right of it that says Show in System Explorer. Click that button as the next image indicates.

That will automatically open the File Explorer of your respective OS, in the path where your files are currently saved, as you can see in the following image.

On Blackboard, once you select the Lab you are about to submit, you can browse to that location or drag and drop the files from there.

How to Create a Package in Eclipse

One of the best ways to keep your code organized is by using packages. A package is just a fancy name for a folder where you store related classes and apps. Sure you can create a project for every lab, but then you’ll have too many projects. An alternatives is to create a project for the class (e.g. CET 3640) and multiple packages within it (e.g. lab1, lab2, lab3, etc). In this tutorial you will learn how to create a package in Eclipse.

To create a package go to your project, and move the mouse over the src folder. Once you do that right-click on it. You will see a context menu. From the context menu select New then Package. Use the next image as a reference.

After you click Package a window will show up asking you to provide a name. Package names are generally all lowercase and the same rules for identifiers such as variables apply: begin with a letter, can use number, no spaces, no special characters. See an example in the image below.

Once you’re done you will see your new package with your project like in the next image.

To create classes within a package is very similar to creating classes within the src folder. You can right-click on the package, then from the context-menu select New, followed by Class as shown in the next image.

As you can see packages give you another tool to you manage your code and organize your labs better.