当前位置:天才代写 > JAVA代写,java代考-JAVA作业代写免费Moss检测 > 北美java代写 Create a program that prompts for a student’s name and student ID#

北美java代写 Create a program that prompts for a student’s name and student ID#

2018-11-11 08:00 星期日 所属: JAVA代写,java代考-JAVA作业代写免费Moss检测 浏览:945

北美java代写 Each time a Student is created, it is added to the List in such a way that the List remains sorted by Student’s last name.

Create a program that prompts for a student’s name and student ID#.

 


Program will

  – add name and id to a file  

– continually prompt and add until user chooses to end adding names

  – have a menu that:

–  displays current roster

 – display will be sorted (you should change your code from earlier to sort the list and

   THEN write to the file)

–  add students (repeatedly prompt for name/id until user chooses to stop)

–  find students (account for ID and for name (display name and ID when found)

  – for name, if they pass in, for example, last name only, display ALL students that

    contain that last name)

–  remove students (account for ID and for name)

–  quit (you will be calling a method here that writes the ArrayList to the file)

  

北美java代写
北美java代写

Each time a Student is created, it is added to the List in such a way that the List remains sorted by Student’s last name.  If multiple students have the same last name, then they’re sorted by first name.  If multiple students have BOTH the same last AND first names, they are sorted by ID.

 

Create a class, Student, which has-A String for the last name and first name (Last, First) and a String for the ID.

 

Create a class called IdCompleter, which has-A List of Students

 

– load the file into a List

– create a completeID method, which adds zeroes to the front of the ID IF there are less than 6 digits in the ID

– modify the file to include the updated IDs.

 

********************************************************************

Use BufferedReader/FileReader class (or Scanner, like James Bond) to read from a file

 and PrintWriter/FileWriter class  to write to a file

(LOOK THEM UP)

********************************************************************

 

Idiot proof your code (re-prompt if enter a string instead of an int for id,

        enter an id with too many numbers, etc)

 

 

最先出自天才代写 java代写归档 java代写服务
合作:幽灵代写
 

天才代写-代写联系方式