EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / C programming

C programming

|

Miscellaneous › Others › C programming

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 12 months ago by SHAH DISHANT H..
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 31, 2014 at 12:17 pm #3101
    viju
    Participant

     Write C program for, we are given four co-ordinate points find the area bound by these four points.

    June 17, 2014 at 3:55 pm #11832
    SHAH DISHANT H.
    Participant

    Hi,

     

    We can not calcluate area without knowing shape.

     

    AM BHATT sir has explaines is true for a rectangle or square.

     

    For irregular shapes we have to perform integration wrt x and y.

     

    But that is not possible with basic controllers.

     

     

    June 19, 2014 at 1:32 am #11794
    Ashutosh Bhatt
    Participant

    from 4 co-ordinates find out x-distance and y-distance

    like if given 4 co-ordinates on 4 corners are (x,y) (x1,y1) (x2,y2) and (x3,y3)

    x-distance = x1-x or y1-y

    y-distance = x2-x or y2-y

     

    now for area you need l and b so

    l = x-distance

    b = y-distance

     

    and area is = l*b

     

    thats all

     

    for experiment purpose this can be done. 

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Why can't I breadboard this oscillator? June 15, 2025
  • Failure of polypropylene motor-run capacitors June 14, 2025
  • a point I can't understand about the sinc expression June 14, 2025
  • Quick advice on remote car starter? June 14, 2025
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz June 14, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise