kostyahrytsyuk / parkingemulatortask Goto Github PK
View Code? Open in Web Editor NEWSimply C# task for parking emulating
Simply C# task for parking emulating
This class has to be non-static with next properties:
List of cars
List of transactions
Balance property for storing earned money
User can refill his account without taking car from parking
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.
This file will be used as log file for transactions from our parking
Every transaction has to be logged in the transaction.log file with next information:
CarId Fee Size Date/Time
Pass Car Type and first payment size as parameters
This class have to contain such properties
Data/Time of Transaction
Id for car
WrittenOffMoney for the transaction value
Create method in Parking class for getting сurrent parking profit and profit that has been got durring last minute
Create enum with next values
Passenger
Truck
Bus
Motorcycle
Use Car Id as a parameter
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
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 a non-static class with such properties
Id - to identify the car
Balance - the amount of money for this car
CarType property
One project has to keep console functionality and another one has to be class library project and keep all logic to work with a parking
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.