Final answer:
The CovidDB class includes add, get, and remove functions, working with a hash table using separate chaining for collision resolution, and manipulates data entries for COVID-19 statistics by country.
Step-by-step explanation:
In designing a C++ class named CovidDB, which involves operations on a hash table with separate chaining to handle collisions, the class should support methods to add, retrieve and remove data entries based on country names. Each DataEntry object will have attributes for date, country, cumulative cases, and deaths along with necessary getters and setters.
The add() function inserts a new data entry into the hash table, returning true if successful. The get() function retrieves a data entry based on a given country name; if no entry exists, it returns NULL. The remove() function deletes the data entry corresponding to the given country.
The hash function takes a string (a country name) and computes an index based on the ASCII values of the characters in the string and their position. To test the correctness of these functions, you should first implement the hash table and then create some fake data entries to use with the add, get, and remove operations.