Using the Server-Client model I have to make a program that shows grades info of a student.By giving the lesson name the program returns that lesson grade.Moreover it should provide the overall grade per (6 months session) and general overall grade.
The Client program can send these:
Grade request for a lesson
Overall grade per (6 months session) request
General overall grade request
Request for joining new lesson
After getting back response from the Server,the Client program prints the “answers” to the default “exit” (System.Out)
The Server program accepts Client requests and returns grade info,which are in a .txt file.Every lesson corresponds to a line on that text file,with that form:
<lesson name> , <number of 6 months session that the lesson belongs> , <grade>
Example: Maths , 2 , 10
Finally in case of an error request Server program should return an error message to the Clients program.
I am using eclipse and I know I have to make 3 files:1) the protocol (thinking of tcp for safety in data transfer) 2)The Client program and 3)the Server program.
Can anyone give me a similar example or suggest me anything useful for my task?I am newbie and the only program I have managed to get work is a simple date-time Server-Client program..
Thanks for your time
Yours sincerely Leo