I have an assignment due Thursday morning and I cannot figure this out for the life of me. If someone could please help with this it would be very much appreciated! Here's the problem:
1. Supply the C source code on a thumb drive, 3.5" diskette, or CD.
2. Label the disk with:
a. Your name(s)
b. CSC 120
c. Group number
d. Your e-mail address.
3. Name your program main.C
4. At the top of the program, place a comment header containing:
a. Your name(s)
b. CSC 120
c. Group number
d. Your e-mail address
e. Program 2
5. Properly comment the program.
6. Only turn in a program that will compile without errors. A program that has compile
errors will not be graded.
7. Make sure there are no errors on the thumb drive, diskette, or CD. If a program cannot be
compiled or executed because of disk errors, the program will not be graded.
8. Write a C program that will continuously prompt for and read integers between 0 and 100
inclusive. The program will read these numbers and store them into an array called
grades. The array grades will have a size of 10. The program will stop prompting for
and reading integers when 10 integers have been read or when the last integer was less
than 0 or greater than 100. After the last valid integer is read, the program will then sum
all of the entered integers located in the array grades. Do not sum the numbers as they
are read into the program. After the sum is calculated, the program will calculate the
integer average of the grades. Finally, the program will print all of the grades, the sum,
the count and the average of the entered grades. RUN THE SAMPLE PROGRAM TO
SEE HOW IT SHOULD WORK.
9. Do not use any GOTO's.



LinkBack URL
About LinkBacks


