CIS 22B - Notes for Mon Sep 25

Announcements and Reminders

  • Check attendance sheet
  • Class adds at the break or end of class
  • Online time:  Tuesday 7:00-8:15 pm CCC Confer Web Page      PassCode:  799989
  • Office Hours:  Monday and Wednesday, 10:45 - 11:15 am in the ATC main computer lab
  • If you are enrolled, you can create a Windows and/or Linux account now
  • Lab Exercise 1 is due Wednesday before class starts

Topics

The Syllabus
The Syllabus Supplement

Lab Exercises
  • Start a new email for each lab exercise. 
  • In the email, use CIS22B / Ex# as the email subject (where # is the exercise number).
  • Add the source code as an attachment.  Name it ex#.cpp (where # is the exercise number).
  • Check your code before sending it.  Once received, it will be graded.  You do not get a chance to correct your errors after submitting it.
  • If you are asking a question about the exercise, make sure it is clear that you are asking a question.  Otherwise, it is assumed that you are submitting it for grading.
  • Add comments to your source code including your name, the exercise #, and the compiler used.
  • The code will be compiled and run on either Code::Blocks on Windows or the gnu compiler on Linux.  If the code does not compile and run there, you will not get full credit for the exercise.
  • Do not ask the instructor to "check" your code.  You should know if you fulfilled the requirements of the exercise.
  • Lab exercises are due at the beginning of the next lecture.  Lab exercises are NOT accepted late.
  • You will be penalized 1 point on the exercise if you do not have a comment with your name, exercise #, and compiler used.
Programming Assignments
  • Email source code.  Check your code before sending it.  Once received, it will be graded.  You do not get a chance to correct your errors after submitting it.
  • In the email, use Ass# as the email subject (where # is the exercise number).
  • Add the source code as an attachment.  Name it ass#.cpp (where # is the assignment number).  Later you may be asked to submit multiple files.
  • Add comments to your source code including your name, the assignment #, and the compiler used.
  • The code will be compiled and run on either Code::Blocks or NetBeans running on Windows or Linux.  If the code does not compile and run there, you will not get full credit for the assignment.
  • Do not ask the instructor to "check" your code.  You should know if you fulfilled the requirements of the assignment.
  • Assignments are due at the beginning of the class meeting on the due date specified. Assignments will be accepted late with a 5 point penalty if they are received within 24 hours of the due date (time).  After that time, they will not be accepted. 
  • You will be penalized 1 point on the assignment if you do not have a comment with your name, assignment #, and compiler used.
CodeLab
  • The Codelab exercises are not required.  You will receive extra credit for the exercises that you successfully complete.
  • These are web page exercises.  They are free if you are enrolled in the class.
  • You must set up your account
  • Use access code: DEAN-25700-HKFE-34
  • Some exercises may be worked in class, some will be worked during the on-line time.
  • You may ask for help on any of the CodeLab exercises.
  • Your CodeLab points (10 maximum) will be determined by the percent of CodeLab exercises completed.
Asking Email Questions about Assignments or Lab Exercises
  • Make sure it is obvious when you turn in your assignment that you are not just asking a question about it.  If you are asking a question about the assignment, then you are not turning it in usless you explicitly state that you are.
  • Make sure your email question is "fair".  
    • It is not fair to ask to have your program reviewed, unless you are submitting it for a grade.  You should review it yourself.  You know if it works and whether you have fulfilled the requirements.  If you don't know this, then you should ask for clarification of the requirement(s).
    • If you are asking a question about your code, submit the code with your question.  In many of the cases you will need to submit the entire program.
    • If you got lots of errors messages, you should try to narrow the problem down.  The "fairest" question is about one error message.
    • You need to start learning debugging techniques right away.  Start by putting "print" statements in your code, so you can see what is going on.
  • Save your email correspondence regarding assignments and exercises.  You will receive a reply with the grade for any assignment or exercise that you submit via email.
Tests
  • One page (both sides) of notes allowed 
  • No computers, tablets, e-readers, phones, etc.
  • Timed
  • No makeups without prior approval

Academic Integrity Policy

How to Create Your Computer Account

If you are registered in the class, you can get a Windows/Unix account now.
  • On the browser: Open De Anza College website.
  • Under Course Information tab, choose “Instructional Division & Depts.” then click on the Business, Computer Science and Applied Technologies Division link.
  • Locate the "Create Your Business/CS Computer Lab Account" button on the left hand side of the page.  Press the button, and a new browser window will open.  This window displays the Business/CS Account Request.
All CIS student lab accounts will be removed from our server after Friday, December 15, 2017.

Computer Lab Hours


Monday – Thursday                9 am – 8 pm
Friday                                       9 am – 4 pm
Saturday and Sunday             CLOSED

Computer Lab Rules
  • Eating and drinking are not allowed in the main lab and the classrooms.
  • All bottled water or soda cans should not be visible on the desks and should be kept in bags or backpacks.  Any beverage containers with liquid, include disposable coffee and soft drink cups must be finished before students enter the Computer Lab and ATC classrooms.
  • Students are not permitted to change or modify the monitor setting in ATC203 Computer Main Lab from horizontal to vertical mode.
Printing

De Anza students have to use ePRINTit system if they need hard copies.  There is one (1) ePRINTit station installed in room ATC 307.

Microsoft Imagine
The Microsoft Program will be available for all eligible CIS students to register and download selected software from Microsoft for free, after the census day.

Volunteer Teaching Assistants

One in One Tutoring- 30 minutes
Jamie Johnson is our part-time tutor helping CIS students in the computer main lab (ATC203).  Students can find more information and make an appointment with her at the front counter.

Review - an old CIS22A Midterm

Suggestions to get started NOW

Get a computer account

Get and install a compiler for your home/laptop computer(s)

Setup your CodeLab account and start working exercises

Read Chapter 7 in the textbook

Watch this easy video (9 minutes) on functions.    This is just to get use to watching videos.

Complete the review of the Midterm - ask for help if necessary

Email Joe a note and introduce yourself (goals, plans, current interests, something that makes you unique, ... ) Ask a question, if you have one.  Make sure you have his email address correct.  You will get a reply.  If you don't get a reply, then you don't have the correct email address (and you won't be able to submit exercises and assignments).

Read me

Lab Exercise #1

Put your name, the compiler used, and Lab Exercise #1 in a comment at the top of your program. Email your source code. This lab exercise is due at the beginning of the next lecture.  You may email your lab solution prior to that.  Remember to use "Ex1" as the subject of your email submission.

Write a program containing a loop that you execute 20 times. In the loop, generate two random numbers between 1 and 1000.  Divide the first random number by the second random number and print the result using 4 decimal places of accuracy.  Your output should look like this - except for different random values:

0.0897
0.6687
0.2345
1.3343
2.0710
4.8356
0.3406
1.9553
1.0562
1.8947
0.6479
5.8636
0.7650
0.5886
0.8025
0.6162
1.4323
0.9529
2.2267
0.0402