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

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Reducing the average memory access time

Suppose that increasing the line size to 128 bytes increases the H to 0.97. Does this reduce the average memory access time?

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Program to find real solutions

Method, which determines whether value of "b squared" - 4ac is negative. If negative, code then  prints out message "no real solutions" and returns from method.

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Build a student record managing system application

Build a student record managing system application

  Writing script for fahrenheit in celsius temperature

Use functions to write script which enables user to enter either Fahrenheit temperature and display Celsius equivalent or enter Celsius temperature.

  Create child processes

Create child processes

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

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