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

  Subdividing address block among four different customers

The ISP needs to subdivide the address block among four different customers, requiring 29, 28, 27, and 26 hosts respectively.

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Insert a text box after the paragraph and type your name

Create a two column table with a minimum of seven rows. You may add additional rows as needed to hold additional hyperlinks that you feel will be useful to you as you progress through your degree.

  Program to permit company-s clerks to enter employee-s name

Temp Employers wants program which will permit company's clerks to enter employee's name and number of hours employee worked during month.

  Develop a console application that grades a multiple choice

In this assignment, you will redo Assignment 1 using functions and also extend its functionality. Like Assignment 1, you will develop a Console Application that grades a multiple choice test with 10 questions taken by 8 students.

  Write a program that lets the user play the game of rock

Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The user enters his or her choice of rock, paper or scissor.

  Track of position of a point in three-dimensional space

Specify, implement and design a class that can be used to keep track of position of a point in three-dimensional space. For example consider the point drawn at the topof the next coloumn. The point shown there has three coordinates

  Design an application for the homestead furniture store

Design an application for the Homestead Furniture Store that gets sales transaction data, including an account number, customer name, and purchase price.

  create a web page that uses a JavaScript program

Each line, after the first line, must only be output when the user clicks "Ok" in response to the alert.

  Write a program that picks a random number

Extend your guessing game from last week. Write a program that picks a random number from 1-100. Then ask the user to guess a number

  Super call for constructor to allot value of attribute

We have given a super call, which does some work of constructor. Your code must complete constructor by allotting the value of g to gpa attribute.

  Create a class structure flow chartfor yourprogram

Create a class structure,algorithmsand flow chartfor yourprogram, and then do several iterations of tests. You'll turn that document in with the program.

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