Like Tree5Likes
  • 2 Post By msh
  • 1 Post By manasij7479
  • 1 Post By claudiu
  • 1 Post By iMalc

Problem wiht link list..anyone can help me?

This is a discussion on Problem wiht link list..anyone can help me? within the C Programming forums, part of the General Programming Boards category; Write a complete C program which illustrates the Linked list applications data structures and algorithms that have been stressed throughout ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    3

    Problem wiht link list..anyone can help me?

    Write a complete C program which illustrates the Linked list applications data structures and algorithms that have been stressed throughout the course. The program will read in mid-semester test scores as Main Linked List and produce six (6) outputs:

    1. A list of valid test scores for an assumed mid-semester test score range of 0 to 50.
    2. A list of invalid test scores flagged as Errors and to be deleted from Main Linked List
    3. The arithmetic average of the valid test scores.
    4. The lowest and highest scores
    5. A histogram, giving for each valid score a bar whose length is proportional to the number achieving that score.
    6. The total number of invalid scores.
    Given the following test data to be build as Main Linked List. :
    30 55 27 43 -11 40 23 21 56 88 67 12
    42 11 31 61 45 48 51 82 56 48 37 26

  2. #2
    msh
    msh is offline
    Novice
    Join Date
    Jul 2009
    Posts
    568
    This is not a problem. It's an assignment you're too lazy to get started on.
    Disclaimer: This post shows my ignorance at the time of its making. I claim ownership of but not responsibility for all errors in it. Reference at your own peril.

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    3
    Quote Originally Posted by naldsauza View Post
    write a complete c program which illustrates the linked list applications data structures and algorithms that have been stressed throughout the course. The program will read in mid-semester test scores as main linked list and produce six (6) outputs:

    1. A list of valid test scores for an assumed mid-semester test score range of 0 to 50.
    2. A list of invalid test scores flagged as errors and to be deleted from main linked list
    3. The arithmetic average of the valid test scores.
    4. The lowest and highest scores
    5. A histogram, giving for each valid score a bar whose length is proportional to the number achieving that score.
    6. The total number of invalid scores.
    Given the following test data to be build as main linked list. :
    30 55 27 43 -11 40 23 21 56 88 67 12
    42 11 31 61 45 48 51 82 56 48 37 26

    the problem is, i dont know how to start with.. If anyone who know and want to helps me, plz reply with the algorithm enough no need the code.. But if dont, plz dont use -ve word to show ur -ve attitude..

  4. #4
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,490
    Quote Originally Posted by naldsauza View Post
    Write a complete C program which illustrates the Linked list applications data structures and algorithms that have been stressed throughout the course. The program will read in mid-semester test scores as Main Linked List and.....
    This really fits with
    the problem is, i dont know how to start with.. If anyone who know and want to helps me, plz reply with the algorithm enough no need the code.. But if dont, plz dont use -ve word to show ur -ve attitude.
    It isn't that late to read this.
    rags_to_riches likes this.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  5. #5
    Registered User
    Join Date
    Jul 2011
    Posts
    3
    algorithm means psudo-code.. its not application code..emm

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    The problem is that your subject matter is far too large to be answered in a forum like this. What you need is a complete tutorial review, so you DO know enough to get started. (and hopefully more).

    THEN post back when you run into a specific problem with your code.

    It's like your car won't run. Transmission went out, let's say.

    You don't need a better, more experienced driver. You need a tow to the shop, etc.

    If we have a bit of -ve attitude, it's because we get a lot of -vd questions. You'll have to excuse us.

    This is one of the best tutorials I've seen for pointers:
    http://eternallyconfuzzled.com/tuts/..._linklist.aspx
    Last edited by Adak; 07-02-2011 at 04:25 AM.

  7. #7
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Also, drop the SMS speak if you want anyone to take you seriously mate.
    rags_to_riches likes this.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  8. #8
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,262
    You're not going to get anything from people here on something you haven't started.
    Don't make a forum your first port of call. First you get started and do as much as you can, then come here with specific questions.
    rags_to_riches likes this.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Link List problem
    By peterderijp in forum C Programming
    Replies: 1
    Last Post: 11-05-2010, 11:49 AM
  2. Link List problem
    By Darkinyuasha1 in forum C Programming
    Replies: 2
    Last Post: 05-08-2009, 07:47 PM
  3. Problem in link list
    By Bargi in forum C Programming
    Replies: 2
    Last Post: 07-16-2008, 01:54 AM
  4. Problem with Link List
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 04-24-2002, 11:49 PM
  5. Link list and node problem
    By tom_mk in forum C++ Programming
    Replies: 0
    Last Post: 02-21-2002, 04:18 PM

Tags for this Thread


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