Skip to content

ttrang-nguyen/MediaLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎡 MediaLibrary

A simple Java-based media library where users can manage songs, movies, and books.
This project demonstrates object-oriented programming (OOP) concepts such as encapsulation, constructors, getters/setters, and method overriding, while also performing calculations like average ratings and total song costs.


πŸš€ Features

Song Management

  • Add songs with title, rating, price, and favorite status
  • View song details using a custom toString() format
  • Calculate total cost, total ratings, and average values

Movie Management

  • Store movies with title, rating, and duration
  • Convert duration from minutes to hours & minutes
  • Display movie details neatly formatted

Book Management

  • Add books with title and rating
  • Simple display using toString()

Statistics

  • Shows number of songs, total cost, average cost, and average rating

πŸ› οΈ Tech Stack

  • Language: Java (JDK 17+ recommended)
  • IDE: Visual Studio Code
  • Version Control: Git & GitHub

πŸ“‚ Project Structure

MediaLibrary/

β”œβ”€β”€ src/

β”‚ β”œβ”€β”€ Song.java # Song class

β”‚ β”œβ”€β”€ Movie.java # Movie class

β”‚ β”œβ”€β”€ Book.java # Book class

β”‚ └── MediaLib.java # Main program

β”œβ”€β”€ .gitignore # Ignored files and folders

└── README.md # Project documentation


⚑ Getting Started

1. Clone the repository

git clone https://github.com/<your-username>/MediaLibrary.git
cd MediaLibrary

2. Compile the project

javac -d out src/*.java

3. Run the Program

java -cp out MediaLib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages