Coder Social home page Coder Social logo

parkingemulatortask's People

Contributors

kostyahrytsyuk avatar

Stargazers

 avatar

Watchers

 avatar

parkingemulatortask's Issues

Create Parking class

This class has to be non-static with next properties:
List of cars
List of transactions
Balance property for storing earned money

Implement charging fees

Every period of time money for parking should be charged from cars. If car is staying on parking with a delay amount of charging money has to be next - Size of fee * Fine.

Create Transaction class

This class have to contain such properties
Data/Time of Transaction
Id for car
WrittenOffMoney for the transaction value

Implement adding and deleting cars from parking

After adding a car , car id has to be shown in console
To delete car , user has to enter Car id and specific command.
If there is car staying with a delay on a parking , user have to pay a fee. Without that he can't take care from the parking

Create Settings class

This class must be static with next properties:
Timeout - a period of recharging money for a parking place - 3 seconds as a default
Dictionary for storing prices for parking for different car types
ParkingSpace - the capacity of our parking
Fine - the amount of money for delay

Create Car class

Create a non-static class with such properties
Id - to identify the car
Balance - the amount of money for this car
CarType property

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.