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.

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

Since this is a 2 part question, I will ask them separately per Bartleby policy. Can you go ahead and do Part 1 please. 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):
Probationary Standing
ID #10 Mike Green GPA: 1.9
-0.10000000000000009 from 2.0 cutoff
Good Standing
ID #100 Jill Green GPA: 2.0
0.0 from 2.0 cutoff
ID #50
Jane
Doe GPA: 3.7
1.7000000000000002 from 2.0 cutoff
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): Probationary Standing ID #10 Mike Green GPA: 1.9 -0.10000000000000009 from 2.0 cutoff Good Standing ID #100 Jill Green GPA: 2.0 0.0 from 2.0 cutoff ID #50 Jane Doe GPA: 3.7 1.7000000000000002 from 2.0 cutoff
StudentsStanding.java StudentsStanding2.ja. +
1 import java.nio.file.*;
2 import java.io.*;
3 import static java.nio.file.StandardopenOption.*;
4 import java.util.Scanner;
5 import java.nio.channels.FileChannel;
6 public class Studentsstanding {
7
public static void main(String[] args) {
8
Path goodFile = Paths.get("/root/sandbox/StudentsGoodStanding.txt");
9.
Path probFile = Paths.get("/root/sandbox/StudentsAcademicProbation.txt");
10
// Write your code here
11
12
}
13 }
14
Transcribed Image Text:StudentsStanding.java StudentsStanding2.ja. + 1 import java.nio.file.*; 2 import java.io.*; 3 import static java.nio.file.StandardopenOption.*; 4 import java.util.Scanner; 5 import java.nio.channels.FileChannel; 6 public class Studentsstanding { 7 public static void main(String[] args) { 8 Path goodFile = Paths.get("/root/sandbox/StudentsGoodStanding.txt"); 9. Path probFile = Paths.get("/root/sandbox/StudentsAcademicProbation.txt"); 10 // Write your code here 11 12 } 13 } 14
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Maintenance
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