Object Oriented Programming Laboratory (OOP)


 Object Oriented Programming Laboratory
  (OOP) 2020 - 2021
πŸ’»πŸ’»


Click here for Syllabus
πŸ‘‡πŸ‘‡πŸ‘‡



Group A




5  A book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the system searches the list and displays whether it is available or not. If it is not, an appropriate message is displayed. If it is, then the system displays the book details and requests for the number of copies required. If the requested copies book details and requests for the number of copies required. If the requested copies are available, the total cost of the requested copies is displayed; otherwise the message Required copies not in stock is displayed. Design a system using a class called books with suitable member functions and Constructors. Use new operator in constructors to allocate memory space required. Implement C++ program for the system. 
 


Group B 





 Group C 



2  Write a program in C++ to use map associative container. The keys will be the names of states, and the values will be the populations of the states. When the program runs, the user is prompted to type the name of a state. The program then looks in the map, using the state name as an index, and returns the population of the state.  
 

No comments:

Post a Comment