.Open Useful Resources for CS201: Introduction to Computer Science . Syllabi and Schedule My general syllabus: .See http://www/dick/syllabus.htm and the CS201 .See http://www/dick/cs201/syllabus.htm and schedule .See http://www.csci.csusb.edu/dick/cs201/schedule.htm plus some notes on projects: .See http://www.csci.csusb.edu/dick/cs201/projects Help with projects and C++: The template file `project.cpp`: .See http://www.csci.csusb.edu/dick/cs201/project.cpp plus a demonstration of what a project looks like .See http://www.csci.csusb.edu/dick/cs201/demo.cpp when done. . Frequently Asked Questions Frequently asked questions (and some my answers) about our system here: .See http://www.csci.csusb.edu/dick/doc/CS_FAQ.html As the quarter proceeds the "Notes" will be filled in with your questions and some answers. The whole set is linked into the course web page search to help you answer qustions and review the the material. .Open Special Topics . Introduction .See http://www/dick/cs201/hello.cpp .See http://www/dick/cs201/src/coins1.cpp . How programs work .See http://www/dick/cs201/ch02.cpp .See http://www/dick/cs201/av03a.cpp .See http://www/dick/cs201/av03b.cpp . How to write simple programs: .See http://www.csci.csusb.edu/dick/cs201/polya.html Fill in the blanks: .See http://www.csci.csusb.edu/dick/cs201/project.cpp .See http://www.csci.csusb.edu/dick/cs201/demo.cpp . Objects . Decisions .See http://www.csci.csusb.edu/dick/cs201/luv.cpp . Loops .See http://www/dick/cs201/while0.cpp .See http://www/dick/cs201/uscor.cpp .See http://www/dick/cs201/bresenham.cpp .See http://www/dick/cs201/sqrt1.cpp .See http://www/dick/cs201/tsqrt.cpp .See http://www/dick/cs201/tsqrt1.cpp .See http://www/dick/cs201/sqrt2.cpp .See http://www/dick/cs201/tsqrt2.cpp .See http://www/dick/cs201/r62.cpp .See http://www/dick/cs201/piman.cpp .See http://www/dick/cs201/terminator.cpp .See http://www/dick/cs201/terminator2.cpp .See http://www/dick/cs201/mtable.cpp . Functions .See http://www/dick/cs201/functions.html .See http://www/dick/cs201/function.help .See http://www/dick/cs201/function.cpp .See http://www/dick/cs201/a09.cpp .See http://www/dick/cs201/fred.cpp .See http://www/dick/cs201/fac.cpp .See http://www/dick/cs201/mini.bad .See http://www/dick/cs201/mini.cpp .See http://www/dick/cs201/maxi.bad .See http://www/dick/cs201/maxi.cpp .See http://www/dick/cs201/quad.bad .See http://www/dick/cs201/quad.cpp .See http://www/dick/cs201/quad2.cpp .See http://www/dick/cs201/swap.bad .See http://www/dick/cs201/swap.cpp .See http://www/dick/cs201/order.bad .See http://www/dick/cs201/order.cpp .See http://www.csci.csusb.edu/dick/cs201/av07.cpp .See http://www/dick/examples/av26.cc .See http://www/dick/examples/av27.cc .See http://www/dick/examples/03b.cc .See http://www/dick/examples/03c.cc .See http://www/dick/examples/03d.cc . Testing and Debugging . Classes .See http://www/dick/cs201/ch06.html .See http://www.csci.csusb.edu/dick/cs201/animals.cpp .See http://www.csci.csusb.edu/dick/cs201/f8.cpp .See http://www.csci.csusb.edu/dick/cs201/ex15.cpp .See http://www/dick/cs201/ex15a.cpp . Vector and Arrays Notes: .See http://www/dick/cs201/vectors.html Examples: .See http://www/dick/cs201/bar.cpp (salary bar chart) .See http://www/dick/cs201/ex18a.cpp (find biggest number) Putting a vector inside a class: a class that stores a sample and calculates statistics: .See http://www/dick/cs201/e19.cpp Example of a 2 dimensional array: .See http://www/dick/cs201/demo2d.cpp An unsafe array wrapped up to make a safe class: .See http://www/dick/cs201/array.cpp .Close . Old Quizzes Many of the quizzes are complete C++ programs with a name that ends ".cpp". You can download these them by holding down the Shift key and clicking the links below. .See http://www/dick/cs201/q05.cpp .See http://www/dick/cs201/q06.cpp .See http://www/dick/cs201/q08.cpp .See http://www/dick/cs201/q11.cpp Here are some more old quizzes. Quizzes 3 and 4: .See http://www/dick/cs201/q03.htm .See http://www/dick/cs201/q04.htm Quiz 06 with errors .See http://www/dick/cs201/q06.bad , corrected .See http://www/dick/cs201/q06.cpp , and the differences between the bad and the good: .See http://www/dick/cs201/q06.delta (as generated by the command .As_is diff q06.bad q06.cpp ) Answer to quiz 07 is in .See http://www/dick/cs201/ch04b.htm Quiz 10: Bad .See http://www/dick/cs201/q10.bad and fixed: .See http://www/dick/cs201/q10.cpp Quiz 10: Fill in blanks in .See http://www/dick/cs201/q12.set giving .See http://www/dick/cs201/q12.cpp .Open C++ . Help and Comfort .See http://www/dick/cs201/c++.is.hard.txt (Mail) .See http://www/dick/cs201/function.help .See http://www/dick/cs201/function.cpp . Documentation .See http://www/dick/cs201/c++.stream.cpp .See ./ccc.html .See http://www/dick/samples/c++.html .See http://www/dick/doc/C++.FAQ .See http://www/dick/doc/C++.libraries.FAQ .See http://www/dick/doc/C.FAQ .See http://www/dick/doc/ . Examples From the CS201 book .See http://www/cs201/examples and other .See http://www/dick/examples .Close C++ . Unified Modeling Language UML .See ./uml.html . UNIX A Beginners guide to UNIX .See http://www.dafydd.net/soft/unix/uguide/ List of UNIX Commands: .See http://www/dick/cs201/unix.commands .See http://www/dick/cs201/timing.a.program .See http://www/dick/samples/unix.commands.html How to become a power user: (1) Join the CSci Club, (2) take this class .See http://www/dick/cs360/ . vi Starting: .See ./vi.txt .See ./vi.commands To be downloaded and printed: .See ./vi1.gif and .See ./vi2.gif Plus .See ./vi_charts.pdf (first page in PDF (Ok for Linux)) and .See ./vi_charts.ps (Postscript). More advanced stuff: .See ./vi.notes.html .See http://www/dick/cs201/vi.FAQ . Glossary Here is a fun and useful guide to the words and phrases that computer people use. I think it is both comprehensive, funny, pretty accurate: Jargon::=http://www.tuxedo.org/~esr/jargon/html/The-Jargon-Lexicon.html. Enjoy! AKA::=`Also Known As`. abstract::=`Describes something that is kept simple by omitting distracting details`. analysis::=`documenting what the problem is, in terms of what is given and what is desired plus the operations and formulae that can be used`. class::=`A description of a set of similar objects that perform similar operations and encapsulate more or less similar data`. code::verb=`Translating a program design into a computer programming language and testing to remove any errors`. data_object::=`An $abstract view of an $object as a container of information rather than as an active participant on the piece of software`. design::=`Producing a step-by-step or piece-by-piece description of how an analyzed problem is to be solved`. emoticon::=`One of a number of ASCII characters that encode emotional states of the writer. :-) indicates a joke and :-( unhappiness`. encapsulated::=`Something that is protected from accidental tampering. Something that someone else is responsible for. None of our business at this time`. FAQ::=`Frequently Asked Question`. IMHO::=`In my humble opinion`. interface::=`A $abstract description of how an object is used: created, operated on, and deleted`. KISS::=`A slogan used by computer people when somebody comes up with a complicated way of doing something when a clever solution would be simpler`. kludge::=`A design, thing, or plan that works but is an inelegant because of time or other problems`. Example: wearing glasses that have been repaired with duct tape. object::=`Something that is manipulated by operations and contains $encapsulated information and processing`. operations::=`Actions that an object will perform when requested`. TBA::=`To Be Announced`. TLA::=`Three Letter Acronym`. .Close CS201: Introduction to Computer Science