Question: Intro to java Part ll: Maximizing the Area of Two Circles (2 points) Maximize the total area of Two simply outputs to the user the
Part ll: Maximizing the Area of Two Circles (2 points) Maximize the total area of Two simply outputs to the user the maximum area of two circles drawn Sample Output: $ java FinalCoding Circles given gridSize. Your program does not actually draw two circles, it within a grid sprogram will output the area of two circles given the grid size How wide is your square grid going to be? Thi The total area of two circles in your grid is: x:x Program Source Code: import java.uti1.Scanner class FinalCoding static Scanner keyboard new Scanner (System.in) public static void main (String[1 args) int gridsize; System.out.println("This program will output the area of two circles given the grid size") System.out.print("How wide is your square grid going to be? "; gridsize keyboard.nextInt) keyboard.nextLine ) // xxx should be replaced with the correct computation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
