Giter Site home page Giter Site logo

grocery-app's Introduction

grocery-app

A grocery Application

In a shop there are products which have a discount while others are on promotion. from the data bellow create an algorithm that checks if a customers basket has promotional items or discounted items. Display those that have both discount and promotion in red.

customer Basket

item price discount promo
bread 30 1 true
Rice 200 0 false
Meat 340 5 false
brai 340 15 true
Chkn 140 0 true
Soap 100 5 false
cremora 70 2 true
milk 80 0 false
bin 200 0 true
bin plastic 100 3 false
cerelac 75 2 true

Requirements

  1. if an item has a discount, calculate how much a customer will pay for the item at the till.
  2. calculate the difference in price (or total amount of money) this customer would have paid if he/she had no discound and when he has the discounts.
  3. each and every item which is on promotion attracts an additional 10% descount. calculate how much discount will be applied to the basket.
  4. Creae a beautiful UI for the application

grocery-app's People

Contributors

mitch1009 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.