[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]
Labs: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10]
Mon Mar 15 13:34:08 PDT 2010
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

      2010-03-15 Mon Mar 15 13:30 Grades posted

      I've posted the latest grades. For your information at this time the grade distribution looks like
      Table
      A/A-B+/B/B-C+/C/C-D+/D/D-F
      610711

      (Close Table)

      But your grade will depend on what you show you know in the final... so prepare well!

      The next class [ 19.html ] is about arrays -- both one and two dimensional.

      Then we have a review [ 20.html ] session with a chance to ask any qustion about the content of CS201 that you like.

      2010-03-11 Thu Mar 11 09:41 Question about project

      The idea is that you add the UML diagrams to the printout of the program. You could even draw it by hand on the printout -- as long it is readable. If you do it on a separate sheet, staple it to the old printout.

      2010-03-08 Mon Mar 8 13:14 Grades posted

      I met the electricians by the elevator as they were leaving and thanked them for getting the power back to our systems. It was knocked out by a treble power cut yesterday evening...

      Any way the latest grades [ ../grading/ ] have been posted.

      The next class [ 17.html ] is on C++ vectors...

      I'm hoping that we will hit a run of good techluck.

      2010-03-04 Thu Mar 4 15:03 Class 16 today

      In class students coded this UML diagram.

      [Horstmann page 244]

      The C++ code is on page 244 of the book.

      We then looked at the code in the next lab [ lab09/ ] and drew the UML class diagram.

      2010-03-04 Thu Mar 4 08:47 Bonus points

      Check out the growing list of CSE seminars [ ../seminar/ ] prsenting recent student work.

      2010-03-01 Mon Mar 1 13:41 Grades posted and campus closing

      The campus will be closed to save California some money on Tuesday. The class work is at [ 16.html ] and the lab is [ lab08/ ] and thay are about working remotely with programs that spread over several files.

      The Thursday class starts with you handing in a report (SHORT) on your experience on Tuesday, a review question +answer on UML and your latest project. This class [ 16.html ] will be on the UML and will include a quiz on your project and how classes work.

      2010-02-24 Wed Feb 24 13:19 Grades Posted

      2010-02-17 Wed Feb 17 09:20 Added review questions

      I've just selected some review questions from chapter 5 and put them in [ 12.html ] , [ 13.html ] , and [ 14.html ] so please reload these before completing your study of the text book sections.

      Next class is number 12.

      2010-02-16 Tue Feb 16 13:49 Change of project schedule P6 and P7 swapped

      I've switched P6 and P7 arround to fit with the reading.

      2010-02-15 Mon Feb 15 13:34 Grades Posted

      Next class [ 11.html ] (case study and testing) and [ lab06/ ] (lab).

      Exercises for today [ assert.cpp ] [ foobar.cpp ]

      2010-02-09 Tue Feb 9 14:21 Exercise in class today

      We developed [ circ.cpp ] today. Most of this code will appear in a future lab...

      2010-02-08 Mon Feb 8 13:29 Updates...

      I've posted the latest grading.... and made some of the easier changes that you have suggested to the web site. I'm working on the experiments in the future labs.

      Next we introduce "functions" [ 09.html ] and do [ lab05/ ] on loops and decisions...

      Then, Thursday, we have more on functions in [ 10.html ] with Project4 due and a quiz.

      Then we will be half way through the quarter!

      2010-02-01 Mon Feb 1 14:08 Grades Posted

      I've just posted [ grading/ ] that includes the projects and quiz from last week. Please check these for errors.

      The next class is [ 07.html ] on loops. It is followed by [ lab04/ ] that goes over logic and loops.

      On Thursday [ projects.html#P3 ] is due in, P2 can be resubmitted, and there will be a quiz testing your ability to trace a program with arithmetic and string operations.

      2010-01-29 Fri Jan 29 10:14 Using Boolean Expressions not Ifs

      This morning I realised that the "george.cpp" program can be simplified because any program that has
       	if( A )
       		B=true;
       	else
       		B=false;
      (where A is a condition and B is bool) can have this code replaced by
       	B = (A);
      which is simpler but more sophisticated. Here [ george2.cpp ] is a running program that tests this idea.

      I will have to go back to the notes on class 06 to add something about the input and output of bool values.

      2010-01-28 Thu Jan 28 14:47 Class 6 and 7

      In class today I showed you a program that evaluates a given Boolean expression with two variables [ george.cpp ] and I'm planning to use a version of it in Lab04 on Tuesday.

      I'm currently rewriting lab04 and lab05...

      The next class is [ 07.html ] and after the last day to drop. There is the usual reading and review questions.

      2010-01-27 Wed Jan 27 10:50 First Grades Posted

      If you have returned your pinword form go to [ grading/ ] and input it in to the form. Then click "[OK]" top see your grades on the line marked "***" plus a few statistics.

      More information will be posted every monday afternoon from now on.

      2010-01-20 Wed Jan 20 16:32 Changes

      I've improved .see ./04.html and started on [ 06.html ] ready for next week.

      I have also put up [ vi.intro.html ] which introduces the 'vi' editor for people working remotely.

      For more help with Linux -- come the the club meeting Friday 5pm in JBH356 and followed by a Games Night!

      We should trace some programs to day...

      2010-01-19 Tue Jan 19 19:11 Program written in class today

      We wrote and tested [ gravity.cpp ] today in class. I also demonstrated our UNIX/Linux command
       		~dick/bin/Q novice
      and the 'vi' technique
       		:set number
      to see the numbers on the lines of the files we write.

      The next class is [ 04.html ] on non-numeric data types -- strings and ready made objects. Hand in what ever you have done on P1 and be ready for a quiz on it and chapters 1 and/or 2.

      Note -- the books special data types: Time, Employee, Point, Line, Circle, and Window are all available on our lab machines and "Q" will find them for you...

      2010-01-13 Wed Jan 13 11:01 Correction to web site

      First, thanks to Daniel, who discovered that the link to SSH329 in the syllabus is broken. I have changed [ ../syllabus.html ] to link to a university in Germany and one in Hawai instead.

      Secondly, I discovered that my [ projects.html ] had several errors (example listing a nonexistent project, and omitting a vital one) and fixed that.

      The next class is [ 02.html ] in reviews chapter 1 in the book.

      Next I start improving lab02, class 03, ....

      By the way, I am pleased that Mr. Wengzhe Xue will be assisting me in the labs and with the grading for this class this year again.

      2010-01-06 Wed Jan 6 14:55 Working on first class and lab

      Today [ 01.html ] and [ lab01/ ] are being polished... These documants are ready: [ ../syllabus.html ] [ schedule.html ] [ syllabus.html ]

      2009-12-17 Thu Dec 17 15:23 Working on schedule and study guides

      2009-12-03 Thu Dec 3 11:24 Working on Schedule for Winter

      [ schedule.html ]

      2009-11-17 Tue Nov 17 10:22 Preparing for the Winter 2010 Quarter

      I will be teaching CSCI201 in the winter 2010 quarter with a new text that is very similar to one I used some years ago.

      Items redacted after this point

      2009-03-25 Wed Mar 25 09:34 Grading done

      I finisihed grading the final, and unless you can find an error these will be the grades for the course.


      Table
      DistributionA/A-B+/B/B-C+/C/C-D+/D/D-F
      Frequency612503

      (Close Table)

      2009-02-05 Thu Feb 5 07:02 YouTube Objects vs Classes

      This robotic tutorial [ watch?v=IBpZBI_8QAE&NR=1 ] may help... Let me know!

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

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

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

      (Close Table)

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

      I've also started grading you projects. Here are some common errors. These are nearly all examples of intelligently jumping to a completely false conclusion.
      Table
      BasisGuessCorrect
      Because everything else I do is easy This should be easy Programming takes a lot of time, care and attention to detail
      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.
      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(...;...;...)..."

      (Close Table)

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


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

      (Close Table)

      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>>

    Abbreviations

  1. Algorithm::=A precise description of a series of steps to attain a goal, [ Algorithm ] (Wikipedia).
  2. Class::=A description of a type of object that includes data it knows and the functions that can change it.
  3. Function::programming=A selfcontained and named piece of program that knows how to do something.
  4. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular and free C++ compiler.
  5. OOP::="Object-Oriented Programming", Current paradigm for programming.
  6. Semantics::=Rules determining the meaning of correct statements in a language.
  7. SP::="Structured Programming", a previous paradigm for programming.
  8. Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
  9. Q::software="A program I wrote to make software easier to develop",
  10. TBA::="To Be Announced", something I should do.
  11. TBD::="To Be Done", something you have to do.
  12. UML::="Unified Modeling Language", industry standard design and documentation diagrams.
  13. void::C++Keyword="Indicates a function that has no return".

End