I would prepare some preparatory assignment on C++ Class. The final assignment is this…
- User
I would prepare some preparatory assignment on C++ Class. The final assignment is this one: ~ Creating a Video Store Class
Objective: Develop a VideoStore class to manage a collection of movies. Each movie should be represented by its name, a watched status (boolean), and a score (integer between 0 and 10). The VideoStore class should allow for inserting, deleting, searching, updating, and printing movies. Additionally, write unit tests for each method.
Requirements:
Movie Class: This will define the individual movies. Make sure to include requirements for data validation. VideoStore Class: This will manage a collection of Movie objects using a std::vector. Required Methods:
Insertion: Add a new movie to the store. Delete: Remove a movie from the store by its name. Search: Find a movie by its name. The search functionality must be case-sensitive. Update: Modify the watched status and score of a movie. Print: Display the details of all movies in the store.
Optional Methods (for better usability):
Check If Movie Exists: Verify if a movie is already in the store by its name. Get Movie Count: Return the total number of movies in the store.
Implementation Details:
Use std::vector to store the Movie objects. Handle edge cases such as inserting duplicate movies or updating non-existent movies. Each method should be unit tested using Catch2 framework. ~ I would prepare a preparatory assignment split over some tasks that covers the major topics of C++ class to prepare colleagues to this exercise. Please provide a preparatory assignment that does it.
- Assistant