Question: USE JAVAFX TO COMPLETE THIS PROGRAM OR DON'T DO IT AT ALL! Java Project: Mutli-Thread Server Problem Description: Loan server ) Use JavaFX to write
USE JAVAFX TO COMPLETE THIS PROGRAM OR DON'T DO IT AT ALL!
Java Project: Mutli-Thread Server
Problem Description:
Loan server) Use JavaFX to 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 (see Figure 30.21(a)). Name the client Exercise30_1Client and the server Exercise30_1Server.


(a) (b)
Figure 30.21
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).
Source code:
Two .java files named PExercise30_01Server.java and PExercise30_01Client.java
Show transcribed image text
Exercise30 1Server xercise30 1Server started at Wed Jul 18 15:49:01 EDT 2007 Starting thread for client 1 at Wed Jul 18 15:49:12 EDT 2007 Client 1's host name is localhost Client 1's IP Address is 127.0.0.1 Annual Interest Rate: 3.5 Number of Years: 3 Loan Amount: 5000.0 monthlyPayment: 146.5103986345515 totalPayment 146.5103986345515 Exercise30 1Client Annual Interest Rate Number Of Years Loan Amount Annual Interest Rate: 3.5 Number of Years: 3 Loan Amount: 5000.0 3.5 3 Submit 5000 monthlyPayment: 146.5103986345515 totalPayment: 146.5103986345515
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
