14. The information services Department at the springfield Library has created m
ID: 3634180 • Letter: 1
Question
14. The information services Department at the springfield Library has created methods with the following signatures:-----------------------------------------------------------------------
Signature Description
num getNumber (num high, num low) Prompts the user for a number. Continues
to prompt until the number falls between
designated high and low limits. Returns a
valid number.
string getCharacter() Prompts the user for a character string
and returns the entered string.
num lookUpISBN(string title) Accepts the title of a book and returns
the ISBN. Returns a 0 if the book cannot
be found.
string lookUpTitle(num isbn) Accepts the ISBN of a book and returns a
title. Returns a space character if the
book cannot be found.
string isBookAvailable(num isbn) Accepts an ISBN, searches the library
database, and returns a "Y" or "N"
indicating wether the book is currently
available.
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 valid, 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 wether the title is correct.
*If the user has entered a valid ISBN or a title that matches a valid ISBN, check wether 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.
Each of the five (5) method signatures should be used in your program. You do NOT need to write the pseudocode/flowchart for any of the five (5) method signatures. Write the pseudocode or draw the flowchart that incorporates all of the requirements and calls all of the five (5) methods.
• 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 the exercise 14a.
Explanation / Answer
http://wikisend.com/download/550202/Signatures.txt]Signatures.txt answer is in this link download it
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.