Question: Please code using Java and show an example that it will run successfully in a JAVA IDE. Code so it is formatted as in the

Please code using Java and show an example that it will run successfully in a JAVA IDE. Code so it is formatted as in the images below. Also please DO NOT use the code from my previous question answered by Anonymous answered this 8 hours later 231 answers. That code is not formatted correctly and does not runs correctly. Please let me know if I have to save the files as one program or separate programs for it to run succcessfully. Please code fresh and not use recycled code.

Please code using Java and show an example that it will run

31. (Loan server) Write a server for a client. The client sends loan informa- tion (annual interest rate, number of years, and loan amount) to the server (see Figure 31.17a). The server computes monthly payment and tot pay- ment, and sends them back to the client (see Figure 31.17b). Name the client Exercise31 01Client and the server Exercise1 01 Server. I Exerase310|Client Annual Interest Rate Number Of Years Loan Amount 3.5 Exercise31 01Server 3 Submit Exercise31 O!Server started at Wed Jul 24 23:39:33 EDT 2013 Connected to a client at Wed Jul 24 23:39:55 EDT 2013 Annual Interest Rate: 3.5 Number of Years: 3 Loan Amount: 5000.0 monthlyPayment: 146.51039863455347 total Payment: 5274.374350843926 5000 Annual Interest Rate: 3.5 Number of Years: 3 Loan Amount: 5000.0 monthlyPayment: 146.5103986345515 total Pa yment: 5274.374350843855 FIGURE 31.17 The client in (a) 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 (b)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!