Write a full program that asks the user to input six value

Assignment Help Programming Languages
Reference no: EM132115484

Problem 1: Area of triangle

Write a full program that asks the user to input six value that represents the x and y coordinates for three points (x1, y1), (x2, y2), (x3, y3). The three points represent a triangle's corner. Use these values to calculate the area of this triangle, then display the result. The formula for computing the area of a triangle is

SideLength = The square root of the following (x2 - x1)2 + (y2 - y1)2

s = (side1 + side2 + side3) / 2

Area = The square root of the following (s (s - side1)(s - side2)(s - side3) ).

Sample run...

Enter x-coord for the first point: 1.5

Enter y-coord for the first point: -3.4

Enter x-coord for the second point: 4.6

Enter y-coord for the second point: 5

Enter x-coord for the third points: 9.5

Enter y-coord for the third points: -3.4

The area of the triangle is 33.6

Reference no: EM132115484

Questions Cloud

About developing the emotional qualities of yourself : How do you feel about developing the emotional qualities of yourself and other people in an organization as a way to be an effective leader?
Specialized informed inputs : As the company will collect "specialized informed inputs" to test the health impact of the drug, what would be the appropriate research design for this study?
Parents of kindergarten age children : A company is considering an on-site kindergarten facility but before taking further steps, it wants to get the reactions of four groups to the idea:
Why would companies chose to commit fraud : With as many regulations as there are, why would companies chose to commit fraud? VW was recently caught doing this? Are the stakes worth the risk?
Write a full program that asks the user to input six value : Write a full program that asks the user to input six value that represents the x and y coordinates for three points (x1, y1), (x2, y2), (x3, y3).
Calculate the direct material used during the year : The following information for the jimmy dean T-Shirt Company, as of December 31, 20XX, is provided. Calculate the direct material used during the year
What is the height of the building : Write a full program that uses the given data above (these are fixed data, so there is no need to ask the user for them) to calculate the height of the building
Prepare journal entries to record company income tax expense : Prepare a reconciliation between the income tax rate applied to the accounting income before tax and the income tax expense for 2015
Analyze a budget of an institution of higher education : Analyze a Budget of an Institution of Higher Education. What does this institution's budget say about its strategic priorities?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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