signment #5.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
icon
Concept explainers
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
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
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Data Dictionary
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT