Create an application named StudentsStanding.java that allows you to enter student data that consists of an ID number, first name, last name, and grade point average. Have the program accept input until ZZZ is entered for the ID number. Depending on whether the student’s grade point average is at least 2.0, output each record either to a file of students in good standing or those on academic probation. Create an application named StudentsStanding2.java that displays each record in the two files created in the StudentsStanding application. Display a heading to introduce the list produced from each file. For each record, display the ID number, first name, last name, grade point average, and the amount by which the grade point average exceeds or falls short of the 2.0 cutoff. For example, the output should be formatted as follows (note that the student info may vary): Here is the code so far: import java.nio.file.*; import java.io.*; import static java.nio.file.StandardOpenOption.*; import java.util.Scanner; import java.nio.channels.FileChannel; public class StudentsStanding { public static void main(String[] args) { Path goodFile = Paths.get("/root/sandbox/StudentsGoodStanding.txt"); Path probFile = Paths.get("/root/sandbox/StudentsAcademicProbation.txt"); } }
-
Create an application named StudentsStanding.java that allows you to enter student data that consists of an ID number, first name, last name, and grade point average. Have the program accept input until ZZZ is entered for the ID number. Depending on whether the student’s grade point average is at least 2.0, output each record either to a file of students in good standing or those on academic probation.
-
Create an application named StudentsStanding2.java that displays each record in the two files created in the StudentsStanding application. Display a heading to introduce the list produced from each file. For each record, display the ID number, first name, last name, grade point average, and the amount by which the grade point average exceeds or falls short of the 2.0 cutoff. For example, the output should be formatted as follows (note that the student info may vary):
Here is the code so far:
import java.nio.file.*;import java.io.*;import static java.nio.file.StandardOpenOption.*;import java.util.Scanner;import java.nio.channels.FileChannel;public class StudentsStanding {public static void main(String[] args) {Path goodFile = Paths.get("/root/sandbox/StudentsGoodStanding.txt");Path probFile = Paths.get("/root/sandbox/StudentsAcademicProbation.txt");}}
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images