[Skip Navigation] [CSUSB] / [CNS] / [Comp Sci & Eng Dept] / [R J Botting] / [CSci201] / index
[Text Version] [Syllabus] [Schedule] [Glossary] [Labs] [Projects] [Resources] [Grading] [Contact] [Search ]
Notes: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
Podcasts: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12]
Labs: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10]
Thu Mar 20 10:16:49 PDT 2008
Opening the PDF files on this page may require you to download Adobe Reader or an equivalent viewer (GhostScript).

Contents


    CS201: Introduction to Computer Science

      2008-03-20 Thu Mar 20 10:03 Preliminary Final Grades Posted

      I've posted my first final and course grades [ grading/ ] for you to check. They may change if any errors come to light or bonusses are earned.

      Currently we have
      DistributionA/A-B+/B/B-C+/C/C-D+/D/D-FW
      Frequency5112211

      If you have scored less than 300 points prior to the final you can make up these points by attending seminars in the labs on Friday 21st and getting an essay -- one per presentation -- to me by EMail, or into my dept office box -- by 12noon on Monday.

      2008-03-18 Tue Mar 18 14:03 Project 9 Grades Posted

      I've got the grades upto the final posted, including scores on the final project -- see [ grading/ ] and check for errors. About half-a-dozen students can benefit by going to seminars and giving me essays about them -- by monday afternoon at the latest.

      I'm not sure when I will have the final scores posted. Monday at the latest and Thursday afternoon at the earliest.

      2008-03-17 Mon Mar 17 12:03 Grades posted

      Grades have been posted showing points up to and including the last class. See [ grading/ ] for details. Most people have hit the 300 points limit but some could benefit from attending and writing a short essay on one of the 8 seminars [ ../seminar/ ] scheduled for Friday.

      The final is from 12-1:50 tomorrow. You may bring a single "cheat sheet" of paper -- 8.5><11 inches. You can write anything you want on this sheet. You can write on both sides. You print stuff....

      Best of luck.... and I hope you won't need it.

      2008-03-15 Sat Mar 15 09:03 Question from 20 online

      [ 20.html ]

      2008-03-12 Wed Mar 12 15:03 Questions and Tic-tac-toe Online

      I posted answer to your questions in [ 19.html ] , and your quiz and project can be collected at my office JBH339.

      Meanwhile, Justin has got the Tic-tac-toe design to run [ lab10/ttt.cpp ] by dint of making main a friend of the classes...... Any improvements?

      2008-03-07 Fri Mar 7 14:03 Grades and questions posted

      [ grading/ ] [ 18.html#Questions ]

      Next: [ 19.html ] with project and quiz.

      2008-03-04 Tue Mar 4 09:03 Errors and comments on reading and next projects

      I've just added a note to [ 17.html ] , on an error on page 245 of the text book.

      I've also expanded my notes on the next project: [ projects.html#P8 ] where you need to develop and test a class of objects.

      2008-03-03 Mon Mar 3 12:03 Grades Coff Posted Sneeze

      [ grading/ ]

      2008-02-29 Fri Feb 29 08:02 Off sick

      I put your answers to your questions on line at [ 16.html#Questions ] but won't be posting grades until Monday.

      2008-02-27 Wed Feb 27 12:02 Questions online

      Your questions have been put online in [ 15.html#Questions ] and I will be putting your graded quizzes and projects on my door when I get in after lunch.

      2008-02-26 Tue Feb 26 13:02 Dia UML Example in class 15

      Example in class today

      [ 15UML.dia ] (Dia file) and [ 15UML.png ] (graphic file)

      2008-02-22 Fri Feb 22 16:02 Questions answered + grades posted +notes ready

      Your questions on Thursday have answer [ 14.html#Questions ] on the web and linked into the search engine.

      The [ grading/ ] is ready to be checked.

      And I've complete the notes [ 15.html ] on object-oriented programming and the UML ready for the next class.... no podcast:-(

      The next project is to write and use a function. See [ projects.html#P6 ] and make sure you actually have declared a function and have a separate main function that calls it. Otherwise you may lose points.

      I'm still working on the notes for next Thursday....

      2008-02-20 Wed Feb 20 18:02 Pointed questions answered

      [ 13.html ]

      Next [ 14.html ] wind up chapter 5.

      Next project [ projects.html#P6 ] requires tyou to develop a and test a function and is due at the start of Tuesdays class.

      2008-02-20 Wed Feb 20 09:02 Updated Subjects for Quizzes

      Please check [ schedule.html#Quizzes ] so that you no what topics I will be testing in future quizzes.

      2008-02-15 Fri Feb 15 16:02 No podcasts this week

      Given the lack of storage and the fact I'm short of time.... I won't be posting the usual podcast. I will have a short introduction on the web page and would like you to study the whole page for the class first [ 13.html ] [ 14.html ]

      2008-02-15 Fri Feb 15 14:02 Grades and Questions online

      I've posted written answer to the questions on [ 12.html ] and the lastest [ grading/ ] grades. Shortly I'll be working on the notes for next weeks classes: [ 13.html ] (pointers) and [ 14.html ] (first data structures).

      Note: The poscasts are going to have to real short in future. See below.

      2008-02-14 Thu Feb 14 15:02 Computer Problem in Class Today

      You saw what happens if a disk fills up on UNIX. Since it was blocking student's compilations and edits I've worked hard to remove all large files that I don't need.

      I'm now down to the podcasts for this class. I may have to remove the old ones until we get a larger disk drive on the CSE server.

      I'm starting to type in questions and answer but don't expect to finish until tomorrow.

      2008-02-13 Wed Feb 13 10:02 Questions on functions etc answered online + project feedback

      I've posted the answers to your questions in [ 11.html ] and have graded your quizzes. Nearly everybody got the correct output. YEAH!!!!!!

      I've also started grading you projects. Here are some common errors that you chould check you code for now to get the jump on the next iteration of this project. Note -- these are nearly all examples of intelligently jumping to a completely false conclusion.
      BasisGuessCorrect
      Because everything else I do is easy This should be easy Programming takes a lot of time, care and attention to detail
      Because arrays are declared like this "type name[number]" Vectors are the same "vector<type>name[number]" vector <type> name ( number );
      Because arrays are declared with a size Vectors must be given a size. Grow vectors starting with an empty vector: vector <type> name;
      For loops can declare a varible "for (type name = ..." While loops can also do this They can't.
      Semicolons are at the end of statements They can't be inside a for loop: "for(...,....,...)...". They MUST be in a for loop: "for(...;...;...)..."
      I'm in a hurry I'll skip writing an algorithm it will save time. You will get lost and confused when you don't plan.
      (I'll add to the above as I continue grading)

      2008-02-08 Fri Feb 8 14:02 Uploaded grades notes and podcasts

      I've posted grades for the week [ grading/ ] and updated the notes and added podcsts for the next two classes: [ 11.html ] [ 11.mp3 ] (advanced functions) and [ 12.html ] [ 12.mp3 ] (numeric data types).

      On Tuesday bring a question and your best attempt at the next project.

      2008-02-07 Thu Feb 7 14:02 Questions and answers online

      [ 10.html#Questions ]

      Note you can also search for relevant materials by using the box at the top of the page.

      2008-02-07 Thu Feb 7 09:02 Added exercise on functions strings array chars loops

      I'll be bringing a handout [ 10ex.cpp ] to class for you to work on. It is in the notes for todays class [ 10.html ] and based on an example from a question in the last class [ 09.html ] (chars and strings).

      2008-02-04 Mon Feb 4 14:02 Podcast and notes for Thursday Ready

      The podcast [ 10.mp3 ] and the notes [ 10.html ] for Thursdays class -- on functions, has been uploaded.

      Next Class: [ 09.mth ] on characters and strings.

      And Ive started on the notes for next week's classes... ready by Friday!

      2008-02-01 Fri Feb 1 17:02 Grades Questions Answers and a podcast

      You questions on Errors have been answered in [ 08.html#Questions ] and grades have been posted in [ grading/ ] , and I've recorded [ 09.mp3 ] an introduction to the reading on Strings and characters [ 09.html ] ready for next Tuesday.

      2008-01-30 Wed Jan 30 11:01 Questions answered...

      Your questions from the last class [ 07.html ] are on that page.

      Please collect your project and Quiz from outside my office (JBH339) as you drop off your question on the next piece of reading [ 08.html ] (web page) and [ 08.mp3 ] (podcast)

      2008-01-25 Fri Jan 25 17:01 More podcasts and notes uploaded

      Next class [ 07.html ] [ 07.mp3 ] (arrays and vectors) , Next week [ 08.html ] [ 08.mp3 ] (errors) and the week after [ 09.html ] (character data) [ 10.html ] (functions)

      2008-01-24 Thu Jan 24 14:01 Scores and Answered questions for class 06

      See [ grading/ ] and [ 06.html ] for details.

      2008-01-23 Wed Jan 23 09:01 Questions and Macintoshes

      I've posted your questions and answers onto [ 05.html ] on the CS201 website.

      Meanwhile I have got this request


        Reply_To: me@my.host.domain

        I was wondering if you can send me instructions on how to log onto the school server with a mac computer.

        I have mac OSX


      Which doesn't include the senders EMail address. But I know the name and use their CSUSB EMail plus this page to give a rough answer. You'd get a better one + demo from Scott, our lab assistant.
      1. If you are using campus WiFi first use your browser to log into CSUSB's network.
      2. You need to open a terminal window into your OSX. I'm not sure where Apple have hidden the icon...
        In that window you can input UNIX commands like ssh. Like this
         		ssh -l your_csci_lab_user_id  jbh3-1.csci.csusb.edu
      3. Note: After the ssh there is a minus sign and the letter l, not the digit 1.
      4. However the next jbh3-1 has a minus and a digit 1.
      5. When jbh3-1 asks for a password, supply your csci lab password.
      6. ...

      For example


         		ssh -l dick jbh3-1.csci.csusb.edu
         		dick@jbh3-1.csci.csusb.edu's password:
         		Last login: Wed Jan 23 09:50:29 2008 from jb339-1.csci.csusb.edu

      Can anyone give a better answer? [click here [socket symbol] if you can fill this hole]

      2008-01-18 Fri Jan 18 17:01 Scores posted and podcasts published

      Check [ grading/ ] and input your PINword to see your scores so far.

      You can get 4..5 minute introductions to the readings for classes 5 and 6 at [ 05.mp3 ] respectively [ 06.mp3 ] plus some important supplementary material on logic and loops in C++: [ 05.html ] and [ 06.html ] respectively.

      2008-01-17 Thu Jan 17 13:01 Project P1 is due Tuesday and todays exercise

      The first iteration of the project [ projects.html#P1 ] is due at the start of class. Hand in whatever you have. Ideally a printout of a broken C++ solution to one of the P1 projects.

      Note: the campus is closed on Monday -- and that includes the labs:-(

      In class we developed a Julian Leap Year program [ 04ex.cpp ] and reviewed

       		== (test for equality)
       		= (assign value)
       		% (modulus)

      2008-01-16 Wed Jan 16 16:01 First scores published

      Please follow this [ grading/ ] link and input your PINword to see your scores so far. Your scores will be on the row in the table that has asterisks on it. Let me know if it doesn't work. Note: until you return your form I can't post your scores/grades/etc. in a secure way.

      2008-01-15 Tue Jan 15 19:01 FAQs for class 03 online

      I've written and uploaded answers to your questions onto [ 03.html ] on the website, including the example in class of int division [ 03ex2.cpp ] giving a surprising answer.

      Next class introduces an important tool -- how to make a C++ program select the best thing to do -- see [ 04.html ] with the podcase below.

      2008-01-11 Fri Jan 11 16:01 Study guide 4 online pages 42-45 if statements

      [ 04.mp3 ]

      2008-01-10 Thu Jan 10 18:01 Review class 2 and onto class 3

      I've placed your questions and my written answers in [ 02q.html ] so you can review them.

      The next class is the thord one on straight forward programs and the prep includes reviewing [ 03.html ] and/or playing [ 03.mp3 ] (podcast). and will involve exercises on working out what straight forward programs do, quizes on the same skill [ schedule.html#Q1 ] , and the start of your project [ projects.html#P1 ]

      2008-01-08 Tue Jan 8 15:01 Ready for next class

      Thanks for good first class and lab.

      The next class is described in [ 02.html ] with a podcast [ 02.mp3 ] guiding you thru the reading. Assigned work: write down a single question on a piece of paper and print your name. Hand in at start of class.

      I've also got the notes [ 03.html ] and lab [ lab02/ ] ready to go for next week.

      2008-01-02 Wed Jan 2 13:01 Recorded first attempts at podcassting study guides

      [ 01.mp3 ] [ 02.mp3 ] (Shift click to down load these files).

      2007-12-17 Mon Dec 17 15:12 Class Outlines Published

      [ 01.html ] [ 02.html ] [ 03.html ] etc..

      2007-12-12 Wed Dec 12 13:12 Thursday lab cancelled

      Because we don't have a room and it is more efficient we will be cancelling the Thursday Laboratory this quarter.

      Meanwhile I have preliminary [ syllabus.html ] and [ schedule.html ] ready for comment...

      2007-12-10 Mon Dec 10 14:12 Grades ready and preparing for Winter 2008

      I've graded all the finals that were done.... and posted the grades at [ grading/ ] ready for recording with the university to momorrow morning.

      Winter 2008 CSCI201 -- New Book

      Meanwhile -- the old text book: "Horstmann" is no longer available and so I will be redesigning this course for a different book in the next week. Expect big changes in the syllabus, schedule, web pages, and plan...

      In the Winter we will be covering the first 8 chapters of Skansholm, C++ from Beginning, ISBN 0-201-72168-6. This book is also used in CSci 202 -- but they cover the other chapters.

      Sorry for the inconvenience, but this was outside of my control.

      Some Previous entries redacted

      2007-12-06 Thu Dec 6 18:12 Most Preliminary Grades Posted

      DistributionA/A-B+/B/B-C+/C/C-D+/D/D-F
      Frequency48314

      2007-11-29 Thu Nov 29 14:11 Syntax sheets

      I've uploaded Andrew's Syntax sheets as PDF file ready for download: [ Syntax2columns.pdf ] [ SyntaxFullSize.pdf ]

      I hope they help..... even if I feel it is always better to develop one's own cheat sheets....

      2007-11-15 Thu Nov 15 13:11 PI and Books on C++ in the library

      This is in response to a lunch time meeting with a student.

      Books on C++ can be found in the library with call number

       		QA76.73.C153


      (PI): The best way to get π, e, etc into your program is to do this

       #include <cmath>
       const double PI = 4.0*atan(1.0);
       const double E  = exp(1.0);
       const double ROOT2 = sqrt(2.0);
      These formulas automatically supply an accurate value without you having to type lots of decimal digits. By putting them outside of all the functions and classes you request that they are evaluated before the program starts running.

    . . . . . . . . . ( end of section CS201: Introduction to Computer Science) <<Contents | End>>

    Abreviations

  1. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular C++ compiler.
  2. KDE::="Kommon Desktop Environment".
  3. OOP::="Object-Oriented Programming", Current paradigm for programming.
  4. SP::="Structured Programming", Previous paradigm for programming.
  5. TBA::="To Be Announced", something I should do.
  6. TBD::="To Be Done", something you have to do.
  7. UML::="Unified Modeling Language", [ 15.html ] (class notes on the UML and OOP).

End