display all books
search for books by author
search for books by year of publication
search for books by part of the title
display books that have more than 300 pages
sort books by title (alphabetically)
[
{"title": "1984", "author": "George Orwell", "year": 1949, "pages": 328},
{"title": "Malý princ", "author": "Antoine de Saint-Exupéry", "year": 1943, "pages": 96},
{"title": "Harry Potter a Kameň mudrcov", "author": "J.K. Rowling", "year": 1997, "pages": 309},
{"title": "Pán prsteňov", "author": "J.R.R. Tolkien", "year": 1954, "pages": 423},
{"title": "Hobit", "author": "J.R.R. Tolkien", "year": 1937, "pages": 310}
]
display all products
search for a product by name
search for products cheaper than a given price
search for products by category
display products that are in stock (stock > 0)
sort products by price (from the cheapest)
[
{"name": "Notebook", "price": 1200, "category": "electronics", "stock": 5},
{"name": "Mouse", "price": 25, "category": "electronics", "stock": 50},
{"name": "T-shirt", "price": 15, "category": "clothing", "stock": 0},
{"name": "Shoes", "price": 80, "category": "clothing", "stock": 12},
{"name": "Phone", "price": 900, "category": "electronics", "stock": 8}
]
Create a system for company employees, where is a base class Employee and derived classes Manager and Developer. The Employee class contains the attributes name, age, and salary. The Manager class will additionally have a list of subordinates, and the Developer class will include the programming language they work in.
Create a base class Vehicle and derived classes Car and Bike.
Create a base class Product and derived classes Electronics and Clothing.
Create a base class Ticket and derived classes BusTicket and TrainTicket.