Giter VIP home page Giter VIP logo

Comments (3)

SuyashD95 avatar SuyashD95 commented on July 17, 2024

Update 1:

Add the initial template of the answer... Currently, the code is exactly the same as the answer to question 6.3.

from cplusplus-prog-exercises.

SuyashD95 avatar SuyashD95 commented on July 17, 2024

Update 2:

  • Defined a changePrice function to change the price of a book as and when required... Even though the question mentions it to be implemented as a private member function, I have implemented it as a
    public member function since private functions can't be accessed by the objects of the class...

  • Stock value of each book is automatically updated after each successful transaction.

  • Added a displayInventory function to display the details of the books present in the inventory.

  • Redesigned the main function of the Answer to accomodate the changes happened in the code.

from cplusplus-prog-exercises.

SuyashD95 avatar SuyashD95 commented on July 17, 2024

Update 3:

  • Defined a function to show the number of successful and unsuccessful transactions by using static data members.

The answer to this question is complete and hence, this issue is now closed.

from cplusplus-prog-exercises.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.