7. Write a script that gets from the user the radius of a circle and outputs HTML5 text that displays the circle's diame
-
answerhappygod
- Site Admin
- Posts: 899604
- 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!