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.

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

I posted this separately as this is 2 parts. I already posted part 2, please answer part 1. Thanks

## Instructions for Creating Student Applications

### Task 1: Develop StudentsStanding.java

Create an application named **StudentsStanding.java** to manage student data. This program should collect the following information for each student:
- ID number
- First name
- Last name
- Grade point average (GPA)

**Steps:**
- Input student data until "ZZZ" is entered as an ID number.
- Check each student's GPA:
  - If GPA is **2.0 or higher**, classify the student as in "Good Standing."
  - If GPA is below **2.0**, classify the student as on "Academic Probation."

### Task 2: Develop StudentsStanding2.java

Create a second application named **StudentsStanding2.java** that reads and displays the data from the files produced by **StudentsStanding.java**.

**Steps:**
- Show a heading for each list type: "Probationary Standing" or "Good Standing."
- For each student's record, display:
  - ID number
  - First name
  - Last name
  - GPA
  - Difference from the 2.0 GPA threshold

**Example Output:**

**Probationary Standing**
```
ID #10   Mike   Green   GPA: 1.9   -0.1 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.7 from 2.0 cutoff
```

Ensure the output depicts if the GPA exceeds or is short of the 2.0 cutoff. Note that the actual student data may vary.
Transcribed Image Text:## Instructions for Creating Student Applications ### Task 1: Develop StudentsStanding.java Create an application named **StudentsStanding.java** to manage student data. This program should collect the following information for each student: - ID number - First name - Last name - Grade point average (GPA) **Steps:** - Input student data until "ZZZ" is entered as an ID number. - Check each student's GPA: - If GPA is **2.0 or higher**, classify the student as in "Good Standing." - If GPA is below **2.0**, classify the student as on "Academic Probation." ### Task 2: Develop StudentsStanding2.java Create a second application named **StudentsStanding2.java** that reads and displays the data from the files produced by **StudentsStanding.java**. **Steps:** - Show a heading for each list type: "Probationary Standing" or "Good Standing." - For each student's record, display: - ID number - First name - Last name - GPA - Difference from the 2.0 GPA threshold **Example Output:** **Probationary Standing** ``` ID #10 Mike Green GPA: 1.9 -0.1 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.7 from 2.0 cutoff ``` Ensure the output depicts if the GPA exceeds or is short of the 2.0 cutoff. Note that the actual student data may vary.
### Code Explanation and Transcription

This Java program, `StudentsStanding.java`, is designed to manage student standing data by interacting with file paths. Below is a detailed transcription of the code:

```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
    }
}
```

### Code Breakdown

1. **Imports**:
   - `java.nio.file.*`: Provides classes for file and directory paths.
   - `java.io.*`: Provides for system input and output through data streams, serialization, and the file system.
   - `static java.nio.file.StandardOpenOption.*`: Contains options for file open operations.
   - `java.util.Scanner`: A simple text scanner which can parse primitive types and strings.
   - `java.nio.channels.FileChannel`: Supports operations on file channels.

2. **Main Class**: 
   - `StudentsStanding`: The primary class of this Java program.

3. **Main Method**:
   - `public static void main(String[] args)`: The entry point of the Java program.
   - **File Paths**:
     - `goodFile`: Represents the file path for students in good standing (`StudentsGoodStanding.txt`).
     - `probFile`: Represents the file path for students on academic probation (`StudentsAcademicProbation.txt`).

4. **Comment**:
   - `// Write your code here`: A placeholder for further code development, where data processing and file operations can be implemented.

### Potential Usage

This structure can be used to develop a program that handles student status records, reading from or writing to specified text files according to their academic standing.
Transcribed Image Text:### Code Explanation and Transcription This Java program, `StudentsStanding.java`, is designed to manage student standing data by interacting with file paths. Below is a detailed transcription of the code: ```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 } } ``` ### Code Breakdown 1. **Imports**: - `java.nio.file.*`: Provides classes for file and directory paths. - `java.io.*`: Provides for system input and output through data streams, serialization, and the file system. - `static java.nio.file.StandardOpenOption.*`: Contains options for file open operations. - `java.util.Scanner`: A simple text scanner which can parse primitive types and strings. - `java.nio.channels.FileChannel`: Supports operations on file channels. 2. **Main Class**: - `StudentsStanding`: The primary class of this Java program. 3. **Main Method**: - `public static void main(String[] args)`: The entry point of the Java program. - **File Paths**: - `goodFile`: Represents the file path for students in good standing (`StudentsGoodStanding.txt`). - `probFile`: Represents the file path for students on academic probation (`StudentsAcademicProbation.txt`). 4. **Comment**: - `// Write your code here`: A placeholder for further code development, where data processing and file operations can be implemented. ### Potential Usage This structure can be used to develop a program that handles student status records, reading from or writing to specified text files according to their academic standing.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

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