Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create pseudocode for the following. Total Clients, Total Hours, Total Hours Bil

ID: 3566179 • Letter: C

Question

Create pseudocode for the following.

Total Clients, Total Hours, Total Hours Billed at $150, Total Hours Billed at 100, and Total Fees. Use a While structure to design the pseudocode to prepare a monthly report for a legal clinic. Input consists of a series of records that contain the name of the clent, name of the atttorney, and hours worked by the attorney on the case. Out put is a montly legal clinic report that lists the client.s name, attorney, hours worked by the attorney on the case, and fee. The fee charged by the attorney is based upon the hours worked. The first 20 hours are charged at the rate of $150.00 per hour. Hours in excess of 20 are charged at the rate of $100.00 per hour. After all records have been processed the final totals are to be prined. Include the total clients, total hours billed, total hours billed at 150, total hours billed at 100, and total fees. End when the hours worked input is (). Be sure to include a statement to make sure that hours does not equal zero at the start of the process.

Really stuck on this one. Thanks.

Explanation / Answer

The following is the required pseudo code uses while loop to prepare the monthly report of the legal clinic. It calculates the fee based on the number of hours worked by the attorney. If the number of hours is greater than 20, the first 20 hours are charged at $150 per hour and rest at $100 per hour. It displays all required information specified in the question. Get back to me if you want any clarification.

Pseudo code:

begin:

     Declaration

            num totalClients, totalHours150, totalHours100, totalFee, fee, hoursWorked

            string clientName, attorneyName     

      boolean flag = true

totalClients = 0

totalHours150 = 0

totalHours100 =0

totalFee = 0

//read input

while (flag)

read clientName

read attorneyName

read hoursWorked

//check the hours worked. If hours worked is 0, then break the loop

if (hoursWorked ==0)

            flag = false

else

            totalClients = totalClients + 1

//display the information of each cleint

            write

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote