Assignment h3 Instructions
This assignment will involve the use of if-else and if/else-if statements. The
programs in this assignment are already semi-complete, your task is to add the
conditional statements that would make the program run correctly.
There are three C source files:
leap.c - finds if a given year is either a leap year or a common year
grade.c - takes two numbers (the points earned and the points possible),
computes the percentage, and then spits out the appropriate letter
grade
oddEven.c - takes in a number, and tells you whether the number is even or odd
Suggested Reading:
- C Lesson 2, linked in the "Lessons" Page, and the links contained within that
lesson as well.
- Wikibooks C Programming - Program Flow Control
- Wikipedia - Leap Year: Gregorian Calendar - This also has pseudocode that you can
use to help you write the necessary conditional statements. This is good
practice in translating pseudocode to workable code in whatever language you
are writing code in.
In addition to the C source files, you will also see the README file, the
manifest file, and the "working" directory, which has working versions of these
programs.
To check out this assignment, run "handin -C h3" in your home directory.
Once you're finished, go to your home directory and then submit your assignment
by typing in "handin h3"
This assignment will be due on September 14 @11:59PM EDT.