Question: 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:

Signature num getNumber(num high, num low) string getCharacter () num lookUpISBN (string title) string

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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Logic & Design Questions!