time due | submission method |
---|---|
11:45 PM Wednesday 7 November, 2007 | email to brock@cs.unca.edu |
Start working now! The program description is available at http://courses.ncsu.edu/ece109/common/prog1_fall07.pdf. The only difference between the Raleigh and "distance" sections is the way in which your program is submitted. The late submission penalty is the same for all sections.
time due | submission method |
---|---|
11:45 PM Tuesday 20 November, 2007 | email to brock@cs.unca.edu |
The program description is available at http://courses.ncsu.edu/ece109/common/ece109_prog2_fall07.pdf.
time due | submission method |
---|---|
11:45 PM Sunday 9 December, 2007 | email to brock@cs.unca.edu |
If the links below don't work you, try connecting to the ECE 109P Home Page.
The program description is available at http://courses.ncsu.edu/ece109/lec/602/wrap/Prog3/program3.pdf. To complete the assignment, you'll need to download the following files.
time due | submission method |
---|---|
11:45 PM Sunday 9 December, 2007 | email to brock@cs.unca.edu |
Write a C program that reads in a several pairs of numbers. In the i'th pair, the first number is mi and the second number is ri. For each pair, your program should compute mi*ri*ri, and also sum up all mi*ri*ri computed for each input.
When your program tries to read in a pair, but instead encounters an end-of-file, it should print out the computed sum. If the computed sum is less than zero, your program should print "leaning left". If the sum is zero, it should print "balanced". If the sum is more then zero, it should print "leaning right".
You don't need a long program to solve this problem. My program is only sixteen lines long! Follow the directions on the ECE 109P Homepage for compiling and running C programs.
See the Modified Grading Policy for how your weighted score will be computed if you complete this assignment.