Write a program in c which takes the (x, y) coordinate

Assignment Help Civil Engineering
Reference no: EM13846639

Write a program in C which takes the (x, y) coordinates of three points on the x-y plane as the input and outputs the area of the triangle formed by the three points. More specically, the program prompts the user to enter six float

typed numbers from the keyboard (representing the x and y coordinates of the three points), as shown below:

Input the x-coordinate of the first point: [user enters a float number]

Input the y-coordinate of the first point: [user enters a float number]

Input the x-coordinate of the second point: [user enters a float number]

Input the y-coordinate of the second point: [user enters a float number]

Input the x-coordinate of the third point: [user enters a float number]

Input the y-coordinate of the third point: [user enters a float number]

The program prints the area of the triangle on the terminal and exit

How do I do this assignment?

 

 

Reference no: EM13846639

Questions Cloud

Firm in perfect competition : A firm in a perfectly competitive market has the following total cost function: STC = 20 + 6Q - 1.12Q 2 + 0.09Q3, where Q is the firm's output (in 000s). Market price is $7.
What is happening to total domestic gas production : Where does NSW get most of its natural gas supplies from up to now? What is happening to total domestic gas production in Australia and Describe the structural change that is taking place in the Australian gas market.
A sequence in fasta format consists of a header line : 1. A sequence in FASTA format consists of a header line starting with a ">" sign, followed by a sequence identifier (GenBank Accession number, or clone name), and one or more lines of the sequence itself. Write a Java program to first prompt the user..
Describes how the objectives you wrote address : describes how the objectives you wrote address the characteristics of a basic ELL level and accounts for the theoretical language acquisition principles mentioned in your required reading.
Write a program in c which takes the (x, y) coordinate : Write a program in C which takes the (x, y) coordinates of three points on the x-y plane as the input and outputs the area of the triangle formed by the three points. More specically, the program prompts the user to enter six float typed numbers fro..
Definition of professional communication : One-page single-spaced rationale of your definition of professional communication. Make a cogent argument for a definition of professional communication. Warrant that argument through expert opinion from course readings. Address and respond to counte..
Forward exchange rates and annual interest rates : Suppose that you are given the information about the spot exchange rate, annual interest rates, and the forward exchange rates between the US Dollar against Japanese Yen and Turkish lira at the given dates in Table 2. Suppose that a US investor wi..
What is happening to total domestic gas production : Where does NSW get most of its natural gas supplies from up to now? What is happening to total domestic gas production in Australia and Describe the structural change that is taking place in the Australian gas market.
You are employed as a database administrator : You are employed as a database administrator by a start-up company in Menlo Park, California. The company is developing a new payments system that is attracting a lot of attention from venture capitalists. Customers will be able to process credit car..

Reviews

Write a Review

Civil Engineering Questions & Answers

  Calculate the amount of suspended solids

A sedimentation basin is used to remove suspended solids from a wastewater. The rate of flow of wastewater into the tank is 10 L/s, and the influent concentration of suspended solids is 200 mg/L.

  Compute the ratio of the nominal flexural strength of the

Compute the ratio of the nominal flexural strength of the beam to the maximum service load moment, and compare your findings to the ACI load factors and strength reduction factor.

  Find the station and elevation of the low point of the curve

On a certain highway a -6% grade meets a +2% grade at station 70 + 00, elevation 550.97 ft. An equal tangent vertical curve, 800 ft. long, is to be installed to connect these two grades.

  Determine the volume of water lost

Determine the volume of water lost (in m3) through evaporation during a year from Lake Okeechobee (Florida). Lake Okeechobee has a surface area of 190,000-ha located in a region where the annual rainfall is 1500 mm. The increase in the depth of the l..

  Calculate pressure and piezometric head at free surface

Calculate the pressure, and the piezometric head at the free surface, at both interfaces, and at the tank bottom. Take the elevation datum at the bottom of the tank.

  Explain why the architects requires a deflection limitation

The buildings are single story with a rood line 6 feet above the man-door opening is constructed from clay brick that is 12 inches thick and weighs 115 psf. the opening of the man-doors are 3 feet 4 inches wide.

  Take the casing wall to have an outer diameter

Batteries in a flashlight must be held in electrical contact even though the outer plastic housing expands differently than the battery and terminals. This is accomplished by having a compliant spring compressed as the cover is screwed on the flashli..

  Determine what is kinetic energy of the object at the time

A 6.22-kg object passes through the origin at time t = 0 such that its x component of velocity is 5.45 m/s and its y component of velocity is -2.88 m/s. (a) What is the kinetic energy of the object at this time

  What will be the mass of the rod at the end of 20 mins

A common commercial process for the production of so-called "Electronic Grade Silicon" (EGS) is the Siemens process (see figure below). EGS is of ultra-high purity, enough to be used for fabrication of microchips.

  Determine what diameter pipe would be recommend

A circular concrete pipe (n = 0.012) carries a discharge of 450 cfs with a slope of 0.008 and is designed to run no more than 60% full (by depth). What diameter pipe would you recommend

  Calculate soil moisture using daily precipitation and temp

Calculate soil moisture using daily (or any other scale) precipitation and temperature . Use the Richard's Equation and Darcy's law (Or any theory you like attached to soil moisture content determination ).

  Determine the normal stresses induced in portions ab and bc

A rod consisting of two cylindrical portions AB and BC is restrained at both ends. Portion AB is made of steel (E=29x10^6 psi, α=6.5x10^-6) and portion BC is made of aluminum (E=6.5x10^-6 psi, α=13.3x10^-6).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd