K0LEE.com Sitemap


Home
Aviation
HP FAQs
Other Hobbies
Work


CSC160 - C++ Spring Term 2011


Download of all files for Dev-C++ Installation and CSC160 Assignments and Examples (~33MB) csc160.zip

Download just the Assignments and Examples (.5MB) CSC-160C-Assignments-Examples.zip

Syllabus in .doc format cppsyllabus.doc

Dev-C++ installation instructions Dev-cppInstall.doc

Assignment0 Prewritten programs PrewrittenInstructions.doc assigned 1/11 due 1/13

  • Prewritten0 - cout and cin - Prewritten0.cpp
  • Prewritten1 - random number guessing - Prewritten1.cpp
  • Prewritten2 - minesweeper - Prewritten2.cpp
  • Assignment1 - Biorythm Program -Assignment1.doc assigned 1/20 due due 1/27

    Program 1 example programs

  • Iomanip and formatting output - coutopts.cpp
  • Increment and Combined Assignment Operators - DemoIncrement.cpp
  • Global declarations and function prototypes - formatop.cpp
  • numberOfDays calculation - numberOfDays.cpp
  • Integer and floating point math - testmath.cpp
  • *Boolean and Equal (assignment vs. conditional) - booleanandequal.cpp
  • Quiz 1 Quiz01-a.doc assigned 1/13 due 1/20

    Assignment2 - Reading/Writing/Formatting Files - Assignment2.doc assigned 1/20 due 2/3

    Program 2 example programs

  • Writing to a file 1 - fileout.cpp
  • Data file of fileout example- fileout.dat
  • Writing to a file 2- fileout2.cpp
  • Data file of fileout2 example - fileout2.dat
  • For Loop example - forloops.cpp
  • If Statement demonstration - iftest.cpp
  • Nested If Statements - iftesthandout.cpp
  • Data file for Reading File Examples 1 - 3 - grade2.dat
  • Reading from a File example 1 - infile2.cpp
  • Reading from a File example 2 - infile3.cpp
  • Reading from a File example 3 - infile4.cpp
  • Inputting multiple numbers ot If statement - simpleif.cpp
  • While Loop Examples - whiloop.cpp
  • *Pass by reference example- passbyreference.cpp
  • *Memory Hex Dump of Various Data Types - memorydumping.cpp
  • Quiz 2 Quiz02.docx assigned 1/20 due 1/27

    Assignment3 - Dating Site - personal trait matching - Assignment3.doc assigned 2/1 due 2/10

    Program 3 example programs

  • Boolean Type Demo - demoBoolean.cpp
  • Read, Average, Display Grades - infile.cpp
  • data.txt - data.txt
  • fileout.dat - fileout.dat
  • Passing file object by reference - multiopen.cpp
  • Moving a file pointer to beginning of file - rewindFile.cpp
  • rewindFile.dat - rewindFile.dat
  • Static variables in functions - static.cpp
  • C-String comparisons - strcomp.cpp
  • String class comparisons - strcomp2.cpp
  • C-String comparison, concatonation - strcompcat.cpp
  • C-String character manipulation - strgtest.cpp
  • String class character manipulation - strgtest2.cpp
  • C-String comparison functions - stringts.cpp
  • C-String reverse characters using reference- strmanip.cpp
  • C-String reverse characters using array - strmanip2.cpp
  • C-String character references - strnocmp.cpp
  • *C-String overflow with hex dump - stringoverflow.cpp
  • *String Class and C-String Quick Reference - C-strings-and-string-classes.doc
  • Quiz 3 Quiz03.docx assigned 1/27 due 2/3

    Assignment 4 - Poker Hand Assignment4.doc assigned 2/10 due 2/24

    Program 4 example programs

  • Integer array processing - array2.cpp
  • Typedef & parallel array processing - arrayexm.cpp
  • ProcessString.cpp - ProcessString.cpp
  • Sending unprintable Ascii chars to console - showSuits.cpp
  • Return string by type - streturn2.cpp
  • Return string by reference - streturn2.cpp
  • Mixing String class and C-Strings - stringClFct.cpp
  • Generate Poker Hand with C-Strings - stringct.cpp
  • Generate Poker Hand with String Classes - stringct2
  • Switch/Case - switchst.cpp
  • Switch/Case with muliple case - switchs2.cpp
  • *Factorial/Recursion - factorial.cpp
  • Quiz 4 Quiz04.docx assigned 2/3 due 2/10

    Assignment 5 - Treasure Hunt Assignment5.doc assigned 2/24 due 3/10

    Program 5 example programs

  • Assignment 5 treasure hunt screen captures - treasurehuntoutput.txt
  • Dice game - dice.cpp
  • Character, Integer, and Floating Point Arrays - firstArray.cpp
  • Metric conversion - data structures - Metric.cpp
  • Data Structures, passing by refence and value - struct.cpp
  • Arrays of data structures - twodim.cpp
  • Quiz 5 Quiz05.docx assigned 2/17 due 2/24

    Assignment 6 PacMan part 1 Assignment6.doc assigned 3/22 due 4/5

    Assignment 7 PacMan part 2 Assignment7.doc assigned 4/5 due 4/12

    Assignment 8 PacMan part 3 Assignment8.doc assigned 4/12 due 4/19

    Assignment 9 PacMan part 4 Assignment9.doc assigned 4/19 due 4/30

    Program 6 - 9 example programs

  • Metric using structures- Metric.cpp
  • Metric Class 1- MetricClass.cpp
  • Metric Class 2 - MetricClass2.cpp
  • Metric Class 3 - MetricClass3.cpp
  • ASCII Chart - ASCIIchart.doc
  • *Appendix from CD - Appendix-Text.zip
  • *True/False printing - truefalse.cpp
  • *Passing Arguments to Main - argpassing.cpp
  • *The GOTO statement - gotoexample.cpp
  • *Rectangle Example - Rectangle.cpp
  • *DemoClass - Constructors/Passing Objects - DemoClass.cpp
  • *The ternary conditional operator - Pr4-27.cpp
  • *Variable Scope example - scopeexample.cpp
  • *Airspeed Calculation - airspeedtopressure.cpp
  • *Bubble Sort Algorithm - bubblesort.cpp
  • *Selection Sort Algorithm - selectionsort.cpp
  • *Linear Search Algorithm - linearsearch.cpp
  • *DemoStatic - the static keywork in classes - demostatic.cpp
  • *DemoStatic - header file - demostatic.h
  • *Parameter initialization in Class vs. Main - class-vs-main-init.cpp
  • *Unions - union11-10.cpp
  • *Towers of Hanoi - towersofhanoi.cpp
  • *The rand() and srand() functions - randexperiment.cpp
  • *Returning an array from a function - arrayreturndemo.cpp
  • Quiz 6 Quiz06.docx assigned 2/24 due 3/3

    Quiz 7 Quiz07.docx assigned 3/22 due 3/29

    Quiz 8 Quiz08a.docx assigned 3/29 due 4/12

    Quiz 9 Quiz09.docx assigned 4/12 due 4/19

    * bonus material not included in zip file download