C++ LANGUAGE. I NEED COMPLETE CODE WITH ALL FUNCTIONS CLEARLY.
Create a Book class with data members book title, author name, price, edition. You are required to implement the following functions using the Last In First Out data structure. •Constructor–for initializing the default values of a book•setData( )–for setting the data in the data members from the user•isEmpty( )–for checking whether stack of books is empty•isFull( )–for checking whether stack of books is full•push( )–for inserting abook in the stack. If the stack is full, you are required to ask the user whether he/she wants to insert even if the stack is full. If the user says yes, then re-size your stack to create a bigger stack. Also, check whether the book is already in the stack or not. If the new book is already in the stack, display the user a message stating the book is already in the stack.•pop( )–for removing a book from the stack•reverseStack( )–for reversing the order of the books in the stack. For example, if a book with the title ABC was pushed at the last of the stack, then after calling this function, the book ABC goes to 0thindex i.e. it becomes 1stelement that is entered.•searchBook( )–for a searching book by name or author. It asks the user to enter the typeof search he/she wants i.e. by Book name or by author name.
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
- Written in Python It should have an init method that takes two values and uses them to initialize the data members. It should have a get_age method. Docstrings for modules, functions, classes, and methodsarrow_forwardUsing C++ Without Using linked lists: Create a class AccessPoint with the following: x - a double representing the x coordinate y - a double representing the y coordinate range - an integer representing the coverage radius status - On or Off Add constructors. The default constructor should create an access point object at position (0.0, 0.0), coverage radius 0, and Off. Add accessor and mutator functions: getX, getY, getRange, getStatus, setX, setY, setRange and setStatus. Add a set function that sets the location coordinates and the range. Add the following member functions: move and coverageArea. Add a function overLap that checks if two access points overlap their coverage and returns true if they do. Add a function signalStrength that returns the wireless signal strength as a percentage. The signal strength decreases as one moves away from the access point location. Represent this with bars like, IIIII. Each bar can represent 20% Test your class by writing a main function that…arrow_forwardAssignment-3 With the help of a C program show how to typecast a void * to an int * . Attach the code and output and upload the file on classroom.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY