Question: In this assignment, you implement a system for storing the personal information of stu- dents and teachers of a school in a comma-separated values (csv)
In this assignment, you implement a system for storing the personal information of stu- dents and teachers of a school in a comma-separated values (csv) file 1 Problem Specification information of individuals from the console and store it in different rows of the output .csv In order to implement the system, you need to write a java program that gets the persoal file. 1.1 Input Format User enters personal information of n students and teachers using the command line in the following format: Position, Name, StudentID, TeacherlD, Phone Position2 Name StudentID, TeacherlD2 Phone Positions Names StudentIDs TeacherlDs Phones Position, Name, StudentID, TeacherlD, Phone Please note that the first line contains only an integer counting the number of lines In each of the n given input lines, . Position must be one of the following three strings "student", "teacher", or TA" . Name must be a string of two words separated by a single comma only. following the first line. StudentID and TeacherlD must be a string of 5 digits . Phone is a string of 10 digits. If the user enters an individual information in a wrong format, the method controlling the standard input stream must throw an exception. In order to handle such exception, the program should ask the user to re-enter the individual information that was previously entered in a wrong format. Your program must consider and handle other exceptional inputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
