Git Product home page Git Product logo

cartproblem's Introduction

MIT License LinkedIn

Senaryo

Aşağıdaki tablolarda detayları verilmiş indirim tablosuna göre, kullanıcı sepetine eklenecek rastgele ürünler ile satın alım fiyatının hesaplanması istenmektedir.

Uygulamadan beklenilen:

  • Sepete 7 adede kadar ürün eklenmesi beklenmektedir.
  • Eklenecek ürünler ve sepet miktarları rastgele seçilmeli.
  • Ürün fiyatları uygulama başlangıcında programcı tarafından belirlenmeli
  • Ürün fiyatları 100-1000 TL arasında verilmelidir.
  • Sepete eklenen ürünler en az 1, en fazla 10 adet olabilir.
  • Ürün adedi 1 olması durumunda indirimoranı hesaplamaya tabi tutulmaz.
  • İndirim hesabı yapılırken, her grubu kendi grup toplamına karşılık gelen indirim oranı uygulanır.

🔗 İNDİRİM TABLOSU

Fiyat Aralığı (TL) İndirim Oranı
0.1-1000 %0
1001 - 2000 %1
2001 - 3000 %2
3001 - 4000 %3
4001 - 5000 %4
5001 - 6000 %5
6001 - 7000 %6

🔗 ÜRÜN GRUPLARI

1.Grup 2.Grup 3.Grup
Bilgisayar Masa Eldiven
Monitör Sandalye Sedye
Yazıcı Koltuk Diş Ünitesi
Laptop Sehpa Ultrason Cihazı
Projeksiyon Cihazı Keson MR Cihazı

🔗 ÖRNEK

Ürün Birim Fiyat Sipariş Adet Toplam İndirimli Tutar
Bilgisayar 200 TL 20 4000 TL 3840 TL
Yazıcı 50 TL 15 750 TL 720 TL
MR Cihazı 1000 TL 1 1000 TL 1000 TL
Sedye 300 TL 10 3000 TL 2940 TL
Masa 75 TL 20 1500 TL 1485 TL
Sepet Tutarı: 9985 TL

(back to top)

Built With

dotnet

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

What needs to be installed on the device in order to run the codes.

  • C#
  • Visual Studio

Installation

You can use the following command to download the repository.

  1. Clone the repo
    git clone https://github.com/emredemirr/CartProblem

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Emre Demir - email

(back to top)

cartproblem's People

Contributors

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