Not using Structures for project

This is a discussion on Not using Structures for project within the C Programming forums, part of the General Programming Boards category; I have to do a project for Programming and he said in quotes "Programming exercise 10.6: the programming project is ...

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    18

    Not using Structures for project

    I have to do a project for Programming and he said in quotes

    "Programming exercise 10.6: the programming project is as described, except do not represent the points using structures.Assume, as known, the ten (x,y)-values corresponding to x=0.0, 0.1, 0.3, 0.45 ..etc and use y-values from the
    function xsin(x); as in (x,y)=(x, xsin(x)) = (0.3, 0.3sin(0.3)).
    Use value n+1=10, so the LaGrange polynomial will be order = 9."

    What does it mean to not represent the points using structures??

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    2,767
    If you are NOT allowed to use structures (keyword struct); to me this implies the use of parallel arrays.
    As in two arrays of the same size; one for the X value and the other for the Y value.

    Tim S.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  3. #3
    Registered User
    Join Date
    Feb 2013
    Posts
    18
    Thanks. Makes sense

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 02-23-2013, 03:37 PM
  2. Problems with Nested Structures and Arrays of Structures
    By Ignoramus in forum C Programming
    Replies: 4
    Last Post: 03-02-2010, 01:24 AM
  3. Structures, passing array of structures to function
    By saahmed in forum C Programming
    Replies: 10
    Last Post: 04-06-2006, 12:06 AM
  4. Replies: 5
    Last Post: 04-11-2002, 12:29 PM
  5. your 11th & 12th grade c++ project or similar project
    By sleepyheadtony in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 01-13-2002, 05:14 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