Answer:
Create a dynamic-sized circularly-linked list to hold a tuple of the adverts and the count. As the program runs, the sum of the counts is used to calculate the fixed advertisement time which is saved in a variable time_slot. Then a loop statement should be used to traversal the linked list continuously until the count sum is exhausted for the day.
Explanation:
A circularly-linked list is a linked list with both ends joined together. With this data structure, the continuous traversal of the list is easier and faster. A conditional statement is used in the algorithm to check and decrement the count of each advert and when all is zero or false, the program ends.
Answer: C) Both a and b
Explanation:
The main benefit of normalizing the database as it reduced the redundant data and due the lack of the redundant data, it saves lots of space in the database.
It also improve the update time in the database so it is easy to handle the database security in the system.
It is also has ability to store the dangling tuples so it can easily store all the information of the customer without introduce any inconsistencies in the database system.
Therefore, Option (C) is correct.