Skip to content

Final_project

yahya tawil edited this page Nov 20, 2021 · 1 revision

Write a program can do the following:

  • Takes a Goodreads dataset and extract author names and book titles: Read the CSV file and print the list of avialable books and authors name(20%)
  • Build a BST for authors and another BST for books title. (30%)
  • Fetch a list of all books that start with the query string .i.e (an introduction) to fetch all books start with this string. (20%)
  • The same thing while searching for authors name. (20%)

Dataset Link

Note (1): An extra marks will be assigned for good code design, documenting the code through comments, and making a simple GUI. (10%).

Note (2): Each week we will discuss one part of the project to help you to solve it. We have 4 weeks to work on it.

Week 1 Hint

Use the following snippet to read CSV file, it need to be modified to meet the dataset structure:

FILE *fp;
char str1[10], str2[10], str3[10], str4[10];

fp = fopen("test.csv", "r");

if(NULL == fp)
{
    printf("\nError in opening file.");
    return 0;
}
while(EOF != fscanf(fp, " %[^,], %[^,], %[^,], %s, %s, %s, %s ", str1, str2, str3, str4)) // d1,d2,d3,d4
{
    printf("\n%s %s %s %s", str1, str2, str3, str4);
}
fclose(fp);