Problem

Enable Automatic Lookup The cashier function currently asks the user to enter the ISBN...

Enable Automatic Lookup

The cashier function currently asks the user to enter the ISBN number, title, and price of the book being purchased. Modify the function so that once the user enters the ISBN number, it automatically looks up the book title and price. It can do so bs searching for the ISBN number in the ISBN array, and then pulling the title from the title array and the price from the retail array.

If the function cannot locate the ISBN number in the ISBN array, it should display a message indicating so. It then should ask the user if he or she wants to re-enter Ilk number and let the user enter that number again.

Once a book's data has been retrieved, the function should check the Qty array to determine whether there are enough copies in stock to fill the order. If so, the function should subtract the number of copies being purchased from the amount in the arras;. If there aren't enough copies in stock, the function should display a message indicating so, and then return to the main menu.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT