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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

This program requires you to write two codes. I will ask them separately per Bartleby Policy. Please go ahead and answer number 1, thank you. 

1. **Create an application named StudentsStanding.java**
   - This application allows you to enter student data consisting of:
     - ID number
     - First name
     - Last name
     - Grade point average (GPA)
   - The program will accept input until "ZZZ" is entered for the ID number.
   - Based on the student's GPA:
     - If the GPA is **at least 2.0**, the record is output to a file of students in good standing.
     - Otherwise, it is output to a file of students on academic probation.

2. **Create an application named StudentsStanding2.java**
   - This application displays each record from the two files created in the StudentsStanding application.
   - Display a heading for each list produced from the files.
   - For each record, display:
     - ID number
     - First name
     - Last name
     - GPA
     - The amount by which the GPA exceeds or falls short of the 2.0 cutoff.
   - Example format:
     ```
     (Note: the student info may vary)
     ```
Transcribed Image Text:1. **Create an application named StudentsStanding.java** - This application allows you to enter student data consisting of: - ID number - First name - Last name - Grade point average (GPA) - The program will accept input until "ZZZ" is entered for the ID number. - Based on the student's GPA: - If the GPA is **at least 2.0**, the record is output to a file of students in good standing. - Otherwise, it is output to a file of students on academic probation. 2. **Create an application named StudentsStanding2.java** - This application displays each record from the two files created in the StudentsStanding application. - Display a heading for each list produced from the files. - For each record, display: - ID number - First name - Last name - GPA - The amount by which the GPA exceeds or falls short of the 2.0 cutoff. - Example format: ``` (Note: the student info may vary) ```
This is a two-part question. I am posting them separately per Bartleby policy. Please help me with number 1 first. Number 1 Program should start off like this:

```java
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");

        // Write your code here
    }
}
```

This snippet provides the starting framework for managing file paths and importing necessary Java libraries to process files. The main class is `StudentsStanding`, and the main method initializes two paths for different student standing files. The comment indicates where additional code should be added to complete the functionality.
Transcribed Image Text:This is a two-part question. I am posting them separately per Bartleby policy. Please help me with number 1 first. Number 1 Program should start off like this: ```java 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"); // Write your code here } } ``` This snippet provides the starting framework for managing file paths and importing necessary Java libraries to process files. The main class is `StudentsStanding`, and the main method initializes two paths for different student standing files. The comment indicates where additional code should be added to complete the functionality.
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
Linux
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education