a) Which data Structure will you chose in order to store these Book ID’s ? Justify your answer b) Does the physical arrangement of books and data structure you chose to store book ID’s have any link with each other? Chose either YES or NO and Give reason why your answer is YES and give reason if your answer is NO c) Write a C/C++ program that saves above ID’s in your chosen data structur

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section13.5: Dynamic Data Structure Allocation
Problem 3E
icon
Related questions
Question

Suppose you works in a library and have the id’s of 12 books as follows

2345 , 125 , 85 , 969 , 789 , 12 , 487 , 66 , 4556 , 48 , 7987 , 412

 

If you need to made a simple program

  1. a) Which data Structure will you chose in order to store these Book ID’s ? Justify your answer
  2. b) Does the physical arrangement of books and data structure you chose to store book ID’s have any link with each other? Chose either YES or NO and Give reason why your answer is YES and give reason if your answer is NO
  3. c) Write a C/C++ program that saves above ID’s in your chosen data structure
  4. d) [Connected with part c] Take integer value as an input that searches from values present in data structure and give output “FOUND” if value matches and, “ DID NOT FOUND” if value didn’t matches, Discuss the searching technique you used with reason

 

 

Example:

Input value: 125

Output: Found

 

Input value: 9

Output: Not Found

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning