Write a server for multiple clients. The client sends loan information (annual interest rate, number of years, and loan amount) to the server (see Figure 30.21(b)). The server computes monthly payment and total payment and sends them back to the client.
The client in (b) sends the annual interest rate, number of years, and loan amount to the server and receives the monthly payment and total payment from the server in (a).