Write the following two methods: computeDiameter: This method accepts the radius (r) of a circle, and returns its diameter (2*r; radius = 7.5). Declare all variables used here & initialize radius:...



  1. Write the following two methods:



  • computeDiameter: This method accepts the radius (r) of a circle, and returns its diameter (2*r; radius = 7.5).



Declare all variables used here & initialize radius:




Show method call:




Write method code here:
















  1. displayData: This method accepts two arguments: radius & diameter.  The output should have appropriate messages on the screen.



Show method call:




Write method code here:











Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here