Question: Received this feedback for my EllipsoidListMenuApp. Code below. symbol: method readFile(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1161: error: cannot find symbol EllipsoidList actual =

Received this feedback for my EllipsoidListMenuApp. Code below.

symbol: method readFile(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1161: error: cannot find symbol EllipsoidList actual = list.readFile(filename1);

symbol: method readFile(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1176: error: cannot find symbol EllipsoidList actual = list.readFile(serectFilename);

symbol: method readFile(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1190: error: cannot find symbol actual.addEllipsoid("new ellip", 3,4,5);

symbol: method addEllipsoid(String,int,int,int) location: variable actual of type EllipsoidList Project/Proj6Tests.java:1220: error: cannot find symbol Ellipsoid actual = list.findEllipsoid("Ex 1");

symbol: method findEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1233: error: cannot find symbol Ellipsoid actual = list.findEllipsoid("Ex 2");

symbol: method findEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1246: error: cannot find symbol Ellipsoid actual = list.findEllipsoid("Ex 3");

symbol: method findEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1258: error: cannot find symbol Ellipsoid actual = list.findEllipsoid("abcdefg");

symbol: method findEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1271: error: cannot find symbol Ellipsoid actual = list.deleteEllipsoid("Ex 1");

symbol: method deleteEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1297: error: cannot find symbol Ellipsoid actual = list.deleteEllipsoid("Ex 2");

symbol: method deleteEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1322: error: cannot find symbol Ellipsoid actual = list.deleteEllipsoid("Ex 3");

symbol: method deleteEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1346: error: cannot find symbol Ellipsoid actual = list.deleteEllipsoid("abcdefg");

symbol: method deleteEllipsoid(String) location: variable list of type EllipsoidList Project/Proj6Tests.java:1360: error: cannot find symbol Ellipsoid actual = list.editEllipsoid("abcdefg", 1,2,3);

symbol: method editEllipsoid(String,int,int,int) location: variable list of type EllipsoidList Project/Proj6Tests.java:1374: error: cannot find symbol Ellipsoid actual = list.editEllipsoid("ex 1", 9,8,7);

symbol: method editEllipsoid(String,int,int,int) location: variable list of type EllipsoidList Project/Proj6Tests.java:1387: error: cannot find symbol Ellipsoid actual = list.editEllipsoid("ex 2", 6,5,4);

symbol: method editEllipsoid(String,int,int,int) location: variable list of type EllipsoidList Project/Proj6Tests.java:1400: error: cannot find symbol Ellipsoid actual = list.editEllipsoid("ex 3", 9,8,7);

symbol: method editEllipsoid(String,int,int,int) location: variable list of type EllipsoidList

import java.text.DecimalFormat; import java.util.ArrayList;

/** * A program that allows users to create, modify, and view * lists of Ellipsoids. * @author: Ronald Funes * @version: 02/27/2023 * * */

public class EllipsoidList {

private String list; private ArrayList ellipsoidList;

/** * Create a TriangleList object. constructor. * * @param listIn * for listName * @param ellipsoidListIn * for ellipsoidList */ public EllipsoidList(String listIn, ArrayList ellipsoidListIn) { list = listIn; // Create new list ellipsoidList = new ArrayList(); // copy input to instance variable for (Ellipsoid e : ellipsoidListIn) { ellipsoidList.add(e); } }

// methods /** * method String getName() will return list. * * @return the list name */ public String getName() { return list; }

/** * * method int numberOfEllipsoids will return and int representing the number * of Ellipsoid in the list. * @return the list name */ public int numberOfEllipsoids() { return ellipsoidList.size(); }

/** * method double totalVolume returns a doublefor all * Ellipsoid objects in the list. * @return the list name */ public double totalVolume() { double total = 0; // use for each loop for (Ellipsoid e : ellipsoidList) { if (e != null) { total += (e.volume()); } } // return the total volume return total; }

/** * counts the total. * * @return totalSurfaceArea */ public double totalSurfaceArea() { double total = 0; // use for each loop for (Ellipsoid e : ellipsoidList) { if (e != null) { total += (e.surfaceArea()); } } return total; }

/** * finds. * * @return averageVolume */ public double averageVolume() { if (this.numberOfEllipsoids() == 0) { return 0; } else { return this.totalVolume() / this.numberOfEllipsoids(); } }

/** * finds. * * @return averageSurfaceArea */ public double averageSurfaceArea() { if (this.numberOfEllipsoids() == 0) { return 0; } else { return this.totalSurfaceArea() / this.numberOfEllipsoids(); } }

/** * gets a summary of the ellipsoid in the list. * * @return summaryInfo */ public String toString() { String result = getName() + " "; int index = 0; while (index < ellipsoidList.size()) { result += " " + ellipsoidList.get(index) + " "; index++; } return result; }

/** * gets a summary of the ellipsoid in the list. * * @return summaryInfo */

public String summaryInfo() { DecimalFormat decFt = new DecimalFormat("#,##0.###"); String result = ""; result += " "; result += "---- Summary for " + getName() + "----"; result += " Number of Ellipsoid Objects: " + numberOfEllipsoids(); result += " Total Volume: " + decFt.format(totalVolume()) + " cubic units"; result += " Total Surface Area: " + decFt.format(totalSurfaceArea()) + " square units"; result += " Average Volume: " + decFt.format(averageVolume()) + " cubic units"; result += " Average Surface Area: " + decFt.format(averageSurfaceArea()) + " square units"; return result; }

/** * method getList() * to return ellipsoidList. * * * @return ellipsoidList * */ public ArrayList getList() { return ellipsoidList; } }

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!