Cs-200 Assignments
Assignment 1
due on 2/5/98.
Write a program in C++ which will prompt the user to enter their year
of birth (integer). Calculate in how many years the user will be 50, and write
it in a sentence.
If the person is over 50, write out that s/he is in the best years of
life.
Make sure to include comments in your program, especially in the
beginning with your name and the program # (Program 1). Also describe the
program.
Include your design (structure chart, flowchart, or pseudocode)
Since we may not cover the if-else statement before the due date (you
need it for the 2nd part of the program) delay this program a bit and turn
in a program that draws a as seen in class. The new
date for the
program above will be announced shortly.
Assignment 2 due Feb. 26, 1998.
Assignment 3 due March 10th, 1998.
Assignment 4 due April 7th, 1998.
Assignment 5 due April 21st, 1998.
Assignment 2
Due 2/26/98 but Feb 24 is recommended.
Write a C++ program to do the following:
Calculate a student's average. The student may have 3 or 4 exams to
average. First read in the number of exams, then branch accordingly
(using 2 separate functions).
Write 2 separate functions for the 2 cases.
LIke before, document your program with comments and a design.
Break your robot 1st assignment into a call to 3 separate
functions: head, body and legs. Submit your program and your output.
Assignment 3
First input: Number (int) of exams to average.
Second input: Number (int) of students in the class.
Outputs: