- 7 Write A Script That Gets From The User The Radius Of A Circle And Outputs Html5 Text That Displays The Circle S Diame 1 (25.85 KiB) Viewed 26 times
7. Write a script that gets from the user the radius of a circle and outputs HTML5 text that displays the circle's diame
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
7. Write a script that gets from the user the radius of a circle and outputs HTML5 text that displays the circle's diame
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.