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

  Determine the outlet area and velocity to compress helium

A steady-flow compressor is used to compress helium from 15 psia and 70oF at the inlet to 200 psia and 600oF at the outlet. The outlet area and velocity are 0.01 ft2 and 10 ft/s

  Find what input of power rating is required for the pump

The average rate of water consumption from this tank is 6.25 kL per day, every day. The farmer refills the tank (overnight) every 14 days, using a pump that takes water from a nearby river. The top of the tank is 53m (vertically) above the level o..

  What will be the approximate temperature of the alloy

Is it possible to have a copper-silver alloy of composition 50 wt% Ag-50 wt% Cu that at equilibrium, consists of α and β phases having mass fractions Wα = 0.60 and Wβ=0.40? If so what will be the approximate temperature of the alloy? If such an a..

  Expresses the relationship for the change in entropy in a

Steam at 10 MPA, 600 C, enters a well insulated turbine operating at steady state and exits at 0.1 bar and a quality of 92%. The volumetric flow rate at the inlet is 0.36 m^3/s. Assuming the kinetic and potential energy effects to be negligible, dete..

  Estimate the draw down at the distance of 64.28m from thep

A 42.43 m think fractured rock artesian aquifer supplies waterto a fully penetraing well. Before pumping began the piezometricsurface in the pumping well was observed to be 70.89m above thebottom confing layer

  Calculate the pore water pressure developed in the specimen

a) Calculate the pore water pressure developed in the specimen at failure.b) What would the deviator stress at failure have been if a CD test had been conducted with the same confining pressure (i.e., 105 kPa)?

  Determine the x-y and z components of reaction at the pin

The member is supported by a pin at A aand a cable BC. If the load at AD is 300 lb, determine the x,y,z components of reaction at the pin A and the tension in cable b c

  What is the minimum allowable speed of rotation

A steel shaft with a diameter of 40mm and length of 1.1m transmits 60hp from an electric motor to a compressor. If the allowable shear stress is 50MPa and the allowable angle of twist is 1.5 degrees

  Calculate and display the time it will take to travel from

Transportation need to evaluate the time spent in traveling from city A to city B. The distance between the two cities is a variable because the macro developed is to be used for other cities. 50% of travel time is done at a speed of 30 miles an

  How many weeks must pass before the likelihood of the lake

A lake has a water level which is used to determine if watering restrictions need to be implemented for the neighboring city. Water levels are measured on a weekly basis, and restrictions are placed if the lake level drops below 1060 ft. Weekly water..

  Calculate the speed of the water relative to the hydrofoil

A two dimensional flow field is defined by u = x^2 - y^2 and v = -2xy. Is the flow rotational or irrotational?A speedboat on hydrofoils is moving at 20 m/s in a freshwater lake

  Speed of the shockwave foamed by the bottleneck

On the two lane carriageways, roadworks restrict the width of both traffic lanes, generating a bottleneck to the traffic flow. The maximum flow per lane on the unobstructed carriageway is 2100 vehicles per hour whilst on the section under repairing t..

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