Question: fill in the code below import java.util.ArrayList; public class ObjectCalculator { public static void main(String args []) { ArrayList objects = new ArrayList ();//Create a

fill in the code below

fill in the code below import java.util.ArrayList; public class ObjectCalculator { public

import java.util.ArrayList; public class ObjectCalculator { public static void main(String args []) { ArrayList objects = new ArrayList();//Create a Scanner to read input from the keyboard//[Add code here]//Prompt the user for a radius, get the radius from//the keyboard, and add the circle to the list of objects.//[Add code here]//Prompt the user for a side length for an equilateral triangle.//Create an equilateral triangle with that side length and//add it to the list of objects.//[Add code here]//Prompt the user for the width and height of a rectangle.//Create a rectangle with that width and height and add it//to the list of objects.//[Add code here]//Write a for loop that will print out all of the objects//in the list, along with their attributes (radius for circle,//width and height for rectangle, and side length for//equilateral triangle).//[Add code here]//Write code that will calculate and print the total perimeter//and total area of all the objects in the list.//[Add code here]}}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!