A librarian wants to create shelf codes for each book in a library archive.
Table 1 shows some of the books.
| bookID | title | author |
|---|---|---|
| B1 | DRACULA | STOKER |
| B2 | FRANKENSTEIN | SHELLEY |
| B3 | MACBETH | SHAKESPEARE |
A shelf code is made up of the:
bookIDtitleauthor's surnameFor example:
Write a Python program to generate the shelf code for a book.
The program should:
bookID, title and authorshelfCodeYou should use indentation as appropriate, meaningful variable name(s), and valid Python syntax in your answer.
89 exam-style questions on AQA GCSE Computer Science String handling operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.