anawandh / CSA-blog-site

This is a blog site made using template given in AP CSA class. This will be the Experimental lab book for CSA
MIT License
0 stars 0 forks source link

2015 FRQ #13

Open anawandh opened 8 months ago

anawandh commented 8 months ago

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 the person.java file, where an array of type person object is iterated over and added to the database as seen in the image below. image

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 as values. 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 the personAPIController.java file for some of the api endpoint working as seen below - image

Question 2 and 3

In Question 2 and at various places we use for loops nested if statements. For example, the modleinit.java file uses for loops with nested if statements to create databse entries and also assign roles to the person created. image

Moreover, One difference consistent in all the questions and the project, especially Question 2, are the constructors. Because we use AllArgsConstructor and NoArgsConstructor from the Lombook library we do not need to make constructors, decreasing boilerplate code and making our code more clean.

image

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 method deserialize is overriden from the calss StdDeserializer. The smae file also uses other polymorphing actions such as extending the StdDeserializer 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.

image

aidenhuynh commented 8 months ago

Crossover Reviews - Adi

2015 FRQ Scores

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

Association Comments:

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. ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐

Association Score:

Overall, I would give you a 3.6/3.6 for your FRQ Association and 10 Gold Stars!

anawandh commented 8 months ago

Crossover Reviews Reflection

Grading

Learning

Future Plans