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

Please explain how to do the following using //detailed notes. 6. The Barking Lo

ID: 3745567 • Letter: P

Question

Please explain how to do the following using //detailed notes.

6. The Barking Lot is a dog day care center. Design a flowchart or pseudocode for the following:

a. A program that accepts data for an ID number of a dog's owner, and the name, breed, age, and weight of the dog. Display a bill containing all the input data as well as the weekly day care fee, which is $55 for dogs under 15 pounds, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, and $125 for dogs over 80 pounds.

b. A program that continuously accepts dogs' data until a sentinel value is entered, and displays billing data for each dog.

9. Amanda Cho, a supervisor in a retail clothing store, wants to acknowledge high-achieving salespeople. Design a flowchart or pseudocode for the following:

a. A program that continuously accepts each salesperson's first and last names, the number of shifts worked in a month, number of transactions completed this month, and the dollar value of those transactions. Display each salesperson's name with a productivity score, which is computed by first dividing dollars by transactions and dividing the result by shifts worked. Display three asterisks after the productivity score if it is 50 or higher.

b. A program that accepts each salesperson's data and displays the name and a bonus amount. The bonuses will be distributed as follows:

If the productivity score is 30 or less, the bonus is $25.

If the productivity score is 31 or more and less than 80, the bonus is $50.

If the productivity score is 80 or more and less than 200, the bonus is $100.

If the productivity score is 200 or higher, the bonus is $200.

Explanation / Answer

Important Note: Only 1 question is advised to be attempted as per Chegg policy if 2 unrelated questions are posted. I hope you understand the issue and won't give a negative feedback. However, you can complete the 2nd pseudocode understanding the above-posted pseudocode, you need to just change certain variable declarations and if conditions, that's all.

The Barking Lot Pseudocode
  module main()  {      declare ID as integer      declare name as string      declare breed as string      declare age as integer      declare weight as double        do      {          ID = input owner id          name = input dog's name          breed = input dog's breed          age = input dog's age          weight = input dog's weight          if(ID is not a sentinel value)              call displayBillModule(pass ID, name, breed, age, weight as parameter)      }      while(ID is not a sentinel value);  }    module displayBillModule(accept ID, name, breed, age, weight as parameter)  {      declare bill = 0      check if weight < 15          bill = 55      check if weight >= 15 and weight <= 30          bill = 75      check if weight >= 31 and weight <= 80          bill = 105      check if weight > 80          bill = 125      display Owner's ID      display Dog's name      display Dog's breed      display Dos's age      display Dog's weight      display Dog's bill  }