History topics (just look at the first paragraph for a brief concept):
Abacus
Charles Babbage
ENIAC
UNIVAC I

Why does C Language need a compiler?
How does pseudo code help in problem sovling?
What does the #include do for libraries when writing code?
What are the differences between, int, char, double, float.
How do you declar a variable.
How do you do assign a value to a variable.
Tracing code.
printf control string
For loops
++
--
arthmetic operators / %
keyword
standard identifiers
programmer defined identifiers

if statements
priting dobules
order of operations - page 90
columns and headings
relational operators - page 87
conversion characters
compound assignments:
+=
-=
/=
*=
char type
math.h
floor
ceil


scanf
what does the & mean when reading in values.
reading in floats, doubles, integers
while loops
whitespace in scanf
prompts in a program
left & right alignment of variables while printing
if else
flow chat - 141
conditional opeator ?:

top down programming / step wise refinement
nested for loops
defining constants
FILE *
file access modes

standard I/O streams
redirection
command line arguments
fscanf, fprintf
atoi
stdlib

functions
advantages
parameters, how are they passed
function definitions
return statement
declaration and prototype
void parameters
pointers: * &
I-P-O - page 241
driver
printf & scanf: what do they return

Sample programs...Practice them on PAPER and try timing yourself. I will NOT have this many programming questions on the exam. But there are a few like this. So take practice in understanding the concepts. And see how long it takes. It should take you under 10 min each (some maybe 15) to write these programs once you understand the concepts. Get comfortable with the concepts BEFORE the exam to do well. Practice with the Smart Tutor.

An apartment building has floors 1 to 6, each floor has apartments A to G. Write out a nested for-loop that will display all the apartments in the buidling. List them as Floor Apartment, such as 1A, 2A, etc....all the way to G6. Print each apartment on a separate line.

Wrtie a function called munch will take 2 integer parameters: chips, and eat. It will subtract the amount eat from the chips total and return this value from the function.  Also write the prototype. Show a driver that would test function.

Write a complete program that would show all the perfect squares from 0 up to 100.  (such as 0, 1, 4 are perect squares). Think about this for a moment, it's easier than you think.

Chapter 3: 1C, 3

Why does C Language need a compiler Why does C Language need a compiler

Use the conditional operator to write the following in one line. (x, y are integers):

if (x==10)
    y=5;
else y=2;

Write a complete program that uses command line arguments. It gets 2 arguments and will add them together and display the result. Give an error if the user does not give 2 arguments. Remember that the filename is considered an argument and is to be ignored in this program.

Write a program to open up a data file called money.txt . money.txt contains dollar values with pennies (such as 10.52). Read in the values until you reach a value of -1 . Add up all the numbers in the file and display the total. Be sure NOT to add in the -1 value.

Chapter 5: 1

Write a function called capitalize. It takes 1 parameter, a pointer to a character. It will return no value. capitalize will modify the variable to turn it into a capital letter. Such as a becomes A. Take a look at the ASCII chart to help you. Do range checking to make sure the character is a lowercase character before modifying. If it is not valid, do not modify.