C++
Quiz on Wednesday, July 19th.
Begin reading the chapter on Arrays in the textbook. We will cover
arrays (chapter 9) and 2-D arrays (Section 10.2) on Friday, July 21st.
You have a handout with 3 array example programs.
Programming
assignments for week 7 are due on Wednesday, July 19th and on
Friday, July 21st.
They are two textbook programs, one from chapter 6 and one
from chapter 8.
Programming Assignment #4, due Friday, June
30th. There are two textbook programs, one from chapter 4 and one
from chapter 5. On Wednesday, we will discuss classic patterns and
algorithms for finding a minimum (smallest) value from a collection.
Understanding the tricky C++ eof() function.
This program processes the last number
twice and
reports an incorrect average and count for the input file.
Assignment Three (AVERAGE and
STANDARD DEVIATION calculator)
is due Monday, June 26th. It was assigned on June 21st.
Here is a link to the Thursday, June 22nd vowels example
program. Vowels, consonants, and digits
example will help with AVERAGE and STANDARD DEVIATION task.
Quiz number two on Tuesday, June 27th. It will cover the chapters
3 and 4 new material and related lectures and handouts, but
will NOT include any chapter 5 material.
Here is a link to your 2nd programming assignment.
Assignment two (Miles Per Gallon calculator)
is due Tuesday, June 20th.
Pages 162-163, Programming Project #1.
Handout from Friday, June 9th for Object-Oriented Problem Solving and Programming
ASSIGNMENT #1,
was distributed in class, and from elsewhere on this web page.
It is due on Thursday, June 15th, by 5 p.m. Do NOT miss class to work
on a program. That is very, very, very counterproductive.
Turn in your two C++ code printouts, AND the problem solving and algorithm
development notes and outline, imitating the process shown in handout.
Monday, June 12th class summary and
ACAD.UNI.EDU email note, with additional info and READING suggestions.
Note that the 1st quiz will be on Wednesday, June 14th, NOT Tuesday the
13th.
The first example of user defined functions was handed out in
class #7, on Tuesday, June 13th. See the
first program with a separately
defined subprogram and its output.
The user defined squareRoot() function and the math.h library's sqrt()
function are both illustrated.
Newton's algorithm for calculating square roots was implemented,
and compared to the sqrt() function built into the math.h library.
There is a QUIZ on Wednesday, June 14th, but it will NOT cover
user defined functions or the chapter 3 material introduced on
June 13th. We
will be covering
chapters 3 and 4 for the next 5 or 6 classes, up through Wednesday, June
21st or so.
Free pcGrasp C++
compiler available for Windows as of July 9th, 4:30 p.m.
Download this file to your hard drive, then run it to install the
pcGrasp C++ compiler on your machine. You will need to download and
install pcGrasp, the Integrated Development Environment, also. It is
preferred that you download pcGrasp IDE first, and then this pcGrasp
C++ compiler.
Download GRASP, the
pcGRASP IDE Integrated Development Environment for using the C++
compiler. You should run this AFTER you have already installed
the C++ compiler, if you can do it that way. I am told it will not
make any difference for the C++ compiler above (not the BORLAND one), however.
But for many compilers, its best to install the Compiler BEFORE you install
the pcGRASP environment.
For the pcGRASP IDE download, the
pcGRASP button - Self installing executable (1.4 Meg) is the choice you want
to make, after you have filled out the form telling your Name and Organization
and Email address.
If you have a very slow modem connection or problems getting these two
files for your home PC, bring two high density diskettes to class next week.
The pcGRASP and the C++ compiler will each just fit on a standard 3 1/2 inch
floppy diskette.
-
The Friday, June 9th handout, with some
corrections. The problem solving process, illustrated with an example
problem for finding the length of the hypotenuse of a right triangle.
The assignment #1 from page 101 of textbook, problems #1 and #3 is
explained at the top of this handout. The assignment will be due
next Thursday, IF we can get into the lab early next week on Monday
and/or Tuesday. Otherwise, it will be postphoned till the 3rd
week of classes.
We covered the C++ if else statement and relational operators in
class on Friday, June 9th. We will cover the while statement and
more basics about relational operators and examples that match the
basic logic of your current assignment on Monday and Tuesday in
class.
- June 8th COBRA email note. Read chapter
2 for Friday's class. The quiz is postphoned until Wednesday, June 14th.
No quiz on Friday, June 9th.
- Class will meet in WRIGHT 105 classroom the rest of the semester, NOT
Wright 5. I will post a sign on the door outside of Wright 5.
Wright 105 is one floor above Wright 5 and has a computer projection
systems. We will meet in Wright 105 sometimes, and step across the
hallway to Wright 112 to use the computer lab, so its better for that
reason too.
-
Assignment #1: Read chapter 1 of the textbook. We will cover chapter one
concepts and examples on Tuesday and Wednesday in the 2nd and 3rd classes.
Note that the 3rd class will probably include a Wright 112 lab portion.
- Display 1.3 and Display 1.4
and Display 1.5 should be studied carefully. You need to understand compiling
and linking concepts, high level language versus machine language concepts.
- Display 1.7 Program Design Process should be studied carefully. It relates
to the Ghostbusters movie material and problem solving phases notes from lecture
#1. See also the Software Life Cycle six phases on pages 17 and 18.
- Display 1.8 A Sample C++ Program will be covered on Tuesday and Wednesday
in class. Page 21 of the text contains the output and the sample C++ program
code.
- Begin reading chapter 2: C++ Basics. We will have a 25 minute quiz over
most of chapters 1 and 2 on Wednesday, June 14th. The quiz will emphacize
what was covered
in the lectures.
Reviews of the textbook, from www.Amazon.Com customers, indicate it is a popular book for beginners
to programming, as well as a book admired by persons with programming or C++ experience.
The bookstore is planning on charging $65 for the textbook, which is the same price www.amazon.com is
asking, so don't pay more for it when you add on the shipping charges.
The C++ class has no prerequisites. It is suitable for beginners, but is also
an excellent elective for CS and MIS majors who want to add another language to
their arsenal. It would be either an excellent follow-up to or a great preparation for
Visual Basic or Ada or Pascal or Java.
It will be an 8 week summer session class meeting at 11 a.m. daily MTWThF. Several meetings per
week will often be in the computer lab for "hands-on" instructor-led classes.
I have not taught this class since before having a web page,
so the web page with tons of examples and the course outline will
not be ready until May or June of 2000.
-
I taught this 810:036 3 hour C++ course in fall of 95.
-
I taught 051 two different times when it was a C++ language based course. If I remember
right, I taught it in the summer of 95 and in spring of 96.
It was
a 4 hour credit class with a two hour lab each week. 810:051 is a course for majors
and minors in computer science, although other students do take it sometimes.
- I taught the 052 Data Structures class in the fall of 1996 when it was using the C++
language. I learned HTML in the summer of 96, but did not do a web page for C++ 052 that
fall.
- This explains why there is no past C++ web page to look at! :-)
C++ links from AT&T
you might wish to browse.
C++
FAQ Lite
Free Borland C++
compiler available for Windows. The one does not go with pcGRASP
environment, so installing the other compiler is preferable, if you want
to use pcGRASP.
Click the textbook graphic to see a larger jpg photo of the front cover.
The Pico text editor