Question: Programming Language is php. Write a PHP program to calculate the area of the following geometrical shapes. The formula for calculating area is given. Square:

Write a PHP program to calculate the area of the following geometrical shapes. The formula for calculating area is given. Square: sideside (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
Get step-by-step solutions from verified subject matter experts
