Code Monkey home page Code Monkey logo

swati222 / design_a_valet_parking_system_using_java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anku357/design_a_valet_parking_system_using_java

0.0 0.0 0.0 8 KB

:octocat: 🌟ᴛʜɪꜱ ɪꜱ ᴛʜᴇ ꜱᴏʟᴜᴛɪᴏɴ ᴏꜰ ꜰᴀᴍᴏᴜꜱ ᴀᴍᴀᴢᴏɴ Qᴜᴇꜱᴛɪᴏɴ ꜰᴏʀ ꜱᴅᴇ1 ʀᴏʟᴇ ɪɴ ᴜꜱ ᴀɴᴅ ᴀʟꜱᴏ ᴀꜱᴋᴇᴅ ʙʏ ᴅɪʀᴇᴄᴛᴏʀ ᴏꜰ ᴡᴏʟʟꜰɪꜱʜ ᴘʀɪᴠᴀᴛᴇ ʟɪᴍɪᴛᴇᴅ 💻 🎯 🚀

Home Page: https://ide.geeksforgeeks.org/Y0Z5pMnL54

License: MIT License

Java 100.00%

design_a_valet_parking_system_using_java's Introduction

𝐃𝐞𝐬𝐢𝐠𝐧 𝐚 𝐯𝐚𝐥𝐞𝐭 𝐩𝐚𝐫𝐤𝐢𝐧𝐠 𝐬𝐲𝐬𝐭𝐞𝐦

:octocat: 🌟ᴛʜɪꜱ ɪꜱ ᴀ ꜱᴏʟᴜᴛɪᴏɴ ᴏꜰ ʟᴇᴀᴅꜱQᴜᴀʀᴇᴅ ᴄᴏᴍᴘᴀɴʏ ᴡʜɪᴄʜ ᴡᴀꜱ ʜɪʀɪɴɢ ɪɴᴛᴇʀɴ ꜰᴏʀ ꜱᴅᴇ ʀᴏʟᴇ. ɪ ʜᴀᴠᴇɴ'ᴛ ᴀᴘᴘʟʏ ꜰᴏʀ ᴛʜɪꜱ ᴊᴏʙ ʙᴇᴄᴀᴜꜱᴇ ᴏꜰ ɪᴛꜱ ʟᴏᴡ ᴘᴀᴄᴋᴀɢᴇ 💻 🎯 🚀

Swagger forks EmailSender-Rest-API-Backend-Of-frontend-Using-javascript EmailSender-Rest-API-Backend-Of-frontend-Using-javascript EmailSender-Rest-API-Backend-Of-frontend-Using-javascript

GitHub last commit GitHub repo size

Screenshot (602)

Problem statement

Design a valet parking system. Requirements of the valet parking system are:

  1. Parking lot is fixed in size and cannot be over parked.
  2. A vehicle is allowed only when a suitable parking spot is available.
  3. Customers are given a ticket that they can use to redeem to get their vehicle back.
  4. Parking spots come in three sizes, small, med, large
  5. Thee types of vehicles, small, med, large can be parked
    i. Small vehicle can be parked in a small, medium, and large spot
    ii. Medium vehicle can be parked in a medium or large spot
    iii. Large vehicle can be parked only in a large spot

Design and assumptions

Resources in the system have been identified and translated to java classes directly to design this modularilzed and extendable valet parking system. Composition has been used extensively for enabling re-usability, de-coupled classes, and easy unit-testability. No. of Unit test cases have been written to give us a safety-net to rapidly refactor, add frameworks and extend the application. Spring, Hibernate, Maven have not been used as the intention here is to just show the design aspects and to deliver the prod ready code in a very quick time. Database/Dao layer is not present but application's entities could be directly mapped to DB tables. Because of composition's heavy usage, it would be a matter of couple of hours to convert it into a full fledged spring/hibernate based application. At last, Concurrency aspect has been left out to keep things simple at this point of time. A simple Runnable 'ParkTheCarTask' is present however just to show the intention of not keeping the customer waiting for the valet token after giving the car to the ValetParkingManager.

View Demo · Report Bug · Request Feature

design_a_valet_parking_system_using_java's People

Contributors

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