Streaming program
Enviado por Jessica Odette Guizado Hernández • 6 de Septiembre de 2023 • Tarea • 613 Palabras (3 Páginas) • 82 Visitas
“INSTITUTO TECNOLÓGICO Y DE ESTUDIOS SUPERIORES DE MONTERREY”
[pic 1]
Object-Oriented Programming
“Evidence 2. Integrative Project”
Streaming service modeling
Professor:
César Manuel Rodríguez Carrillo
Guillermo Giovanni Altamirano Escobedo
Name:
Jessica Odette Guizado Hernández (A01643724)
16/06/2023
Content
Introduction………………………………………………………3
UML Diagram……………………………………………………3
Testing……………………………………………………………4
Code explanation……….…………………………….…………7
Conclusion……………………………………………………….11
References………………………………………………………11
Introduction
For this problem situation we have a comparison of many streaming platforms who already work some features that we need, this gives us an idea about what the provider needs. Which is to show in terms of rating and genre movies and series, and be able to modify the rating. In order to have an efficient way to deliver what it wants; it is necessary to apply object-oriented programming to make it easier and save time and memory. I would apply methods like inheritance in order to make the code reusable and maintainability so we can have a code with quality.
UML Diagram
[pic 2]
With this diagram I planned my solution, we are going to have a class Father called video, and it is going to save all the initial information that we required to be show on the menu. Also it is going to have the methods that all the child classes are going to need in order to work as it should.
Then we have two child classes: Movies and Series. Those are separated because they have different attributes, like the Serie that has chapters. We will have methods on our Father class in order to be able to modify and set ratings and make and average with them, also it is going to save a method print which is going to help us to save time when coding the functionality of the child classes with inheritance and polymorphism.
I think that one case that could make the program brake could be add more variables to the txt. Or maybe at the time of detect other possible answers given by user that are not taking in count, like modify genre. Or if the user doesn’t load the data file before starting to interact with the menu.
Output
Case 1: Showing videos with specific genre.
[pic 3]
Case 2: Showing videos with specific rating.
[pic 4]
Case 4: Error with the name of video.
[pic 5]
Case 5: Rating a video.
[pic 6]
Explanation of main
- First, I used a function to clear the screen in order to keep it cycling.
[pic 7]
...