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

I need help writing the loop in pseudocode code for the following: The Vernon Hi

ID: 3861612 • Letter: I

Question

I need help writing the loop in pseudocode code for the following: The Vernon Hills Mail Order Company often sends multiple packages per order. For each customer order, output a mailing label for each box to be mailed. The mailing labels contain the customer’s complete name and address, along with a box number in the form Box 9 of 9. For example, an order that requires three boxes produces three labels: Box 1 of 3, Box 2 of 3, and Box 3 of 3. Design an application that reads records that contain a customer’s title (for example, Mrs.), first name, last name, street address, city, state, zip code, and number of boxes. The application must read the records until eof is encountered and produce enough mailing labels for each order.

Explanation / Answer

Pseudocode:

while(eof()):

      line = readline()

      n = number_of_boxes

      print(first name, last name, street address, city, state, zip code)

      for i in range(1:n):                   //for loop prints labels for the boxes

            print "Box ", i ," of ", n