Giter Club home page Giter Club logo

codefellow-library's Introduction

CodeFellow-Library

Library App for code fellow

This application consists of 3 main files, book.py, shelf.py and library.py. Each of this files designate a class for creating books, shelves and libraries. Constant.py hold clobal constants that are necessary for running the application. Smithsonina.py is an applcation built using these 4 files. As a user, please type entries carefully(integers or strings, when appropriate).

Inorder to start navigate to the project file and type python Smitsonian.py

We Create a library by naming it then adding shelves and populating shelves with books. (NOTE: Each shelf is designated to a unique subject.)

After properly creating the library we can browse or checkout the library. See examples below:

===========================================================================
====================== Welcome to the SMITHSONINA Library =======================
===========================================================================

  You can A) Check out a book from the Library.
          B) Browse.
          C) Exit
             
None
 Please make a selection: A
-------------------------------------------------------------------
------------------------- List of Shelves -------------------------
-------------------------------------------------------------------

          1- engineering
          2- mathematics
          3- physics
          4- history

===================================================================


Choose a subject: 2

======================================================================================================================
MATHEMATICS               ID                              TITLE                                           QUANTITY
----------------------------------------------------------------------------------------------------------------------
                          1                               GEOMETRY                                        1
                          2                               CALCULS                                         1
                          3                               ALGEBRA                                         1
                          4                               TOPOLOGY                                        1
======================================================================================================================


Choose a book: 3
Thank you for checking out calculs. Please return on time!

Would you like to go back to the menu(M) or exit(D): m

  You can A) Check out a book from the Library.
          B) Browse.
          C) Exit
             
None
 Please make a selection: A
-------------------------------------------------------------------
------------------------- List of Shelves -------------------------
-------------------------------------------------------------------

          1- engineering
          2- mathematics
          3- physics
          4- history

===================================================================


Choose a subject: 2

======================================================================================================================
MATHEMATICS               ID                              TITLE                                           QUANTITY
----------------------------------------------------------------------------------------------------------------------
                          1                               GEOMETRY                                        0
                          2                               CALCULS                                         1
                          3                               ALGEBRA                                         1
                          4                               TOPOLOGY                                        1
======================================================================================================================


Choose a book: 2
Thank you for checking out calculs. Please return on time!

Would you like to go back to the menu(M) or exit(D): m

  You can A) Check out a book from the Library.
          B) Browse.
          C) Exit
             
None
 Please make a selection: A
-------------------------------------------------------------------
------------------------- List of Shelves -------------------------
-------------------------------------------------------------------

          1- engineering
          2- mathematics
          3- physics
          4- history

===================================================================


Choose a subject: 2

======================================================================================================================
MATHEMATICS               ID                              TITLE                                           QUANTITY
----------------------------------------------------------------------------------------------------------------------
                          1                               GEOMETRY                                        0
                          2                               CALCULS                                         1
                          3                               ALGEBRA                                         0
                          4                               TOPOLOGY                                        1
======================================================================================================================


Choose a book: 
Sorry, we no longer have a copy of this book. Please check back again some other time.

Would you like to go back to the menu(M) or exit(D): m

  You can A) Check out a book from the Library.
          B) Browse.
          C) Exit
             
None
 Please make a selection: B

-------------------------------------------------------------------
------------------------ List of all Books ------------------------
-------------------------------------------------------------------

          ID               TITLE
          ---------------------------

          992              ELECTRICITY
          417              TOPOLOGY
          419              SYSTEMS
          868              WORLD HISTORY
          470              LOGIC
          201              LOGIC
          941              THE AMERICAS
          176              ETHIOPIA
          916              MECHANICS
          117              MARS
          790              CALCULS
          727              MAGNETISM
          576              QUANTUM
          442              THE SUN
          957              CIRUITS
===================================================================



  You can A) Check out a book from the Library.
          B) Browse.
          C) Exit
             
None
  Please make a selection:C

                    ******* Thank you for visiting SMITHSONINA Library! GOOD DAY *******


```bash

codefellow-library's People

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.