1
|
- Project 4 due next Saturday before midnight (Aug 2nd).
- Dinosaur classes.
- Comprehensive Final Exam on Thursday (July 31st)
|
2
|
- Everything that was on the first two exams plus basic classes and
objects:
- Class syntax
- Private vs. Public
- Constructors
- Destructors
- Class Methods
- Instantiation of classes
- Using objects
|
3
|
|
4
|
|
5
|
|
6
|
- You will be required to write programs like those on the first two exams
(including one recursive function).
- Example class program:
- Write a Circle class to
represent circles.
- Your circle class must store the radius of the circle in a private data
member called radius of type float.
- Your circle class must define two public methods called diameter (2r)
and area (3.14r2) that take no arguments and return the
diameter and area of the circle defined by radius in your circle object.
- Give your circle objects a value for radius when they are created (i.e.
with a constructor).
- Write a driver program to create two circles of radius 1.0 and 2.0. and
which prints the area and diameter of your circles.
|
7
|
|
8
|
- Computers and the software they run are becoming ubiquitous.
- In this course you learned how computers are used to solve problems.
- You learned how to use functions, iteration, recursion, and objects to
solve various problems.
- You wrote software to solve mathematical problems, play games, store
information (a database), and simulate extinct animals.
|
9
|
- You understand how to write and compile fairly complex programs in C++.
- You have been exposed to all the major elements of C++, variables,
control structures, functions, classes, input and output.
- Make sure you put C++ on your resume!
|