Grade Program

This is a discussion on Grade Program within the C Programming forums, part of the General Programming Boards category; I need help making this grade program in c programming. Im using putty vi editor in unix. Write a complete ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    Smile Grade Program

    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

  2. #2
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,831
    Uh huh. Show your work.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,616
    Quote Originally Posted by nonoob View Post
    Uh huh. Show your work.
    He won't! Not his work, at least.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Free program I'm sharing: ConvertEnumToStrings
    By Programmer_P in forum Projects and Job Recruitment
    Replies: 101
    Last Post: 07-18-2010, 12:55 AM
  2. Invalid Output of Minimum and Maximum Value in Array
    By georgio777 in forum C Programming
    Replies: 10
    Last Post: 09-19-2009, 03:17 AM
  3. Replies: 2
    Last Post: 09-16-2009, 06:00 AM
  4. c program help
    By Sleepwalker817 in forum C Programming
    Replies: 4
    Last Post: 03-29-2008, 05:31 AM
  5. Grade distribution program
    By MyTeachersANazi in forum C++ Programming
    Replies: 4
    Last Post: 03-26-2003, 08:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21