Question: PHP and HTML I need help creating the function posted below. I am encouraged not to use any PHP print or echo calls if possible.

PHP and HTML

I need help creating the function posted below. I am encouraged not to use any PHP print or echo calls if possible. Use HTML and embedded PHP expressions to achieve the output. Thanks for any help!!

PHP and HTML I need help creating the function posted below. I

Create a page called isosceles.php that reads in from a file called triangle.txt and creates an array of IsoscelesTriangles. You must create IsoscelesTriangle objects here and therefore must create an IsoscelesTriangle class. The triangles.txt file will be formatted such that each line contains 1 triangle. The first element of the line will be the base, the second element will be the height. The base and height will be separated by a space. You can assume the input file is properly formatted but cannot assume a minimum or maximum number of triangles. Once you have read in all triangles Output the triangle with the largest area. a. b. Output the triangle with the largest perimeter (these are isosceles triangles, you can use geometry to figure out the lengths of the other 2 sides) c. Output the triangle with the smallest area. d. Output the triangle with the smallest perimeter You may want to create auxilary functions to accomplish these tasks. When "outputting a triangle," you can just output the appropriate characteristic (i.e. largest area) along with the base and height of the triangle with that characteristic. E.g., Largest area triangle Base: 20 Height: 30 Area: 300

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!