Pearson Institute of Higher Education Enrolment At the Pearson Institute of Higher Education, the degrees offered have a number of years in which a student is expected to complete the degree. On average, the number of years for a degree is 4. If the student takes more than 6 years to complete the degree, they are at risk to be expelled from the institution or asked to repeat the degree altogether. Pearson management has contacted you to write a program to be used to check which students are behind their expected time of degree completion. You have been provided with a text file containing a list of all the students enrolled at the institution with the number of years they have been enrolled. It is structured as follows: Sample Data – PIHEstudents.txt Sheunesu Makura, 6 Thando Mandela, 4 Palesa Ramodike, 3 Mariaane Van Der Walt, 5 Xolisa Gqeberha, 4 Create a Java application based on the scenario you have been provided above. The application must read the names and the years from the PIHEstudents.txt file. The application should then proceed to write the names and the years of all the students who are enrolled for more than four years into a file called Fourplusstudents.txt. There should be one student on each line. The data must be separated by commas. Ensure that your program handles basic exceptions.
Pearson Institute of Higher Education Enrolment
At the Pearson Institute of Higher Education, the degrees offered have a number of years in which a student is expected to complete the degree. On average, the number of years for a degree is 4. If the
student takes more than 6 years to complete the degree, they are at risk to be expelled from the institution or asked to repeat the degree altogether. Pearson management has contacted you to write a
Sample Data – PIHEstudents.txt
Sheunesu Makura, 6
Thando Mandela, 4
Palesa Ramodike, 3
Mariaane Van Der Walt, 5
Xolisa Gqeberha, 4
Create a Java application based on the scenario you have been provided above. The application must read the names and the years from the PIHEstudents.txt file. The application should then proceed to write the names and the years of all the students who are enrolled for more than
four years into a file called Fourplusstudents.txt. There should be one student on each line. The data must be separated by commas. Ensure that your program handles basic exceptions.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images