Stacks

profilegaoxiaone

 

You are in charge of the new book list.  Your boss has given you a list of books, with one new book to be placed on the shelves every month.  You should design and print the schedule for the next six months.


Create a list of 12 books.  Put them into a stack, and remove them from the stack, assigning the first book to December, the next to November, and so on.  Since some books may not have arrived yet, create an alternate for every month.


Programming:  Use a stack to store the books.  Create the books.  Push the books onto the stack, printing the book (title and author) as you push it.    Pop the books from the stack, listing them along with their months and labeling the alternate selection as Alternate.


Data fields are:  Book name, author, month

    • 6 years ago
    • 10
    Answer(2)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      AnswerDocument.docx

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      MyBooksprogram.docx