GithubHelp home page GithubHelp logo

andres6936 / n2-mrpotatohead-java Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 2.37 MB

An online store that allows to design and purchase a Mr. Potato Head wants to be built. Each customer must be able to design a Mr Potato Head as he likes, calculate the price if its design and bui it when he has finished choosing all the parts.

Java 100.00%
learning java potato

n2-mrpotatohead-java's Introduction

Enunciado

An online store that allows to design and purchase a Mr. Potato Head wants to be built. Each customer must be able to design a Mr Potato Head as he likes, calculate the price if its design and bui it when he has finished choosing all the parts.

It has been established to divide the five types of doll parts and that each of these three possibilities can be chosen. The parts include eyes + nose + ears (facial expression), headgear, mouth, arms and feet.

Each part of the design of Mr. Potato Head knows the type of part to which it belongs and has additionally a base price and a quantity of units available.

Once the customer designs the "Mr. Potato Head" to his liking, he can buy it at the store. The purchase is possible if the inventory is at least one unit available for each of the selected parts.

Before he buys it, the customer can calculate the price of "Mr. Potato Head" by clicking on "Summarize". Once the customer knows the final price of Mr. Potato Head, then he can buy it through the button "Sell."

To summarize the price of Mr. Potato Head design it is taken into account the following conditions for each of the parts.

· 10% discount on the base price of the part, if the amount of available units is greater than 10.

· 15% increase over the base price of the hand, if the number of units available is less than 10.

· There is no discount if the amount of available units of the part is equal to 10.

Additionally, depending on the total purchase value, after considering the above cases, it is wanted to pursue an other discount with the following conditions:

· 10% discount on the total value of the design, if the total value is greater than or equal to $ 50,000 and less than $ 100

· 15% discount on the total value of the design, if the total value is greater than or equal to $ 100,000 and less than $ 150,000

· 20% discount on the total value of the design, if the total value is greater than or equal to $ 150,000

The application must be able to modify any of the parts in accordance with the possibilities by type. It is this way the design of Mr. Potato Head is created by selecting each part.

Example of quantity by type of part:

Tabla

Interfaz

GUI

n2-mrpotatohead-java's People

Contributors

andres6936 avatar

Watchers

 avatar  avatar

Forkers

jonvirak

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.