CSC 215 - Programming Projects
All programs submitted for credit should follow
these rules. Also, remember that I do not accept email
submissions. Turn in hardcopy
of your code and your output (see the
output link if you need help printing
the contents of your output screen).
Any additional
requirements will be indicated in the description of your assignment.
See the
Visual C++ guide for help on using the recommended
compiler. Remember that this compiler is available in the labs.
Chapter and
section numbers in the Readings, as well as problems specified in the Assignments, refer to the course text, Problem
Solving with C++: The Object of Programming, by Savitch unless otherwise indicated.
-
Assignment #1: (Due: 9/25)
- Reading: Chapter 2 (all sections). Please read sections 2.3 and 2.4
carefully. The self test exercises may help your understanding.
- Assignment:
- Page 101, Problem #3 (50%)
- Page 102, Problem #6 - hard version (50%)
Note:
Pay
particular attention to section 2.5 of your text.
-
Assignment #2: (Due: 10/2)
- Reading: Chapter 3 (sections 1-3).
- Assignment:
- Page 163, Problem #2 (100%)
- Page 163, Problem #5 (Optional - extra credit)
Assignment #3: (Due: 10/16)
- Reading: Chapter 3 (all sections) and Chapter 4 (sections 1-2).
- Assignment:
- Page 164, Problem #8 (50%)
- Page 210, Problem #1 (50%)
Note:
For the problem on page 210,
you may implement a single conversion function as the
author suggests or you may use two functions to handle
conversion
using the following scheme:
- Implement a function to convert the hour input
from 24 hour format to 12 hour format. The
function should use call by value, be of type int, and have a single
argument of type int (i.e. hour).
For example, if 17 is the hour in 24 hour format
it should be supplied as the argument to this function which should
return 5.
- Implement a function to determine whether the hour
input in 24 hour format
is A (for AM) or P (for PM). The
function should again
use call by value but should be of type char. It should
also have a single
argument of type int (i.e. hour). For example,
if 17 is the hour in 24 hour format
it should be supplied as the argument to this function which should
return P.
Reminder:
-
You must include code to ensure that the time entered is
valid.
- Remember that 12:00 on the 24 hour clock is 12:00 pm,
00:00 on the 24 hour clock is 12:00 am, 1:00 on the 24 hour
clock is 1:00 am, 23:00 on the 24 hour clock is 11:00 pm.
Assignment #4: (Due: 10/30)
- Reading: Chapter 9 (sections 1-2).
- Assignment:
- Page 578, Problem #1 (100%)
- Page 580, Problem #4 (Optional - extra credit)
-
Assignment #5: (Due: 11/20)
- Reading: Chapter 5 (sections 1-3).
- Assignment:
The assignment has two parts. You will submit two programs. All
students should submit a working program for part 1.
For part 2, select one of the three options and attempt an
implementation. Notice how the final score for this assignment will be
determined.
- Part 1: (60%)
- Part 2: (40%)
Choose one of the following:
- Page 286, Problem #8 (hard version)
- Page 287, Problem #9
- Write a case conversion program. The program
will prompt the user for input and output file names. The input
file contains text. The program should copy the contents of the input
file to the output file but should convert the case of each
sentence to sentence case (i.e. capitalize the first letter
of the sentence only). The program should handle input in any
case.