Giter Club home page Giter Club logo

books's Introduction

Books

HackerRank Solution It is a Class Activity organise on the Hackerrank.

Books-01

You are required to create a CLI-based bookstore application. The details of the bookstore remain as follows -

  1. There must be three details for every book in record
  • The Book Name
  • The Author Name
  • and the ISBN number of the book.
  1. The bookstore can store n number of books at a time.
  2. This application will help the store manager to keep record of stock entries. Input Format The first line of input will contain the number of books being entered into the inventory. The next 3n lines will be the records of the books, each field of the book will be entered as a separate line. Constraints If the number of books is zero, print N/A Output Format

Book Name: Author Name: ISBN:

for each book separately Sample Input 0 0 Sample Output 0 N/A Sample Input 1 1 Sherlock Holmes Arthur Doyle 9781408436011 Sample Output 1

Book Name: Sherlock Holmes Author Name: Arthur Doyle ISBN: 9781408436011

Sample Input 2

5 Sherlock Holmes Arthur Doyle 9781408436011 Clean Code Robert Martin 9780132350884 The Pragmatic Programmer Andy Hunt 9788131722428 Introduction to Algorithms Thomas Cormen 9789650603533 Java The Complete Reference Herbert Schildt 9891260440230

Sample Output 2


Book Name: Sherlock Holmes Author Name: Arthur Doyle ISBN: 9781408436011


Book Name: Clean Code Author Name: Robert Martin ISBN: 9780132350884


Book Name: The Pragmatic Programmer Author Name: Andy Hunt ISBN: 9788131722428


Book Name: Introduction to Algorithms Author Name: Thomas Cormen ISBN: 9789650603533


Book Name: Java The Complete Reference Author Name: Herbert Schildt ISBN: 9891260440230

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.