Question: EXPLAIN WHICH DATA STRUCTURES USED IN THIS CODE (LIKE ARRAY, LINKED LIST, HEAP ETC) AND EXPLAIN ABOUT CODE. CAN YOU EXPLAIN WHICH DATA STRUCTURES USED
EXPLAIN WHICH DATA STRUCTURES USED IN THIS CODE (LIKE ARRAY, LINKED LIST, HEAP ETC) AND EXPLAIN ABOUT CODE.
CAN YOU EXPLAIN WHICH DATA STRUCTURES USED IN THIS CODE (LIKE ARRAY, LINKED LIST, HEAP ETC) AND EXPLAIN ABOUT CODE. DATA STRUCTERS PART IS IMPORTANT ALSO EXPLANING LIKE PRESENTATION
import java.io. IOException; import java.util.Scanner; import org.apache.poi.openxml4j.exceptions. InvalidFormatException; import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel. XSSFSheet; import org.apache.poi.xssf.usermodel. XSSFWorkbook; class DataStore { } String student; String attributes; int expectedScore; int predictedScore; @Override public String toString() { return student + "\t\t" + attributes + "\t\t" + expected Score + "\t\t" + predictedScore; } public class DataStorel { public static void main(String args[]) throws IOException, InvalidFormatException { DataStore std [] = new DataStore [100]; int i = 0; int totalRow = 3; Scanner sc = new Scanner (System.in); System.out.print("Enter number of rows : "); totalRow= sc.nextInt (); XSSFWorkbook wb =new XSSFWorkbook (new File("/Users/ozgurkulac/Desktop/SEN2212 PREDICTED DATASET.xlsx")); XSSFSheet sheet = wb.getSheet At (0); if (totalRow > sheet.getLastRowNum()) { System.out.println ("The Last Row Number : " +sheet.getLastRowNum()); totalRow = sheet.getLastRowNum(); } for (int k = 1; k
Step by Step Solution
There are 3 Steps involved in it
In the provided code the main data structure used is an array Here is how the array data structure i... View full answer
Get step-by-step solutions from verified subject matter experts
