Click here to Skip to main content
16,005,222 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
A law firm handles cases of two categories I.e. either minor or major. Each and every case is assigned a lawyer. The case is either open or closed. Before a case is closed, the lawyer can either win it or lose. For each case, the client should pay an amount that should be set by the law firm. The amount paid for a minor case costs the client ¾ of the amount for major cases. If a case is lost, the firm reduces the client’s pay by 10% the price for a major case. The firm is trying to evaluate the lawyers’ performance through the following criteria.
1. For every major case assigned, the lawyer gets 3 points
2. For every minor case assigned, the lawyer gets 5 points
3. For every case lost, the lawyer loses 4 points
4. For every case won. The lawyer gains 4 points
Write a java program that will enable the firm to enter the amount of money clients are supposed to pay for the major cases. The system should enable the firm to register lawyers, register new cases, register clients, close the cases that are either won or lost, and assign lawyers to cases. The program should display the following on request
1. Show how many cases were lost and how many were won
2. The best and worst performing lawyer
3. Display the amount of money received from all the closed cases
4. For a given lawyer, how much money will was generated from all his closed cases
5. How much money the firm has lost through losing cases
Posted

Don't listen to them, I'll start you off and then you just need to fill in the blanks:

Java
package kibuule.legal;

public class LawFirm {

   public static void main(String[] args) {
      // code goes here
   }
}
 
Share this answer
 
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
 
Share this answer
 
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900