PotterKata | Kata - Potter book sales

 by   DavidRooney C# Version: Current License: No License

kandi X-RAY | PotterKata Summary

kandi X-RAY | PotterKata Summary

PotterKata is a C# library. PotterKata has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Once upon a time there was a series of 5 books about a very English hero called Harry. (At least when this Kata was invented, there were only 5. Since then they have multiplied) Children all over the world thought he was fantastic, and, of course, so did the publisher. So in a gesture of immense generosity to mankind, (and to increase sales) they set up the following pricing model to take advantage of Harry’s magical powers. One copy of any of the five books costs 8 EUR. If, however, you buy two different books from the series, you get a 5% discount on those two books. If you buy 3 different books, you get a 10% discount. With 4 different books, you get a 20% discount. If you go the whole hog, and buy all 5, you get a huge 25% discount. Note that if you buy, say, four books, of which 3 are different titles, you get a 10% discount on the 3 that form part of a set, but the fourth book still costs 8 EUR. Potter mania is sweeping the country and parents of teenagers everywhere are queueing up with shopping baskets overflowing with Potter books. Your mission is to write a piece of code to calculate the price of any conceivable shopping basket, giving as big a discount as possible. For example, how much does this basket of books cost?. 2 copies of the first book 2 copies of the second book 2 copies of the third book 1 copy of the fourth book 1 copy of the fifth book. (4 * 8) - 20% [first book, seconde book, third book, fourth book] + (4 * 8) - 20% [first book, second book, third book, fifth book] = 25.6 * 2 = 51.20.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PotterKata has a low active ecosystem.
              It has 0 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              PotterKata has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PotterKata is current.

            kandi-Quality Quality

              PotterKata has no bugs reported.

            kandi-Security Security

              PotterKata has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              PotterKata does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              PotterKata releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PotterKata
            Get all kandi verified functions for this library.

            PotterKata Key Features

            No Key Features are available at this moment for PotterKata.

            PotterKata Examples and Code Snippets

            No Code Snippets are available at this moment for PotterKata.

            Community Discussions

            No Community Discussions are available at this moment for PotterKata.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PotterKata

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/DavidRooney/PotterKata.git

          • CLI

            gh repo clone DavidRooney/PotterKata

          • sshUrl

            git@github.com:DavidRooney/PotterKata.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link