Question
In java please write a complete code that will compile and give the output below. Problem: Write a program to prepare a monthly report for
In java please write a complete code that will compile and give the output below.
Problem: Write a program to prepare a monthly report for a legal clinic. Input consists of a name of the client, name of the attorney, the hours worked by the attorney on the case. The fee charged by the attorney is based on the hours worked. Every attorney has a min number of hours with a specific rate, after the min number of hours there is a percent discount given by the attorney.
Note: A shell has been provided to you. You can deviate from the shell as long as you use methods and you have the exact same output
Note: you need to understand the problem before writing your code. Examine the provide output to find out the details.
Refer to the sample output file provided to you for more details.
Grading policy:
1. Use of methods
2. Proper comments
3. Proper indentation
4. Exact same output as the provided one
5. Code that does not compile will receive zero
6. No hard coding throughout the program.
Heres the shell:
http://www.heypasteit.com/clip/0IJEML
The output:
Edit FoHelo Ihis pnogran genaratas a surnary raport for the ast Les Firn Clients are charged based on the nurber of hours The provided disccunt is offered by cach individual lawyer and it could vary fron onc layer to anather How any clients you have Enter the nac of the client: Mary Enter the hours:5 Enter the base hours: 258 Enter the discount percontagc:(5, 1e, 28, 25,...) 18 Enter the nare of the client: Patel Fnter the nate af the 1ayer 850n Inter the hours65 Enter the base huurs 20 Enter tha F Enter th discount percentoRc:(5, 1e, 28. 25....) 20 Enter the nare of the 1ient ; Jue Enter the nane at the layr: Jack Enter the hours : 89 Fnter the base hours: 15 Lnter the fee for the first 45. houIns:403 Enter the discount percentage:(5, 18, 20, 254 The reprt is rey, Hit e key to vies it. Client, Lenyer Hours ree %Discount Rec Hours Discountel Hours Nay 4.aa 1aO a Patel Json 56. 380.8 20.80 16,00 1764000 loe ack B9.03 480.9e 4.03 45.90 44.00 34896.80 Total Hours Total InconeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started