Question: Please help with this for PHP program: Write a PHP program to calculate the area of the following geometrical shapes. The formula for calculating area

Please help with this for PHP program:

Write a PHP program to calculate the area of the following geometrical shapes. The formula for calculating area is given.

  • Square: side * side (b) Rectangle: length * width, (c) Parallelogram: base * height (d)Triangle: base * height / 2

(e) Circle: Pi * radius * radius.

Create three text boxes and a button. In the first textbox user types a string, say Rectangle, read the text box and identify the string. In the next two boxes user types the two values, say sides. Calculate the area using the corresponding formula and display the result as shown:

The area of Triangle/Rectangle/circle is xx square inches

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!