Open anawandh opened 8 months ago
Note: We demonstrated running code in notebooks to verify functionality
FRQ # | Comments | Score |
---|---|---|
1 | Code runs as expected and FRQ type correctly identified, bonus methods | 1.1/0.9 |
2 | Code runs as expected and FRQ type correctly identified , bonus methods | 1.1/0.9 |
3 | Code runs as expected and FRQ type correctly identified | 0.9/0.9 |
4 | Code runs as expected and FRQ type correctly identified | 0.9/0.9 |
Overall | Combined score for 1.1 scale FRQs | 4.0/3.6 |
I appreciate including the context of the problem in your associations to give a brief summary for people who did not do the problems (Mr. Mort). I particularly liked how you took note of not only similarities but also the differences between the problems and your project, which shows a strong understanding of the content and more.
One suggestion I have to make this association really stand out is to add an overall reflection with your future plans regarding the course. Overall, great job. ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐
Overall, I would give you a 3.6/3.6 for your FRQ Association and 10 Gold Stars!
2015 FRQ Answer
Connections
I have the same connections on the respective question blog
Question 1
Question 1 is about traversing and manipulating arrays and 2D arrays. Part A of the question asks to manipulate a one dimensional array or iterate through it to add up all the values in the array. A similar action in seen in the initialization of data in
person
database in theperson.java
file, where an array of typeperson
object is iterated over and added to the database as seen in the image below.Question 1 part B and C have aspects of manipulating 2D arrays and 1D arrays. A similarity is seen in the way 2D arrays were used in this question as a look up table of sorts. The question made us use the rows as
keys
and the columns in those specific rows asvalues
. A similarity is seen in the Map data structure that I used in the project to associate keys and vlaues as seen in the image below. Though 2D arrays and Map are two diffrent data structure they are similar in their theme of the way they are being used. For a 2D array, you might use the first dimension as a key and the second dimension as a value (though this is somewhat unconventional). Maps are naturally suited for this purpose, with clear key-value relationships and that is why I use Maps more as they are flexibility with dynamic sizing unlike 2D arrays which are more fixed in size. This is important in the working of the database as with the stocks data and also person the size can be very large. I used Map in thepersonAPIController.java
file for some of the api endpoint working as seen below -Question 2 and 3
In Question 2 and at various places we use
for loops
nestedif statements
. For example, themodleinit.java
file uses for loops with nested if statements to create databse entries and also assign roles to theperson
created.Moreover, One difference consistent in all the questions and the project, especially Question 2, are the
constructors
. Because we useAllArgsConstructor
andNoArgsConstructor
from theLombook
library we do not need to make constructors, decreasing boilerplate code and making our code more clean.Question 4
through out the project files at various places
overide
has been used to change specfic class methods to match out databse and requirements. One of the examples in the CustonDateSerialize.java file. Here the methoddeserialize
is overriden from the calssStdDeserializer
. The smae file also uses other polymorphing actions such as extending theStdDeserializer
function. Just as CustomDateDeserializer adapts the behavior of JSON deserialization to suit specific formatting requirements, the classes in question 4 (e.g., Range and MultipleGroups) implement or extend predefined behaviors (contains method from the NumberGroup interface) to fulfill specific contracts or interfaces.