Hi A small help:i need cprograms for these

This is a discussion on Hi A small help:i need cprograms for these within the C Programming forums, part of the General Programming Boards category; Hi friends..i am new to c and to this group,,hope y guys will help me in sorting out my problem..... ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    16

    Hi A small help:i need cprograms for these

    Hi friends..i am new to c and to this group,,hope y guys will help me in sorting out my problem.....



    i need ur help in writing a c code for drawing and calculating the surface area and volume of the 3-dimensional figures obtained by four coordinates (0,0),(0,y1),(0,x2),(0,z3) and let us assume the shape to be a sphere.
    Last edited by pmk123; 03-05-2006 at 07:59 AM.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    Ok, so what have you tried so far?

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    16
    i wrote in 2-d..

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    > 3-dimensional figures obtained by four coordinates (0,0),(x1,y1),(x2,y2),(x3,y3)
    Don't you need some 'z' dimension if you're working in 3D ?

  5. #5
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    its good that if u show us a bit code of your attempt. before that do u know the formuals to calculate the suface of any given shape and the volume for any given figure??. if not u got look for it now. hint

    ssharish2005

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    > four coordinates (0,0),(0,y1),(0,x2),(0,z3) and let us assume the shape to be a sphere.
    The only way you end up with a sphere is if x == y == z
    Once you know the radius of your sphere, the calculations are easily obtained from any math reference.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to split long programe in small files
    By umeshjaviya in forum C Programming
    Replies: 11
    Last Post: 04-15-2008, 02:45 AM
  2. Small HTTP proxy
    By zacs7 in forum Networking/Device Communication
    Replies: 8
    Last Post: 09-11-2007, 03:53 AM
  3. want to make this small program...
    By psycho88 in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2005, 01:05 AM
  4. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  5. yhatzee, small straight
    By uglyjack in forum C++ Programming
    Replies: 2
    Last Post: 06-13-2002, 03:09 AM

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