Design interactive program using prewritten methods

Assignment Help Programming Languages
Reference no: EM1350851

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 confi rm 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 avail-able, and display an appropriate message for the user.

Th e user can continue to search for books until he or she enters 3 as the search option.

Reference no: EM1350851

Questions Cloud

Discipline of cognitive psychology : Assess the effects of the decline of behaviorism on the discipline of cognitive psychology.
Determine the minimum number of toll collectors : Oakton River Bridge Case study.  The Oakton River had long been plan an impediment to the development of a certain medium sized metropolitan area in the southeast.
How to make equal angles with the ceiling : suppose that the displacement of your hand is 0.70 m as you throw the ball straight up. How long is the ball is in your hand.
Relationship between the length and width of the rectangle : Describe the shape of the rectangular area by establishing a relationship between the length and width of the rectangle.
Design interactive program using prewritten methods : 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.
Explain why is this option a less expensive way to increase : Explain Why is this option a less expensive way to increase the distribution of her treats
Purposes of internal control system : Summarize the primary purposes of an internal control system. What are the three internal control objectives for financial reporting?
Piagets theory of cognitive development and vygotsky : Synthesize Piaget's theory of cognitive development and Vygotsky's, including in each the important aspects of their theories.
Determine correct statement concerning risk premium : Determine correct statement concerning risk premium and alse find which of the following statements are correct concerning the variance of the annual returns on an investment.

Reviews

Write a Review

Programming Languages Questions & Answers

  Use of various bash commands

Assignment On: This work will require scripting the use of various bash commands and / or small programs that involve directory and file structures.

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

  Design a class-based solution to a problem

To design a class-based solution to a problem using multiple data structures.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  Write pseudocode to accept candy name

Write a pseudocode for the following: A programm to accept a candy name (for exmple, "chocolate-covered blueberries'), price per pound, and number of pounds sold.

  Writing a class

Build a class for a type called Fraction

  Questions on programing problem with the process of analysis

Questions on Programing Problem with the process of analysis and reflection that went on as you developed the project.

  Describe purpose of keyword super in programs

Describe purpose of keyword 'super' in programs

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Program to prompt a user for hourly pay rate

Create program called "calculatePay" which will prompt user for their hourly pay rate.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Solve the programming problem

Solve the programming problem

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd