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

solve the problem in simple languages e, develo Using p Include standard documen

ID: 3743153 • Letter: S

Question

solve the problem in simple languages

e, develo Using p Include standard documentation and comments, and epad rithm in a file named recyclingCalculator.txt in Not CASE ST Hands-On Activity 1-2 Brianna Watt, a consultant doing business as Watt program to create an invoice for works on a project for five days before sending an invoice down the number of hours worked on each day and needs that asks for these amounts, totals them, and multiplies th by her standard rate of $30 per hour. The invoice should include Brianna's business name, the client's business name of hours worked, the rate, and the total amount billed. The inforne At the e progra This c Gives, wantsa nsulting services. Norma invoice She wteThe real wh , the total tion will be displayed onscreen. Using pseudocode, develop an algorithm to solve this problem. Include standard documentation and comments, and save your alg rithm in a file named consultingInvoice.txt in Notepad

Explanation / Answer

Function calculateInvoice(briena_business_name)

BEGIN

   

    print(‘Enter the clients business name : ’)

   

client_business_name = get user input

    // store the total no of hours worked in 5 days

    total_hours = 0

    for i = 1 to 5

    BEGIN

        Print(‘Enter the no of days worked on day ’ , I , ‘ : ’)

         hours = get user input

         // add the no of hours worked on current day to

         // total_hours

         total_hours = total_hours + hours

    END

   

    // calculate the total amount to be charged

    total_amount = total_hours * 30

    print(‘Brienas business name : ’ , briena_business_name)

    print(‘Clients business name : ’ , client_business_name)

    print(‘Total hours worked : ’ , total_hours)

    print(‘Rate charged : $30 / hour’)

    print(‘Total Amount : $’ , total_amount)

END