https://github.com/analiaburgosdev/java_oop_series
Java OOP exercise to manage TV series, including episodes, ratings, seasons, and methods for tracking watched episodes and calculating averages.
https://github.com/analiaburgosdev/java_oop_series
java oop oop-principles oops-in-java
Last synced: 3 months ago
JSON representation
Java OOP exercise to manage TV series, including episodes, ratings, seasons, and methods for tracking watched episodes and calculating averages.
- Host: GitHub
- URL: https://github.com/analiaburgosdev/java_oop_series
- Owner: analiaBurgosDev
- Created: 2023-08-20T02:03:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T22:09:23.000Z (7 months ago)
- Last Synced: 2025-06-11T23:41:38.919Z (4 months ago)
- Topics: java, oop, oop-principles, oops-in-java
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ejercicio de POO - Series
## Consigna
Una **Serie** está formada por un conjunto de temporadas, cada una de las cuales tiene una cantidad de episodios. Cada episodio posee:
- **Título**
- **Descripción**
- **Flag** indicando si ya se vio el episodio.
- **Calificación** dada (con valores de 1 a 5). Si no se vio un episodio particular, la calificación será un valor negativo.Las series poseen como atributos (además de los episodios correspondientes):
- **Título**
- **Descripción**
- **Creador**
- **Género**### Servicios a Implementar
Implementar en **Java** las clases involucradas y determinar qué clase es responsable de responder los siguientes servicios:
1. Ingresar la calificación de un episodio. Si el valor ingresado como calificación no es correcto, imprimir un mensaje por pantalla y no cambiar el valor anterior.
2. Obtener el total de episodios vistos de una temporada particular.
3. Obtener el total de episodios vistos de una serie.
4. Obtener el promedio de las calificaciones dadas para una temporada particular.
5. Obtener el promedio de las calificaciones dadas para una serie.
6. Determinar si se vio todos los episodios de la serie.**Nota**: Para calcular los promedios, tener solo en cuenta los episodios vistos.
------------------------------------------------------------------------------------------------------------------------------------------------
(English)
# OOP Exercise - Series## Problem Description
A **Series** is formed by a set of seasons, each of which contains a certain number of episodes. Each episode has:
- **Title**
- **Description**
- **Flag** indicating whether the episode has been watched.
- **Rating** given (from 1 to 5). If an episode has not been watched, the rating will be a negative value.A series also has the following attributes (in addition to the corresponding episodes):
- **Title**
- **Description**
- **Creator**
- **Genre**### Services to Implement
Implement the involved **Java** classes and determine which class is responsible for handling the following services:
1. Enter the rating of an episode. If the entered rating is invalid, display a message on screen and do not change the previous value.
2. Get the total number of watched episodes in a particular season.
3. Get the total number of watched episodes in a series.
4. Get the average rating of episodes for a particular season.
5. Get the average rating of episodes for the entire series.
6. Determine if all episodes of the series have been watched.**Note**: When calculating averages, only count the episodes that have been watched.