Task 1. Client-Side Program (25 marks)
Implement the client-side requirements (non-graphical user interface) and then provide code snippets for each function with clear explanations/comments of key statements used. The client-side would enter the Bill Number, the Customer Type, and the consumption via keyboard. The client will then forward the Customer Type and consumption 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.
Request connection to the server.
Accept and forward the necessary data to the server.
Receive and display the results from the server.
Close the connection after use.
Create a main class called custClient, define the main method, creation of client object, and start the thread.