1. Engineering
  2. Computer Science
  3. import javaxswingjoptionpane public class getdata public static double getdoublestring...

Question: import javaxswingjoptionpane public class getdata public static double getdoublestring...

Question details

2. Write Java program which wim store, m L aid pm As part of the solution, identify the following classes The class Stadent must have the ollowing ficls -Namc Address, Id Name is a user defined class comprising of a minimm in Daie is a psedefined class in the jnautil package The field Courses is a sct of so moee than five (5)ting supplied are assamed to be valid and contais no Hank spce d number a string variable that uniqucly ienifics a malcn The class Student must be capable of alang ewe. The class Admissions stores and manipulatos the information (student record). Because the list of students p dynamically, it is best to une a dynamic data sanctare sch as the ArrayList to dore the information This class should do Remove slidest from the lisL which would fir,ต invoke loc kg rocond to resove you mast supply the ld number as the sanch You are to peovide a sest class that coondinates the actiitics of the Creating stadest ebjects and adding them to the dasabne of the classes outlined above, by dmissions object Dropping a cours Removing a stadent from the database Displaying n of cumently regislered studlen Displaying list of all ณdents th¡ต were dropped from the one Display the output in a scrollable rane, and must he omaitod as ld number 123456 Name Williams, Jon 525 Hatsfield Road Tallahassce, FL 3339 Date: Counes September 5,2009 CoP1804, MATH2050, ENG3300 STUDENT WHO ld number: 56890 Name: Robes, Kay Anne Datc: Septamber 5, 2009 WERE DROPPED Nole: Use he class GetData provided to ener the alia om t The method display shows below shows how to disglay informaton in a scnollable pane, Listing 1.8 of est shows how the class GetData and the method display are implemeiod within a po
import javax.swing.JOptionPane;

public class GetData
{
public static double getDouble(String s)
{
return Double.parseDouble(getWord(s));
}
public static int getInt(String s)
{
return Integer.parseInt(getWord(s));
}
public static String getWord(String s)
{
return JOptionPane.showInputDialog(s);
}
}
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution