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
You are here: Home / Topics / C programming

C programming

|

Miscellaneous › Others › C programming

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 1 month 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

  • How to power up two stereo audio amplifiers from a single source of power supply August 11, 2022
  • uc3843 Buck-boost August 11, 2022
  • Drill speed controller fault August 11, 2022
  • Code suggestion from Android Studio. Good? August 11, 2022
  • Nokia 5110 HW in Oshonsoft August 11, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 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