signment #5.
Chapter16: Graphics
Section: Chapter Questions
Problem 1DE
Related questions
Question
100%
Assignment #5.
![Assignment #5 on files
UOB student is expecting to graduate if his/her GPA is greater than or
equal to 2.0 and he/she is in the fourth year in the B.Sc. program.
Write a java program that read from a file ("Students.txt") unknown
number of student information. Then the program should output the
number of expected to graduate students on Screen.
The file contains student id (long), year number (either 1 or 2 or 3 or 4)
and GPA (float) for unknown number of students separated by comma.
Students.txt:
111, 4,2.5
222, 3, 3.1
333,4,1.9
444, 4, 3.6
...
...
Output on screen:
The number of expected to graduate students is: 2](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5eb4d58b-be31-4117-ba18-c9973d5b9600%2F7cf300f0-b5e8-4dd9-ad4e-c407d7611673%2Ffh08f7i_processed.png&w=3840&q=75)
Transcribed Image Text:Assignment #5 on files
UOB student is expecting to graduate if his/her GPA is greater than or
equal to 2.0 and he/she is in the fourth year in the B.Sc. program.
Write a java program that read from a file ("Students.txt") unknown
number of student information. Then the program should output the
number of expected to graduate students on Screen.
The file contains student id (long), year number (either 1 or 2 or 3 or 4)
and GPA (float) for unknown number of students separated by comma.
Students.txt:
111, 4,2.5
222, 3, 3.1
333,4,1.9
444, 4, 3.6
...
...
Output on screen:
The number of expected to graduate students is: 2
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,