This is one of the choices for Assignment 4.
Objectives: This assignment focuses on DAO pattern, understanding the DAO pattern and manual DAO implementations. As a conceptual background, all concepts related to data access technologies of different levels of abstraction and data access patterns must be known (Lectures weeks 9,10,11).
The students can be read from different data sources (SQL database or some structured file format such as XML).
Use the Data Acces Object pattern to decouple between the business logic and the data source. The choice of the data source (XML file or SQL database) is done at runtime. The application can consider that the data source (XML file, SQL database) already exists and it does not need to be updated.
The business logic (the horoscope algorithm) predicts if a student will have a good day, according to following algorithm: if the number of vowels in the student name is a divisor of the current day, then the student will have a good day.