Question: Chakura is sitting at a table in a bookstore, attending her book signing. Customers are standing in line waiting for her to sign their copy
Chakura is sitting at a table in a bookstore, attending her book signing. Customers are standing in line waiting for her to sign their copy of her book. However, it is possible that some customers in line may not have a book; they are in line simply to meet her. It’s also possible that some customers may have more than one book for her to sign. Write an appropriate algorithm using only the instructions listed in Figure 8-23.

accept the book from the customer close the book end repeat end repeat open the front cover of the book place the book on the table repeat while (the customer has a booke that needs signing) repeat while (there are customers in line) return the book to the customer sign your name on the first page thank the customer Figure 8-23
Step by Step Solution
3.42 Rating (158 Votes )
There are 3 Steps involved in it
repeat while there are customers in line repeat while the cust... View full answer
Get step-by-step solutions from verified subject matter experts
