7. Write a script that gets from the user the radius of a circle and outputs HTML5 text that displays the circle's diame
Posted: Fri May 20, 2022 2:36 pm
7. Write a script that gets from the user the radius of a circle and outputs HTML5 text that displays the circle's diameter, circumference and area. Use the constant value 3.14159 for it. Use the GUI techniques. [Note: You may also use the predefined constant Math.PI for the value of n. This constant is more precise than the value 3.14159. The Math object is defined by Java-Script and provides many common mathematical capabilities.] Use the following formulas (r is the radius): diameter = 2r, circumference = 2tr, area = nr2.