|
CS256 - Principles of Structured Design
Fall 2021
|
Displaying ./code/sternflCode/h4/README
Assignment h4
Due: September 21, 2021 @11:59PM
In this assignment, you have programs that are already semi-completed, but
there's still stuff you have to do in order for these programs to work
correctly. Use the comments in the programs to help you figure out what to do.
The programs are as follows:
fixThis.c - This is an already "completed" program, but it has several errors
that keep it from being correct. Fix all the errors so that this
program's output resembles the "fixed" program in the "working"
directory.
oddEven.c - This is just like the problem in h3, except we are going to write
this as a function. "main" is already done for you, your job is to
write the function.
countdown.c - Here, you'll ask the user for a number, and then you'll count down
from that given number until we hit zero.
printLeaps.c - You will be taking your leap.c from h3, and you will write that
as a separate function. Then the program will ask the user for
the year of birth, and will then print the leap years between
then, and the current year.
Working versions of these programs can be found in the "working" directory.
Also, the manifest file is already set up for you, you do not need to modify
them.
|