CMIS 102

Dev-C++ setup tips
Style, grading, compiling notes
Youtube videos list

Computer architecture     bits & bytes KMGTEP mun
Compile
Program
Algorithms

Module 2 edited from UMUC.
READ: compiling, syntax, identifiers, variables, output
READ: arithmetic operators, int and float numbers, sqrt function, output formatting
Download a program source file (i.e. .cpp). Then Open it in DevCpp and then Compile and Run
helloWorld.cpp    cout Output
helloWorld2.cpp    commented
intVariable.cpp    A varying int variable.
allOperations.cpp    +-*/%
READ: Identifiers
READ: int, float, output formatting
READ: math review
adder.cpp    cin Input.
avg2nums.cpp
READ: input
Lab exercise rectangle, box, BMI, Fahrenheit, FV (pow()), Tetrahedron, Hero
pythag.cpp     sqrt()
quad1.cpp
circle.cpp     M_PI
allOperationsRandom.cpp    rand()

Solids Homework Due: 29 Jan

READ: BGI graphics setup     graphics.h    winbgim.h    libbgi.a     Available functions
graphicsTest.cpp    graphicsTest.png

Make these:
firstImage8lines.png    firstImageSqrs.png    firstImageSixths.png   

drawing Homework Due: 5 Feb
hmk_firstimage500x500.png    hmk_firstimage200x200.png    hmk_firstimage700x400.png   


READ: string
stringDemo.cpp
quadbadFormat.cpp Unreadable formatting but compiles.

READ: Operators summary

Control flow diagram

READ: if
READ: if statement
READ: Module 3a compound statement
Read in LEO: Week 4 Module "II. Selection Statements"
sqrtIf.cpp
passwordIf.cpp    string == !=
multibranchIf.cpp
calculatorIf.cpp    INT_MAX
quadIf.cpp
month_numIf.cpp
activitiesIf.cpp
max_of_3.cpp
bad_ifs.cpp    tricky if syntax errors
quadIf2.cpp    return
alphabeticalIf.cpp    string1.compare(string2)
Lab exercise

shapes Homework Due: 19 Feb
red radius 100 circle at (200,300)    green 200x100 oval at (200,300)    blue 200x100 rectangle at (200,300)    cyan 200 square at (200,300)   

READ: char     ASCII
charDemo.cpp

READ: logical operators
READ: logical operators
month_days.cpp
phoneDial.cpp    islower()
phoneDial2.cpp
validIf.cpp
julian.cpp longest program with selection only?

triangles Homework Due: 19 Feb
Equilateral 300    Isosceles b200 s300    Right 300x400

READ: for
Read in LEO: Week 5 Module "III Loop Statements- B. The for Loop (a counter-controlled loop)".
for_loops.cpp
for_loops2.cpp
for_loops_strings.cpp
for_loops_drawings.cpp
for_loops_coins.cpp
fileOutput.cpp    ofstream file output
fileInput.cpp    ifstream file input      data1.txt
grid.cpp
concentricCircles.cpp
circlesBorder.cpp
Lab exercises: loops

lines Homework Due: 26 Feb
image of result of given test data

READ: while
READ: while loops
Read in LEO: Week 5 Module "III Loop Statements-A. The while Loop"
whileSentinel.cpp
validWhile.cpp
quadLoop.cpp
EOFtest.cpp    EOF    dataEOFtest.txt

READ: arrays
Read in LEO: Week 8 Module "Arrays".
array.cpp    []    const
stddev.cpp    EOF
arraySorting.cpp    sort()
Array exercises 1
Array exercises 2

points Homework Due: 4 March
image of 23 random points, chosen point (123,234)       CMD image of same run

Other homework programs to write:
Tax ifs
GPA ifs and while (data validation)
Loan payoff schedule loops
Monthly calendar loops
Research these and make a program that does them:
Sierpinski triangle, random walk,