Compute the area of a pentagon

Assignment Help C/C++ Programming
Reference no: EM13713112

Program- Write a C++ program to compute the area of a pentagon given by the coordinates (x,y) of its five vertices. (hint use a function to evaluate the length between two points, and a function to evaluate the area of a three-point triangle.

Evaluate the area of a pentagon given by the coordinates - Please make sure it compiles and write the full program to receive full credit. Thank you so much for your help.

 

Reference no: EM13713112

Questions Cloud

Write a program that can be used to convert meters : Write a program that can be used to convert meters to feet and inches. Allow the user to enter a metric meter value in a method.
Find all irreducible polynomials : The best approach for doing this is to consider all polynomials of lower degree and check whether they are factors. Please note that we only consider monic irreducible polynomials, i.e., polynomials with the highest coefficient equal to one.
What is the focal length of the lens : An illuminated test object is placed on an optical bench and a screen is placed 60 cm away. What is the focal length of the lens.
Evaluate in gf polynomial : Evaluate in GF(2^8): (x^4+x+1)/(x^7+x^6+x^3+x^2), where the irreducible polynomial is the one used by AES, P(x)=x^8+x^4+x^3+x+1.
Compute the area of a pentagon : Evaluate the area of a pentagon given by the coordinates - Please make sure it compiles and write the full program to receive full credit. Thank you so much for your help.
Export a list of properties for all services : Display a list of all services that are sorted by Status are displayed by groups in a Table - Export a list of properties for all services, sorted by Status
Find the charge on the capacitor : Consider a series RC circuit for which R = 3.0 MΩ, C = 10.0 µF, and ε= 29 V. Find the charge on the capacitor 10 s after the switch is closed.
Prepare a crows foot erd : Prepare a Crows Foot ERD using a specialization hierarchy if appropriate.
Prepare a function called perfect : Prepare a function called perfect(NUM) that determines if parameter NUM is a perfect number. Use this function in a program that determines and prints all the perfect numbers between 1 and 1000.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function that takes an integer array

1. Write a function that takes an integer array and the array's size as parameters. The function will check if the array is sorted. If it is, it will return a 1. If it is not sorted it will return 0. The function should not  sort the array.

  Function alter with two parms passed by reference

Write a function alter with two parms passed by reference: x and y. alter changes the value of x to x+y and changes the value of y to x*y. Write a main function to read in two integers, print the two integers, call the function alter using the two..

  Prepare a program that uses at least two functions that can

prepare a program that uses at least two functions that can be called from your main. this program is a number game

  Write a program that takes data a line at a time

Write a program that takes data a line at a time and reverses the words of the line

  Write a program using one while loop

Write a program using one while loop that will read in a sequence of integers guaranteed to be within the inclusive range of 0 through 99,999 from the user

  Calculates the average of those numbers

Write a C program which takes n number of element from user (where, n is specified by user), stores data in an array and calculates the average of those numbers. Output of the program should look like this;

  Write the copy-array procedure by a function

Write the C++ statement that dynamically creates an array of 10 components of type int and num contains the base address of the array

  Write a menu driven program for an online beef

Write a menu driven program for an online beef distribution company. There are 8 different

  Determining the volume of the unit sphere

Write a C program for determining the volume of the unit sphere by the Monte Carlo Method      \(x^{2}+ y^{2} + z^{2} 0, y > 0, z > 0.\)    : This is what I have so far, but it's not working.

  Write a program that uses joptionpanes to perform

For example, if the distance of travel is 30 kilometers, the time of travel is 2 hours, then the speed is 30/2 = 15 (kilometers per hour).

  Modify the payroll program

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked.

  Need to convert this c code to mips

You need to convert this C code to MIPS - The subsequent is a sample output (user input is 2): Enter an integer: 2 The count of the integers that are greater than 2 is: 3 You have to assure the requirements specific in the instruction.

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