Question

Write a program using if- then loop for issuing general books and not reference books in a library

23 Apr 2024
Answer :
Word Count : 536

To create a program for issuing general books (excluding reference books) in a library using an if-then loop, we need to outline the process:

1. Define the list of available books in the library, distinguishing between general books and reference books.
2. Prompt the user to enter the title of the book they want to borrow.
3. Check if the entered book title is a general book or a reference book.
4. If it's a general book, issue the book to the user. If it's a reference book, inform the user that reference books cannot be borrowed.
5. Repeat the process until the user decides to exit.

Here's a Python program implementing the above steps:

```python
# Define the list of available books
library_books = {
  _________ _____ _________ ____ _________ _____.
______ _______ ____ ___ __________ __________ _______ ____ ____.
______ ____ ___ ___ _________ ____ ___ ___ _____.
_____ ____ ______ ________ ___ ____ _____ ___ _____ _______ _________.
____ _______ ______ ______ __________.
_______ _________ ____ ______ ______ _______ _____ _________ ____.
_____ __________ ____ ______ ___ __________ __________.
__________ _______ ____ _____ _____ ___ ____ ___ __________ ___ ________ ________.
_______ __________ _________ ____ ____.
________ _______ ___ _________ _______ ____ __________ ____ __________ __________ ____.
________ _____ ___ ____ _______.
________ _______ _____ _________ _____ _____ _____ ________ ______.
________ ____ ________ _____ _______ ____ _________.
___ ____ ____ ______ _____ ____ ______ ___.
_________ ___ ______ ______ _______ ________.
____ _______ ____ ______ _________ _______ ___.
________ ______ _________ _____ _______.
____ ___ _____ _____ ________ ___ ________ ______ ________.
_______ ____ _____ ________ _________ _________.
______ ________ ______ __________ ___ __________ _____.
______ ______ ______ _____ ______ _________ ______ _____ ________ __________ ______.
_________ _______ _________ _______ _____ ______.
___ _______ __________ ___ _________ _________ ___ __________.
________ __________ __________ _____ _____ ______ ____ _____ _________ _____ _______.
____ ___ _______ _____ __________ ___ ________ ______.
________ __________ ___ _________ _______ _______ __________ _____ _______ ___.
____ ___ _______ ____ _________.
__________ ___ ____ ____ __________ _______ ____.
_________ ___ _________ ____ ________ _____ _________ __________ ____ _____ ____.
___ _______ ____ ________ _____ _______ ________.
___ _______ _________ _________ ____.
__________ ___ ________ __________ _______ ________ _______ _________ ___ __________ _________ ________.
___ _______ _____ ____ _________ __________ ___ _________.
____ _________ ________ ______ _____ ___ _________ ________ ___ ____ _____ ____.
_________ _____ ____ _____ __________.
_____ _________ ______ ____ ___ ______ ________ __________ __________ _______ __________ __________.
____ ___ _______ _________ ___ ____ _____ ______.
___ _____ _______ _____ ________ __________.
______ ________ ________ __________ __________ _________ _________ _______ ___ __________ _____ __________.
___ ______ __________ ________ ____ ____ _________.
_____ _______ ____ _______ _________ ___ _________ ____ ____ ____.
_________ ________ ______ _______ ___ _______ _____.
_________ _____ _________ ___ ____ _________ ________ ______ __________ _____.
____ ________ ________ ____ ______ __________ _______.
________ ____ _________ __________ _____ __________ _____ ____.
_________ ________ ________ _______ ____ __________ _________ _________.
___ _________ ____ ___ ______ ______ ______ _______ ________ _________ ___.
___ _________ _____ ________ _________.
_______ _____ _____ _____ ______ ________.
_______ __________ _________ _______ ______.
____.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a program using if- then loop for issuing general books and not
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support