https://github.com/tahniat-ashraf/robot-factory-kotlin-spring-boot
A sample project made with kotlin+spring boot for self learning purpose
https://github.com/tahniat-ashraf/robot-factory-kotlin-spring-boot
Last synced: 7 months ago
JSON representation
A sample project made with kotlin+spring boot for self learning purpose
- Host: GitHub
- URL: https://github.com/tahniat-ashraf/robot-factory-kotlin-spring-boot
- Owner: tahniat-ashraf
- Created: 2021-11-23T16:36:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-23T16:38:31.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T00:44:37.022Z (9 months ago)
- Language: HTML
- Size: 242 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Robot Factory
(A sample kotlin + spring boot project for self learning purpose)
## Description
At Robot Factory Inc. we sell configurable Robots, you can configure one for us to manufacture it.
When ordering a robot, a customer must configure the following parts:
- Face (Humanoid, LCD or Steampunk)
- Material (Bioplastic or Metallic)
- Arms (Hands or Grippers)
- Mobility (Wheels, Legs or Tracks)An order will be valid if it contains one, and only one, part of face, material, arms and mobility.
If an order is valid and there are enough parts to assemble the robot:
- The priced order should be calculated
- The parts should be reserved to produce the robot later on
- Stock is decreased accordingly## What to do
Given a stock of:
```bash
Code Price Available Part
————————————————————————————————————————————————————
A 10.28 9 Humanoid Face
B 24.07 7 LCD Face
C 13.30 0 Steampunk Face
D 28.94 1 Arms with Hands
E 12.39 3 Arms with Grippers
F 30.77 2 Mobility with Wheels
G 55.13 15 Mobility with Legs
H 50.00 7 Mobility with Tracks
I 90.12 92 Material Bioplastic
J 82.31 15 Material Metallic
```Implement create an order of a robot given a list of component codes.