Suppose you are given a text file named "Results.txt", in which each line contains a course code, Student's ID, Student's name and the final mark scored by this student in this course. The different fields are separated by the character ",". Write a java program that prompts the user to enter student ID (X) and then read the content of the text file to output (on screen) the Course Code of all courses passed by this student (X). A student will pass the course if his mark is greater or equal to 60. For Example: file img(1).png "Results.txt" ITCS113;20193456;Ali;90 ITCS114;20193456;Ali;55 ITCS254;20181234;Zainab;85 ITCS114;20191001;Fatema;90 ...

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
Java
Suppose you are given a text file named "Results.txt", in which each line contains a course code,
Student's ID, Student's name and the final mark scored by this student in this course. The different
fields are separated by the character ",". Write a java program that prompts the user to enter student
ID (X) and then read the content of the text file to output (on screen) the Course Code of all courses
passed by this student (X). A student will pass the course if his mark is greater or equal to 60.
For Example:
file img(1).png
"Results.txt"
ITCS113;20193456;Ali;90
ITCS114;20193456;Ali;55
ITCS254;20181234;Zainab;85
ITCS114;20191001;Fatema;90
Transcribed Image Text:Suppose you are given a text file named "Results.txt", in which each line contains a course code, Student's ID, Student's name and the final mark scored by this student in this course. The different fields are separated by the character ",". Write a java program that prompts the user to enter student ID (X) and then read the content of the text file to output (on screen) the Course Code of all courses passed by this student (X). A student will pass the course if his mark is greater or equal to 60. For Example: file img(1).png "Results.txt" ITCS113;20193456;Ali;90 ITCS114;20193456;Ali;55 ITCS254;20181234;Zainab;85 ITCS114;20191001;Fatema;90
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Introduction to computer system
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