Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
In the provided code the main data structure used is an array Here is how the array data structure i...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started