B CUSP 110B – Digital Thinking

Exercise 3: Edit, Compress, and Submit

 

 

Expericing with Editing and Submitting Source Code!

Goals: Initial experience with

·         editing program source code

·         creating a compressed file

·         submitting compressed file

In this exercise, we want to reverse the operations of Exercise 2, where you will edit the source file (ClassExample.cs ), create a zip file of the project and submit your solution.

Here are the steps (please follow on your machine):

1.      Download this compressed zip file from Exercise 2 by clicking on this link. Make sure you can find the downloaded file (filename: 1.MovingABallAround.zip).

2.      Follow Exercise 2 to un-compress the zip file, open the Project, and open ClassExample.cs in Visual C# 2010 Express:



3.      Edit the source file: since we don’t really know C# programming language and have no idea what to do, let’s just pretend we know what we are doing.

a.       Left-mouse-click in the ClassExample.cs file window (high-lighted by the red-square above).

b.      Delete everything! (simplest way: control-A to select everything, and then, backspace to delete everything selected).

c.       Add: your name and any message you want to send me.

d.      Notice, after this edit, the game does not work anymore! It’s ok, we will learn how to fix this in the not too distant future.

e.       Notice, you can type control-Z to undo you changes!

4.      Create a compressed project:

a.       Make to delete the 1.MovingABallAround.zip file you have downloaded, otherwise it can get confusing.

b.      Go to the folder above ClassExample.sln file. You should see the folder name: 1.MovingABallAround

c.       Right-mouse-button over the folder: 1.MovingABallAround

d.      This will create a new 1.MovingABallAround.zip file.

To Turn In
Submit 1.MovingABallAround.zip file you have created to the Exercise 3 submission area.

 

Wrap Up

In this exercise you experienced with the reverse operation from that of Exercise 2, you have edited the program source code, created a new compressed file that contains the game project, and uploaded the file to a site to share with me. Once again, all of these are important steps in a software engineer’s daily routine.