Thread: Noob needing help with large C assignment

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    2

    Noob needing help with large C assignment

    Hi, I am a complete noob with C programming and was recently assigned a project for my class that is really overwhelming me. Compared to my other assignments, I just have no idea where to start with this one and what to do in it. Any help or advie on where to start or how you would go about doing the program would be greatly appreciated. I don't want to come off as wanting you guys (Or girls) to do the program for me, but rather to help give me a strong push in the right direction. Thanks a bunch!

    Link to the hw requirements
    http://faculty.cooper.edu/sable2/cou..._sum13_pa4.pdf

    Link to the Source Code
    http://faculty.cooper.edu/sable2/cou...tudentsGiven.c

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    What are your efforts so far, in terms of code or thinking - What is the source file for? It seems to be an answer from your tutor.
    Last edited by rogster001; 08-06-2013 at 12:05 PM.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Step 1 on a Large assignment is to start on it early.

    After you start work on this assignment, then start asking smart questions on your problems.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User
    Join Date
    Aug 2013
    Posts
    2

    Reply

    The source code is what I have to update in order to fulfill the requirements set by my teacher. Basically he gave us a code and wants us to update it to do more things.

    So far I have been thinking rather basically. For instance, to meet the first requirement I would just state a new char in the "Struct Student" that would be labelled like

    insert
    Code:
        char letterGrade;
    and then I would use it later on to record the letter grade that the numeric grades computed refer to in the "compute_averages" function

    Then, for the second part of the assignment, I thought to use a do while loop to have the user input a decimal which represents the percentage of the student's average that is comprised of the final exam. Also, I would declare another variable, z, to hold the floating point value. Something like

    insert
    Code:
         do
         {
              printf("Enter the decimal that corresponds to the percentage of the student's average that is      
                           comprised of the final exam grade: ", %f)
              scanf("%f", &z)
         } while( (z < 0) || (z > 1))
    After that, for the second part of the requirement I would use a series of if, else if, and else statements to get a letter grade for the student, like this

    insert
    Code:
         if (z >= 90)
              letterGrade = 'A'
         else if (z >= 80)
              letterGrade = 'B'
         else if (z >= 70)
              letterGrade = 'C'
         else if (z >= 60)
              letterGrade = 'D'
         else
              letterGrade = 'F'
    I honestly don't even know where to start on numbers 3, 4, and 5, as the way he formatted it is throwing me off as to what each part of that code really corresponds to in the final project. Any help you can give on how to just start off on the journey to working on those would be greatly appreciated. Also, sorry for the fact that I couldn't use the online code insert thing but my tablet doesn't seem to allow me to use that feature of the site

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    30
    Paste in the the full code with your updates and any compiling errors and the forum can better assist and attack items individually. Looks like your instructor has done all the fancy coding for you guys already and its just a matter of additions.

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    30
    You're spot on with #1, that's a easy one.

    As for #2...
    I'm unclear about this, but does the user defined fraction between 0 & 1 need to multiply against the final average?

    As for the letterGrade part, remember you need to manipulate the value within the STUDENT structure.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [Noob Needing Help] Not too sure I understand!
    By Kegs in forum C++ Programming
    Replies: 10
    Last Post: 08-10-2012, 02:52 AM
  2. Large number of variables needing global scope
    By megafiddle in forum C Programming
    Replies: 12
    Last Post: 09-08-2011, 02:05 AM
  3. Noob needing help
    By Youthm in forum C Programming
    Replies: 2
    Last Post: 05-15-2011, 10:30 AM
  4. Noob needing some help and insight
    By punktilend in forum C++ Programming
    Replies: 1
    Last Post: 02-24-2009, 04:41 PM
  5. Noob programmer needing help.
    By Gamemaniac00 in forum C++ Programming
    Replies: 3
    Last Post: 11-10-2006, 07:31 AM

Tags for this Thread