Question: You are tasked with creating an inventory system for a small library. The system will use parallel arrays to store book titles ( an array

You are tasked with creating an inventory system for a small library. The system will use parallel arrays to store book titles (an array of strings) and their corresponding stock numbers (an array of integers). The program should perform the following tasks: 1. Allow the user to input 5 book titles and their corresponding stock numbers. 2. Display a list of all books with their corresponding stock numbers. 3. Display the total number of books in stock across all titles 4. Implement a simple search feature where the user can input a book title, and the program will return the stock number or display a message if the bookisnotfound.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Questions!