7. Write a script that gets from the user the radius of a circle and outputs HTML5 text that displays the circle's diame

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

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
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 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!
Post Reply