Fill This Form To Receive Instant Help
Homework answers / question archive / Write a defining table and a computer program that computes and outputs the volume of a torus with inner radius a and outer radius b
Write a defining table and a computer program that computes and outputs the volume of a torus with inner radius a and outer radius b. A doughnut is an example of a torus. Your program must read the inner radius and outer radius from two text fields and display the volume in a div. The formula for the volume of a torus is v = no(a + b)(a - b)2 where v is the volume, n is the constant pi, a is the inner radius, and b is the outer radius. Your program should allow a user to enter real numbers such as 7.54. If you wish, you may use the following HTML code in your program.