Giter Site home page Giter Site logo

bookcatalog_v1's Introduction

BookCatalog_v1

Clone the C# project BookCatalog_v1.  

This exercise illustrates the concept of a catalog. A catalog is a class that can store and use data of a certain type, without revealing the specific representation of data to the user of the catalog.

The project contains the simple data class Book (note however that we consider the instance field isbn to be a “key” for Book, i.e. no two Book objects can have the same isbn value).  Also, it contains the (incomplete) catalog class BookCatalog. The three public methods in BookCatalog allow the user to store and use Book objects in a simple way (see the comments in the code for more details about each method).  

Given that we have chosen to use a List to store Book objects internally in the BookCatalog class, your job is now:  

  1. Complete the three methods in the BookCatalog class.

  2. Study the test written in InsertCodeHere.cs, and figure out what you expect the test to output.

  3. Run the program, and see if the output of the test matches your expectations (if not, you will have to examine the test and your code once again…)

  4. Is there anything in the program that prevents a user from entering two Book objects with the same isbn value?

bookcatalog_v1's People

Contributors

nataschaj avatar martinkierkegaard avatar

Watchers

James Cloos avatar  avatar

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.