Question: Implement the server - side requirements and then provide code snippets for each function with clear explanations / comments of key statements used. i .
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 number of Laptops sold from the client side, the server should calculate the
sales profit and determine which charge rate to use
iii. Make connection to the database
iv Search the database using the charge code determined and retrieve the appropriate charge rate
v Use the retrieved charge rate to calculate the commission
vi Return to the client the sales profit calculated, the commission rate used, and the commission
value calculated
vii. Close the connection with the database when done
viii. Create a main class, instantiate a Thread object, and start the Thread
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
