You are on page 1of 4

Assignment 1.

The main goal of Assignment 1 is to implement Classes, Objects, Methods and the principles
of Encapsulation(access modifiers, Getters and Setters, Constructors).

There are 5 topics for an assignment 1(you have to continue it for an assignment 2 also).

1. Cinema tickets system


2. Library system
3. Restaurant order system
4. Online shop system
5. Beauty salon booking system

Each project should have a menu with available actions and at least two/three Classes except
Main.java(this one is for your console menu of your app). All the data (i.e. objects) should
be stored in ArrayLists!

You can modify the project, add your ideas, other methods, classes, variables etc.

Choose one of given topics and complete following tasks:

1. Cinema tickets system

You need to write a small application to store ticket information in the system. It should be an
interactive console application!

An example of the menu:

Hello, You have the following available functions:

1) To add a new movie;


2) To show all available movies;
3) To add a new user;
4) To buy a ticket;
5) To cancel a purchase of the ticket.

The menu should be developed using the "switch case default" statement with the usage of
the loop. Use setter and getter. Clean code.

You should have at least these Classes:

- Class User should has the following fields: name, age, balance, and orderHistory
(arraylist to store purchased tickets) and Methods;

- Class Movie with fields: movie name, movie genre, age restriction and Methods.

- Class Ticket with fields: id, movie name, date, time, price and Methods. (movie name is
filled based on selected movie)
- Class CinemaSystem which stores all Users, Movies, and sold Tickets also provides
necessary functionality for your app

2. Library System

You need to write an application to imitate the library system. It should be an interactive
console application!

An example of the menu:

Hello, You have the following available functions:

1) To add a new book;


2) To show all available books;
3) To add a new user;
4) To give the certain book to the certain user;
5) To return a book back to the library from user.

The menu should be developed using the "switch case default" statement and in the loop.
Use setter and getter. Clean code.

You should have at least these Classes:

- Class User should has the following fields: id, name, group, borrowed books (ArrayList)
and Methods;

- Class Book with fields: book title, isbn, book genre, author, year, quantity and Methods;

- Class Library which stores all users and books and also provides necessary functionality
for your app;

3. Restaurant order system

You need to write an application to imitate a restaurant ordering system. It should be an


interactive console application!

An example of the menu:

Hello, You have the following available functions:

1) To show menu;
2) To add a new meal
3) To add a new user;
4) To order a meal;
5) To edit an order;
6) To cancel an order.

The menu should be developed using the "switch case default" statement and in the loop.
Use setter and getter. Clean code.

You should have at least these Classes:


- Class User should have the following fields: id, name, balance, orderHistory and
Methods;

- Class Meal should have the following fields: name, price, description and Methods;

- Class Order should have the following fields: userId, mealName, quantity, sum and
methods;

- Class Restaurant which stores all users and meals, orderHistory (for whole restaurant
orders) and also provides necessary functionality for your app.

4. Online Shopping system

You need to write a system to keep the information of shopping products. It should be an
interactive console application!

An example of the menu:

Hello! You have the following available functions:

1) To show products list;


2) To add a product;
3) To add a new user;
4) To buy product;
5) To return a product;
6) To show all users;
7) To show the certain user’s orders.

The menu should be developed using the "switch case default" statement and in the loop.
Use setter and getter. Clean code.

You should have at least these Classes:

- Class Product should have the following fields: Name, price, quantity, description and
Methods;

- Class User with fields: id, name, balance, ArrayList of orders and Methods;

- Class Order should have the following fields: userId, productName, quantity, totalSum and
methods;

- Class OnlineShop which stores all users and products, orderHistory (for whole shop orders)
and also provides necessary functionality for your app.

5. Beauty salon booking system

You need to write a system to keep the information of beauty salon bookings. It should be an
interactive console application!
An example of the menu:

Hello! You have the following available functions:

1) To show beauty procedures list;


2) To add a beauty procedure;
3) To add a new user;
4) To book for a beauty procedure;
5) To cancel booking for a beauty procedure;

PS. Booking should be done through usage of the certain format: date: “22/12/2022”
time: “12:00”. Suppose that all procedures take an hour!

The menu should be developed using the "switch case default" statement and in the loop.
Use setter and getter. Clean code.

You should have at least these Classes:

- Class BeautyProcedure should have the following fields: Name of the procedure, price,
description and Methods.

- Class User with fields: name, balance, ArrayList of taken beauty procedures and
Methods.

- Class Booking with fields: id, procedure name, date, time, and Methods. (procedure name
is filled based on selected procedure).

- Class BeautySalon which stores all users and procedures, bookingHistory (for whole
beauty salon bookings) and also provides necessary functionality for your app.

You might also like