Thread: Not using Structures for project

  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
    4,183
    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.
    "...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

  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-05-2006, 11:06 PM
  4. Replies: 5
    Last Post: 04-11-2002, 11:29 AM
  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