CIS 22B - Notes for Tuesday, 9/22

Announcements and Reminders

  • Attendance performed using admittance from Zoom waiting room
  • Class adds for waitlist after today's lecture
  • Office Hours:  Tuesday and Thursday, 12:45 - 1:15 using the same Meeting Id as the lecture
  • Lab Exercise 1 is due Thursday at 1:30, and is not accepted late
  • Virtual Club Day:  Thursday, October 1st, 12:00 - 3:00 pm
  • DeAnza Transfer Panels (UCLA, USC, Columbia - 9/26, UC Berkeley 10/10, Stanford 10/24)
  • VIDA Projects Fair - Engagement and Community Building Opportunities For Students - Projects
  • Weeks of Welcome

Topics


Zoom Policies

  • This is no way to run a class
  • The class is very full, approximately 50 students
  • Come to class early (not on time, but early).  Your name will be checked off on the attendance sheet before you are admitted from the waiting room.  If you are late, you may have to wait in the waiting room for a while.
  • The lecture will not be recorded.  You are expected to be in class for the lecture.  Lecture recording will be by separate request only.
  • The chat box
    • Minimize use, important stuff only.
    • Ask questions before the lecture, during the break, or after the lecture.  If the question is important, ask it anyway.  
    • Do not answer each other's questions

The Syllabus
The Syllabus Supplement

Course Notes

These are notes written by the instructor.  The notes contain many of the same examples that are presented in class.  These notes are incomplete and will be added to throughout the course.  They will present a different perspective and a different style than the textbook.  You are encouraged to read and study the notes.  Also, please report any errors or typos to the instructor.

The class TA

Sharon Yang is the class TA.  She is available to answer questions using Canvas email.  She will also conduct a TA session to answer questions on Friday, 3-4 pm.

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.  Use the file name 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 a gnu compiler on Linux or Windows.  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 and operating system used.
Assignments         1   2   3   4   5   6   7   8   9  10
  • 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 CIS22B / Ass# as the email subject (where # is the assignment number).
  • Add the source code as an attachment.  Use the file name 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 a gnu compiler 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 on Tuesdays at 11:30 am. 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 and operating system 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-#####-####-##
  • 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 unless you explicitly state that you are.
  • Make sure your email question is "fair".  
    • It is not fair to ask to have your program checked, unless you are submitting it for a grade.  You should check 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.
  • If you do not get a reply on any exercise or assignment that you submit within 12 hours, follow up with another email requesting status.

Academic Integrity Policy

Stay away from Discord and other web-based sites for sharing code.  Get your help from the instructor.

Get a Linux account on Voyager

Locate the "Create Your Business/CS Computer Lab Account" button on the right-hand side of the page.  Press the button, and a new browser window will open.  This window displays the Computer Lab Account Request.


Tutoring

Request for tutoring

Tutoring Request Form

Obtain Microsoft Visual Studio 2019

  • https://visualstudio.microsoft.com/  
  • Select Visual Studio --> Click on Download Visual Studio --> Select "Community 2019". Please see the attached screenshot  
  • After download then starts to install.  
  • After install, at the first popup window asks you to sign-in, please click "Sign-in" button and type studentname@student.deanza.edu.  
  • Done, now you can use the Visual Studio 2019.  
  • To check the license status, please go to Help on the menu bar and click to About Microsoft Visual Studio --> License status. It will show the status. Please see the attached screenshot.  

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.

https://azure.microsoft.com/en-us/free/students/

Click Activate now >  

At Sign In window

          Type 8 digits Student ID@fhda.edu

 

Next, log in with school Student ID and myportal password.

 

At the Stay Sign In: Click YES

At About You window

        Review your First and Last Name

        Email address

        Phone: cell phone # (suggestion)

 

Microsoft will automatically send a code to your phone or email in a few seconds.

       Type in 6-digit code

       Click at the Sign Up

 

Wait a few minutes, Azure website will be displayed

Click at Software (upper left corner) to see the software list.

all the instructors. 


DeAnza has resumed standard rules and deadlines for dropping classes, receiving a W and requesting Pass/No Pass

The temporary rules that were announced for winter, spring and summer of 2020 are no longer in effect.  


Summary:

*Students will receive a "W" grade for all drops initiated by students and instructors after the second Friday of the quarter.  For late start courses, students will receive a "W" grade for all drops initiated by students and instructors after the first 20% of the late start session. 


*All "W" grades, including "EW" will appear on the student transcript, but only "W" grades will count as one "take" in the course. The "EW" grade is not counted as an attempt, and students must petition to get the "EW."  Course repeatability rules require students to request to re-take a course after two non-success attempts that result in any of the following: D+/D/D-/ F, NP, or a W.  The request process for a 3rd repeat is through MyPortal Student Adobe Sign Forms.  A "W" does not count against a student's GPA but will be counted in calculating academic progress and may be a factor in probation or dismissal. 


*Students may NOT be assigned any "W" grade after the eighth (8th) week of the quarter, without documented extenuating circumstances through submitting an Extenuating Circumstances Petition, which you will find on our Admissions and Registration Student Forms webpage.



Review - an old CIS22A Midterm

Suggestions to get started NOW

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.  Tell me your goals, current interests, hobbies, your nickname or something interesting about yourself.  Ask a question.  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 12 times. In the loop, generate two random numbers between 1 and 100.  Divide the first random number by the second random number and print the result using 3 decimal places of accuracy.  Your output should look like this - except for different random values:

0.618
35.000
2.800
1.339
0.969
0.130
2.929
0.674
2.233
0.757
18.400
0.056

Hint: you should get a floating-point answer (a cast is suggested).