From c22f815609647fc2c60d41523b2d074cec436e25 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Thu, 8 Feb 2024 23:38:08 -0500 Subject: [PATCH] adding one more discussion question --- hws/discussions/yelp_businesses.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hws/discussions/yelp_businesses.txt b/hws/discussions/yelp_businesses.txt index d10ba9f..ba6f42a 100644 --- a/hws/discussions/yelp_businesses.txt +++ b/hws/discussions/yelp_businesses.txt @@ -3,12 +3,13 @@ In-class discussion Discuss the following questions with students around you. 1. The last command line argument (i.e., categories) may contain one or more words, how does our program know how many words are provided in the categories argument? +2. Functions to get the business name, the categories, the rating, the price are all given, but how do we get the city? the zip code? and the review count? -2. In our program, how do we determine if a business falls into the chosen categories or not? -3. Since the homework spec requires us to store the matching businesses in a linked list, is std::vector still a good choice for any part of the program? +3. In our program, how do we determine if a business falls into the chosen categories or not? +4. Since the homework spec requires us to store the matching businesses in a linked list, is std::vector still a good choice for any part of the program? -4. Is it necessary to store every field of each line into some data structure or some class object? -5. Is it neceesary to check the categories field of every line? +5. Is it necessary to store every field of each line into some data structure or some class object? +6. Is it neceesary to check the categories field of every line? -6. Do we need call a sort function? The std::list container does have a sort member function. -7. Do we need to implement a destructor for the class we write? Is heap memory a good choice to store the linked list? +7. Do we need call a sort function? The std::list container does have a sort member function. +8. Do we need to implement a destructor for the class we write? Is heap memory a good choice to store the linked list?