CSE 113 - Fall 2009 - Banner
UB -
University at Buffalo, The State University of New York Computer Science and Engineering
  • CSE 113 - Fall 2009
CSE 113 - Fall 2009 - Navigation
CSE 113 - Fall 2009 - Announcements

Lab 1

CSE 113 - Fall 2009 - Announcements

Week 1 (9/7-9/11)

Login

Make sure you can log onto the computers in Bell 340. After you log in, make sure you know how to log out. Make sure that you do not leave your computer logged in while you are not using it.

If you have a problem logging in, make sure to talk to the TA in your recitation section so that they can make note of your UBIT name and ensure that your account is working for next week.

If you can log in, continue on to the following. After you have completed the next section, you are free to leave and continue the rest of the assignment next week in recitation.

 

Open Greenfoot

Greenfoot is installed on the systems and has a "start menu" entry. Open up the main menu, select UB Applications and then Application Development and then you will see Greenfoot. It is in the same place in both Bell 340 and Bell 101. You will see the splash screen and then Greenfoot will start up.

At this point, you don't need to do anything and can simply close the greenfoot program. If you choose to continue work on this lab, you can simply start Greenfoot again.

 

Copy a scenario into your account

Before we copy anything into your account, we should set up a space for you to store your CSE 113 work. Open the file explorer for your home directory (icon on the desktop called So-and-so's home, where so-and-so is your UBIT name) and select to create a new folder in your account (either using right-click or select File->Create Folder from the menus at the top. Name this folder CSE 113. You will put all of your work for CSE 113 in this folder.

Greenfoot operates using scenarios. Scenarios give us a base to work with when programming in Greenfoot. Throughout the semester, you will need to make sure that a copy of the scenario is in your own personal account before you begin working on the lab assignment. We will have you copy over the first scenario now. Open up the file explorer for the entire system by clicking on the icon on the desktop named Computer. Click on the Filesystem icon. Navigate to /eng/class/notes/cse113.

In this directory, you will see a directory named book-scenarios, and inside that will be directories for all the chapters of the book. Find the directory for chapter01 and inside there you will find a directory named leaves-and-wombats, which contains all the files for leaves and wombats scenario from chapter 1. Select this directory and elect to "copy" it. Now, open the file explorer for your home directory and inside the directory you just created for CSE 113, "paste" the leaves and wombats scenario directory.

We will be working with this scenario to get practice moving, zipping, and submitting files. You will need to copy a different scenario to work on the rest of the assignment.

If you are working from home, you can get the leaves-and-wombats scenario from here.

 

Zip up a scenario

Before you submit an assignment, you will need to zip up the contents of the scenario directory. Let's practice zipping at this time.

In the file explorer, right click and select to archive the directory containing the leaves-and-wombats scenario by selecting "Create Archive" from the right-click menu. Leave the name of the Archive to be the same as the name of the directory. To the right of the name is a drop-down for what type of archive you would like to create. You should choose .zip from the drop down of possible archive choices.

After you have completed the zipping procedure, you should see the zip file in your directory as well as the scenario directory itself.

 

Submitting a scenario

When you are finished with your work on a lab and have zipped it up, you will need to submit it. Let us practice submitting right now with the scenario you just zipped. Look at the instructions at the end of this lab and practice submitting the scenario so that when you are ready to submit your finished assignment, you will have had some practice submitting. Submitting this practice file will be part of the grade for this lab, so it is a requirement.


Weeks 2, 3, and 4 (9/14 - 10/2)

Little-Crab Scenario

For the remainder of this assignment, you will work with the little-crab scenario that is discussed in Chapters 2-4 of the text. You will complete various exercises with the scenario and when you are finished with those exercises, you will submit your final version of the scenario.

The first step is for you to get the scenario and copy it to your own account. If you are in Bell 340, then you should simply navigate over to /eng/class/notes/cse113/book-scenarios/chapter02-04 and copy the little-crab directory to your account. If you are working at home, you can copy the little-crab.zip file from the link. You will need to put it in your CSE 113 space on your home machine and you will need to unzip it.

After you have the scenario, you should open Greenfoot and open the scenario. You should complete the following exercises. Some of them ask you to do something with the scenario and then change it back. Some ask you to think about the results of doing something. You should do each of the exercises, whether or not it makes a noticeable change in the code. These exercises are designed to get you used to doing things with Greenfoot and to get you thinking about programming. In the end, you will have changed the program in many ways and will zip and submit the finished scenario.

2.1 3.1 3.9 3.19
2.2 3.2 3.10 3.20
2.3 3.3 3.12 3.21
2.4 3.4 3.13 3.22
2.6 3.5 3.14 3.23
2.10 3.6 3.15 3.24
2.11 3.7 3.16  
2.12 Insert the code for shown in figure 3.3 on page 34 & 35 3.17  
2.13 3.8 3.18  

After you have completed the exercises, you should zip your scenario and name the resulting zip file little-crab.zip. Then you will submit using Web-CAT as described below.


Submission

Submission is through an entirely web-based submission system. You should have received an email indicating a password to a system called Web-CAT. If you have not, that is probably because you registered for the class after Wednesday 9/2. This is the system that you will use to submit your assignments. To log onto webcat, go to this page:

http://web-cat.cse.buffalo.edu:8180//Web-CAT/WebObjects/Web-CAT.woa

Then, type in the Username and Password that were sent to you in the email. You can change your password by selecting the MyProfile link. Strongly consider changing your password into something easy for you to remember as opposed to the randomly-generated passwords that the system provides.

You will see a set of assignments that are currently accepting submissions for our course on the first page after you log in. If you would like to submit, simply hover over the icons to the right of the assignment name and select the icon for uploading the submission. The icon looks like a piece of paper with a world next to it and an up arrow. Once you select this, you will be taken to an upload screen. Select the browse button and find the file you are interested in submitting. Select the file and then click Next. You will need to confirm your submission on the next screen by clicking Next again. You will see a results page indicating if your submission was successful.

You can submit as many times as you would like. We will only grade the last submission you make. You can use Web-CAT to view what submissions you have made to ensure you have sent the correct file.

ABSOLUTELY NO submissions will be accepted any other way than the way described on this webpage. No excuses are acceptable. Make sure you know how to submit well in advance of the deadline. You can practice submitting your work. Later submissions simply overwrite the previous submissions.


Due date

Your lab submission is due no later than 11:59:59 pm on October 2nd. Remember, no late labs will be accepted.


Working outside of Bell 340

If you would like to continue this work outside of Bell 340, there are a few options available to you. You can work in Bell 101, which is an engineering public computing site. Information about the differences you may encounter when in Bell 101 are located here.

If you want to work on your own machine, totally independent of the lab environment, you will need several things. This page will explain where to look for information about downloading the files and programs you need to work on your home machine.

It is most advisable for you to create a folder (directory) on your machine where you can put the files needed for your assignments. This way, all work for this course will be in the same place when you go to look for it.


Lab authored by Adrienne Decker

CSE 113 - Fall 2009 - Footer

Page maintained by Adrienne Decker

Contact: adrienne@buffalo.edu | 130 Bell Hall | (716)645-3184