Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 2 . Client - Side Program ( 2 5 marks ) Implement the client - side requirements ( non - graphical user interface )
Task ClientSide Program
marks
Implement the clientside requirements nongraphical user interface and then provide code snippets for each function with clear explanationscomments of key statements used.
The clientside would accept the Student id The client will then forward the data to the server. Include input field validation wherever possible
i Create a thread using extending thread class or implementing a runnable interface and implement a run method.
ii Request connection to the server.
ill. Accept and forward the necessary data to the server. iv Receive and display the results from the server.
v Close the connection after use.
Task Serverside program
marks
Implement the serverside requirements and then provide code snippets for each function with clear explanationscomments of key statements used.
i Create a thread using extending thread class or implementing a runnable interface and implement a run method.
ii After receiving the data from the client side, the server should make a connection to the database.
Search the database using the data to retrieve the record. iv Calculate the total marks of the student.
v Calculate the CGPA of the student based on the criteria given below:
Avg : CGPA
Avg and Avg: CGPA
Avg and Avg: CGPA
MECAMOTEM
Page of
Advanced Programming COMP SPRING CWASSMGT All QP
Avg and Avg: CGPA
Avg: CGPA is not applicable
vi Calculate the fees to be paid after the discount based on the choice monthlyhalfyearlyyearly
Note that the fees has to be assumed by the student. Any value can be taken.
vii. viii.
Return to the client the student id student name, total marks, CGPA, fees after discount.
Close the connection with the database when done.
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