1. 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 least file of

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

This program has two parts. Per bartleby policy, I will post them separatly. Please go ahead and answer part 2, i already know part 1. THANKS!

1. 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.
2. 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):
Transcribed Image Text:1. 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. 2. 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):
This is a two-part question. I am posting them
separately per Bartleby policy. Please help me with
number 2. I already asked number one. Number 2
Program should start off like this:
import java.nio.file.*;
import java.io.*;
import static java.nio.file.Standardopenoption. *;
public class StudentsStanding2 {
public static void main(String[] args) {
Path goodFile = Paths.get("/root/sandbox/StudentsGoodStanding.txt");
Path probFile = Paths.get("/root/sandbox/StudentsAcademicProbation.txt");
// Write your code here
}
public static void display(String s) {
// Write your code here
}
}
Transcribed Image Text:This is a two-part question. I am posting them separately per Bartleby policy. Please help me with number 2. I already asked number one. Number 2 Program should start off like this: import java.nio.file.*; import java.io.*; import static java.nio.file.Standardopenoption. *; public class StudentsStanding2 { public static void main(String[] args) { Path goodFile = Paths.get("/root/sandbox/StudentsGoodStanding.txt"); Path probFile = Paths.get("/root/sandbox/StudentsAcademicProbation.txt"); // Write your code here } public static void display(String s) { // Write your code here } }
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Knowledge Booster
Public key encryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning