Question
In a server machine, there are three files; F1.txt: this file contains the name of students separated by comma. F2.txt: this file contains the cgpa
F1.txt: this file contains the name of students separated by comma.
F2.txt: this file contains the cgpa of students separated by comma
F3.txt: this file contains the enrollment number of students separated by comma
Entries of all the file are in order means, if the first entry of F1.txt is Amit Kumar, first entry of cgpa is 8.0 and first entry of enrollment number is 201970 its means Amit Kumars enrollment number is 201970 and his cgpa is 8.0
a. Write a client server program in java wherein a client knows the name and locations of files and would like to find the name and cgpa of any student by enrollment number.
b. Write a client program which copies all three files from server to client and sort the content of file F3.txt based on enrolment number and be ensure that all others files (F1.txt and F2.txt must be sorted accordingly e.g : Suppose in sorted F3.txt file, the first entry of enrollment is 201975, it must ensure that the first entry of F1.txt file is the name of student whose enrollment is 201975 and first entry of F2.txt file is the cgpa of the student whose enrollment is 201975)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started