The Information Services Department at the Springfield Library has created methods with the following signatures: a. Design an interactive program that does the following, using
The Information Services Department at the Springfield Library has created methods with the following signatures:
a. Design an interactive program that does the following, using the prewritten methods whenever they are appropriate.Â
- Prompt the user for and read a library card number, which must be between 1000 and 9999.
- Prompt the user for and read a search option-1 to search for a book by ISBN, 2 to search for a book by title, and 3 to quit. If the entry is invalid, repeat the request.
- While the user does not enter 3, prompt for an ISBN or title based on the user's previous selection. If the user enters an ISBN, get and display the book's title and ask the user to enter a "Y" or "N" to confirm whether the title is correct.
- If the user has entered a valid ISBN or a title that matches a valid ISBN, check whether the book is available, and display an appropriate message for the user.
- The user can continue to search for books until he or she enters 3 as the search option.
b. Develop the logic that implements each of the methods in Exercise 14a.
Signature num getNumber(num high, num low) string getCharacter () num lookUpISBN (string title) string lookUpTitle(num isbn) string isBookAvailable (num isbn) Description Prompts the user for a number, and continues to prompt until the number falls between designated high and low limits; returns a valid number Prompts the user for a character string and returns the entered string Accepts the title of a book and returns the ISBN; returns a 0 if the book cannot be found Accepts the ISBN of a book and returns a title; returns a space character if the book cannot be found Accepts an ISBN, searches the library database, and returns "Y" or "N" indicating whether the book is currently available
Step by Step Solution
3.26 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Ill create a sample implementation for part a in Python which should provide a template for how you might code this in a realworld scenario def main p... View full answer

Get step-by-step solutions from verified subject matter experts
100% Satisfaction Guaranteed-or Get a Refund!
Step: 2Unlock detailed examples and clear explanations to master concepts

Step: 3Unlock to practice, ask and learn with real-world examples

See step-by-step solutions with expert insights and AI powered tools for academic success
-
Access 30 Million+ textbook solutions.
-
Ask unlimited questions from AI Tutors.
-
Order free textbooks.
-
100% Satisfaction Guaranteed-or Get a Refund!
Claim Your Hoodie Now!

Study Smart with AI Flashcards
Access a vast library of flashcards, create your own, and experience a game-changing transformation in how you learn and retain knowledge
Explore Flashcards