Write a script that inputs from the user the radius of a circle and outputs HTML text that displays the circle’s diameter, circumference and area. Use the constant value 3.14159 for p. Use the GUI techniques shown in Fig. 13.6. [Note: You may also use the predefined constant Math.PI for the value of p. This constant is more precise than the value 3.14159. The Math object is defined by JavaScript and provides many common mathematical capabilities.] Use the following formulas (r is the radius): diameter = 2r, circumference = 2pr, area = pr 2.
What will be an ideal response?
```
1
2
3
4
5
6
7
8