Git Product home page Git Product logo

discount-specification-program's Introduction

BACKEND PROGRAMM FOR DISCOUNT SPECIFICATION PROCEDURE

This a series of code written for a Grocery Shop within an organization to facilitate the calculation as well as the accmulation of goods purchased by users.

OVERVIEW OF THE PROGRAMME


This is a discount calculator program for a Grocery Shop within an organization that takes accounts of user categories in that organization. It then prescribes a discount which is maintained by the company as well as its stakeholders.

CATEGORIES OF SPECIFICATION AND THEIR ASSOCIATED DISCOUNTS

Employees: These individuals are the staff of the company and by virtue, are to obtain a discount of 5% of their total purchase.

Customers: They are the active users of the service and are subdivided into two groups:

  1. Constant Customers: The requirement for being a constant customer is that the number of years pertaining to the usage of the service should be two or more. It then follows that these set of people obtain a reduction of 2%.
  1. Regular Customers: For a person to to qualify as a regular customer , that individual in question should have used the service for less than two years. As it persists , regular customers are denied a discount of any sort.

Affiliates: Affiliates denote people that have a relation to the employees of the organiszation. They are thereof granted a discount of 3% of their total purchase.

However, a combined discount of 5 dollars is granted every individual in question. This is elaborated in the duties of this program.

DUTIES TO BE PERFORMED:

  1. Combined Discount: This permits every user, regarldess of their category to have a 5 dollar disocunt for every 100 dollar-purchase and above.

  2. Product: This accounts for the orders made by the user of the service.

  3. Total Price: The total price depicts the overall price accumulated after the orders have been keyed in and their associated quantities have been accounted for.

  4. Net-Total Price: This is the price the user is required to pay and is denoted as the accorded discount subtracted from the total price. This is what the user is demanded to make payment for

Contributions

As having tried and tested this,it is undoubtedly ordinary that it can be susceptible to bugs. I am receptive to any issue or required changes on this piece.

Kindly open a PR and state your opinion with an ample description as to what you feel should be implemented.

You can also fork this repository , clone it in your IDE and make the necessary changes with any branch of your choice.

discount-specification-program's People

Contributors

kwartenga avatar

Stargazers

 avatar  avatar

Watchers

 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.