I need help making this grade program in c programming. Im using putty vi editor in unix.
Write a complete C program, including two functios,
that will do the following:
1) The main program will repeatedly prompt the user
to enter a student id,his/her current number of
credits completed so far,the number of credits
the student is taking this semester, and the number
of credits needed to graduate and it will read
these 4 values.
2) Then the main program will call a function called
UPDATE_INFO.
3) The function UPDATE_INFO will receive three parameters:
the number of credits completed so far,the number of
credits the student is taking this semester,and the
number of credits needed to graduate.The function will
do two things:update the number of credits completed so
far by adding to it the number ofcredits he/she is
taking this semester and update the number of credits
needed to graduate by subtracting from it the number of
credits he/she is taking this semester.
4) Then the main program will call a function called
PRINT_DATA
5) The function PRINT_DATA will receive three parameters:
the student id,the updated number of credits completed,
and the updated number of credits needed to graduate.
This function will print all the information received.
6) Your program should stop the repetition when the user
enters a 0 for the student id.
7) At the end, program should also print the number of
students processed.
8) And also the very first line of the output screen
should display your name and college student ID#.
SAMPLE RUN:
Enter the student id or 0 to stop: 1234
Enter the credits completed: 35
The credits needed to graduate: 25
This semester's credits: 12
=====================================
Student id: 1234
Credits completed: 47
Credits needed to gtaduate: 13
====================================
Enter the student id or 0 to stop: 0
Total number of students processed: 1
--------------------------------------------------------------------------------
Note:Make sure your program runs perfectly
in UNIX System