Question: Rewrite Programming Exercise 33.1 using RMI. You need to define a remote interface for computing monthly payment and total payment. Data from Programming Exercise 33.1
Rewrite Programming Exercise 33.1 using RMI. You need to define a remote interface for computing monthly payment and total payment.
Data from Programming Exercise 33.1
Write a server for a client. The client sends loan information (annual interest rate, number of years, and loan amount) to the server (see Figure 33.17a). The server computes monthly payment and total payment, and sends them back to the client (see Figure 33.17b). Name the client Exercise33_01Client and the server Exercise33_01Server.

Exercise33 01Client Annual Interest Rate 3.5 Number Of Years 3 Submit Exercise33_01Server Loan Amount 5000 Exercise33 01Server started at Fri Mar 11 19:22:49 EST 2016 Connected to a client at Fri Mar 11 19:23:12 EST 2016 Annual Interest Rate: 3.5 Annual Interest Rate: 3.5 Number of Years: 3 Number of Years: 3 Loan Amount: 5000.0 Loan Amount: 5000.0 monthlyPayment: 146.5103986345515 totalPayment: 5274.374350843855 monthlyPayment: 146.5103986345515 totalPayment: 5274.374350843855 () (b)
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
Instructions on how to run this exercise 1 Step RMI registry from the class directory for this exercise Cexercisestart rmiregistry 2 Register Server with RMIRegistry Cexercisestart java Exercise4002Re... View full answer
Get step-by-step solutions from verified subject matter experts
