CSE1530 3.0 Computer Use: Programming

Fall 2007 Course Web Site

News/Announcements

  • The exam scheduling is available ... here.
    Select "Faculty of Science and Engineering", then "Computer Science and Engineering".
    Revisit before exam date to check for any changes.

  • The example illustrating reading and writing records to a file, and extracting fields from a record is available here.
    (See instructions below if you don't have WinRAR.)

  • Classes, Methods/Functions etc - for exam This MS Word doc (here) will be distributed with the question booklet at the exam. You can use it fo rreference rather than trying to memorise this stuff.

    It contains more than you'll need to use on the exam, and omits the very common stuff that I expect you to know through constant use. (E.g. properties of common control objects, syntax of If statements and loops, etc).

  • The Last Exercise!
    There was one weekly exercise left TBA in the course outline - from Chapter 7 ... this will be Ex. 7-4.

  • The Lotto example is available here.
    (See instructions below if you don't have WinRAR.)

    There are some questions asked - see the comments in the program - and there is a piece left for you to complete. I urge you to examine this example carefully, answering the questions and completing the function.

  • The example illustrating the use of a function to calculate the square root of a number is available here.
    (See instructions below if you don't have WinRAR.)

  • The example illustrating a counted loop that iterates across all characters in a string - while determining the "state" (is the algorithm scanning a word and is the character part of a word) - in order to select a particular word from a string - is available here.
    (See instructions below if you don't have WinRAR.)

  • The example experimenting with counted loops is available here.
    (See instructions below if you don't have WinRAR.)

  • The example illustrating a conditional loop to calculate the square root of a number is available here.
    (See instructions below if you don't have WinRAR.)

  • Important: Limits on HOW you work together

    I am noticing that students are unclear on the notion of what constitutes plagiarism in this course. Therefore some Do's and Don'ts ...

    Do discuss the basic algorithmic approach to solving a problem.
    Do separately write the code trying to implement the approach.
    Do assist someone else in debugging their code.

    Don't share your code, particularly ....
    Don't send a file to someone else.
    Don't sit together in the lab writing the code jointly

  • The examples illustrating a conditional loop in the context of string processing (selecting the nth word from some text) are available:
    Eleven_A, Eleven_B, Eleven_C
    (See instructions below if you don't have WinRAR.)

    Remember that these are not working entirely correctly - the basic idea is implemented for "normal" cases, but boundary cases and cases of unusual input will mostly not work.

    I strongly recommend that you try to make them work - particularly for cases such as the first word and the last word in the text.

  • The first example illustrating a conditional loop (iterations required before a certain value is generated randomly) is available here.
    (See instructions below if you don't have WinRAR.)

  • The example illustrating use of checkboxes, combobox and Validating event (real estate valuation) is available here.
    (See instructions below if you don't have WinRAR.)

  • The example illustrating event firing is available here.
    (See instructions below if you don't have WinRAR.)

  • The Rock Paper Scissors example is available here.
    (See instructions below if you don't have WinRAR.)

  • If you do not have the WinRAR application on your computer you can instead download the free software 7-Zip. Double click the downloaded file to install the software on your computer.

    After you have saved any .7z file from this web site, start the 7-zip File Manager from the Start/Programs, navigate to the .7z file you just saved and click the Extract button. Choose the location you wish to save to (I suggest you create a folder called LectureExamples perhaps) and proceed with the extraction (click OK).

    You'll end up with a folder of the same name as the .7z file, and within this folder you'll find the .sln file which will launch VB2005.

  • The quadratic equation solver example is available here.
    I suggest that you "Save it to disk ..." and then open it.

  • The next exercise (Ex. 4-4) will be collected from the assignment drop box on Wednesday morning (Oct. 10) to account for the Thanksgiving holiday.

  • The cash register, make change example is available here.
    I suggest that you "Save it to disk ..." and then open it.

  • The schedule for the TAs advising hours in the Glade Lab is announced ... see below.

  • The Outline contains a relic from last year saying that the weight of labs not received will be automatically transferred to the final exam. This is incorrect ... and inconsistent with the earlier discussion in the outline about "formative" and "summative" activities.

    The labs are required ... the weight will not be transferred. The on-line outline has been corrected.

  • Look here for reminders of upcoming tests etc., posting of examples from class, changes, errata, etc ...

Instructor and Contact Information

  • Office: cse2010 (use elevator)
  • Office Hours: M10:30-11:30, T10:30-11:30, W3:30-4:30
  • E-mail: peterc at(@) cs.yorku.ca

Main links for course materials and administration:

  • Lab. Handbook - Visual Basic: Programming for Literacy

  • Course Outline, schedule and assessment - here

  • Here is a link for a simple machine simulator that illustrates assembly and machine language and the execution of instructions by the CPU. HERE

  • Access your marks -- HERE

TA Advising Schedule (in Glade Lab)

  • Monday, Oct. 15, 10:30am-12:30pm
  • Wednesday, Oct. 17, 10:30am-12:30pm
  • Monday, Oct. 22, 10:30am-12:30pm
  • Monday, Oct. 29, 10:30am-12:30pm
  • Monday, Nov. 5, 10:30am-12:30pm
  • Friday, Nov. 9, 10:30am-12:30pm
  • Monday, Nov. 12, 10:30am-12:30pm
  • Monday, Nov. 19, 10:30am-12:30pm
  • Monday, Nov. 26, 10:30am-12:30pm
  • Wednesday, Nov. 28, 10:30am-12:30pm
also ...
  • Please make use of my office hours and e-mail.

Submitting Exercises

  • What to Print:
    1. A cover page:
      Nothing fancy - just name, student number, and exercise (eg. Ex 2-2) - all centered in the middle of the page.
    2. The code:
      In the VB 2005 environment the File/Print menu selection is only active when the Code Window is selected. The code is one thing you should print.
    3. The Form (actually running):
      Start Debugging the application, i.e. your program is running. Interact with your program in some appropriate way to demonstrate how it works. Press the Alt key (hold it down) and then the Print Screen key. This captures an image of the current window (i.e. your program running) to the clipboard which you can then paste into a document. E.g. open Microsoft Word, and paste the clipboard (just choose Edit/Paste). You can then print this Word document.
  • Where to Hand it in:
    Place in the correct drop box labelled CSE1530, Instructor: P. Cribb. This will be located either in the main hallway (opposite the elevator) or on the atrium side wall of the main office for Computer Science and Engineering (CSE1003).
  • When to Hand it in:The drop box will be cleared every Tuesday morning. Any submissions for a previously-due exercise will not be marked.