Question: java program Object Oriented Programing GIC Lab 1 Objective: In this lab we are going to practice two tasks together: 1- Using 2D aray 2-
Object Oriented Programing GIC Lab 1 Objective: In this lab we are going to practice two tasks together: 1- Using 2D aray 2- Reading and writing to a text file in Java Write a java program that solves the following problem using 2-dimensional arrays and I/O to a text file: Suppose we have a bunch of circles and we would like to find the area of each one: Create a 2D anay3[3] that store the radius (double) Read the radius (1) from the user then store them in the array (you should read 9 different radii) Calculate the area of the circle using this formula: A- Need to use PI value (1) Store the areas in another 2D arrak (double) Write tie radius and areas in a text file (circle_area txt) Submit your code and your text file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
