Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help with PHP program: Write a PHP program to calculate the area of the following geometrical shapes. The formula for calculating area is given.
Please help with 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started