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

  What is the temperature of the vapor exiting the valve in c

Ammonia vapor flows through a valve. It enters the valve at a pressure of 8 bar and a temperature of 120C and after going through a throttling process it exits at a pressure of 3.5 bar.

  The mechanical properties of aluminum may be improved

The mechanical properties of aluminum may be improved by incoporating fine particles of lauminum oxide (al2O3) Given that the moduli of electricity of this material are respectively 69GPa and 393 GPa plot modulus

  Determine the maximum normal strain developed in the board

The man has a mass of 65kg and stands motionless at the end of the diving board. If the board has the cross section, determine the maximum normal strain developed in the board. The modulus of elasticity for the material is E = 117GPa

  Draw the mohr circle for this soils element locate the pole

A certain element of soil is subject to a mean normal stress of 420 kpa and a deviator stress of 280 kpa. The major principal plane is rotated 30 degrees counterclockwise from horizontal.

  Estimate the overall dimensions

Provide a reasonable design for a 99.4% efficient ESP treating 30,000 m^3/min of gas. The dust has a resistivity of 7.1 (10)^10 ohm-cm. Specify the total plate area, channel width, number and size of plates

  Probelm relating to fire a bullet

A bullet is fired from a height of 150m at a velocity of 300kmph at an angle of 35 upward. Neglecting air resistance. Find: a) total time of flight b) horizontal range

  Determine the most efficient cross section with a bedslope

An open channel with a trapezoidal configuration with side batters 1V:3H is to be designed to carry 1.0m^3/s with a bedslope of 0.0065. The channel is lined with concrete with manning's n of 0.011.

  Estimate the design capacity of the pile group

A pile group consist of four piles in cohesive soil. Each pile's diameter is 0.4 m, and center to center spacing is 1.2 m. The ultimate capacity of each pile is 300 kN. Estimate the design capacity of the pile group, using a factor of safety of 2

  Determine the required slab thickness of subgrade reaction

the reliability is to be 95%, the overall standard deviation is 0.4, the drainage coefficient is 0.9, delta PSI is 1.7 ( with TSI of 2.5), and the load transfer coefficient is 3.2. the modulus of subgrade reaction is 200 lb/in^3.

  Calculate available water capacity

given bulk density as 1300kg/cubic meter and field capacity as 22% by weight and permanent wilting point as 10% by weight calculate available water capacity.

  Compute the bearing pressure at each corner of the footing

that acts at a 45 degree angle from the side of the footing (it acts diagonally across the top of the footing) determine whether the resultant force acts within the kern. If it does, then compute the bearing pressure at each corner of the footing.

  Determine the rate of superelevation on the c

A curved section of a two-lane highway measured in the field was found to be 22 feet wide and have an elevation difference of 1.37 feet between the outside and inside edges of the pavement

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