VishnuAravind12 / vishnu

CSA Blog
MIT License
1 stars 1 forks source link

FRQ Team Crossover Notes #4

Open VishnuAravind12 opened 1 year ago

VishnuAravind12 commented 1 year ago

Paaras

Topic: Writing Classes, Dividing Classes, Public Classes, Constructor Methods, OOP Programming, Polymorphism, Inheritance

FRQ Chosen: 2023 AP Exam Question 1

Objective: The task involved using the Book Class appointment to find a free block and make an appointment. The FindFreeBlock method would navigate the appointment book's database and table, identifying an available slot and subsequently scheduling a student appointment.

Approach:

Paaras initiated by iterating through the start and end minutes. If no available block matching the duration is located, the method will return -1. He incorporated comments in his code to clarify the functionality of various segments. Testing:

To validate his code, Paaras constructed a new class. He then instantiated variables, applied the methods on them, and printed the results using System.out.println. Comparison with Collegeboard's Solution: Paaras' approach was comprehensive, but Collegeboard's syntax was slightly more streamlined. It's essential to prioritize coding efficiency, especially during the AP Exam.

Grade: 1/1

Yuri

Topic: Java Classes, Class vs. Object, Purpose of a Constructor, Instance Variable vs. Static Variable in Java Class, Access Modifiers in Java, Inheritance

FRQ Chosen: 2022 AP Exam, Question 2

Objective: The primary goal was to design a subclass named textbook derived from the book class.

Approach:

Yuri created an instance or a subclass version named textbook. To achieve this, he utilized the extends keyword with Book. The Collegeboard's requirements included performing integer addition. Grade: 0.9/1

Tanay

Topic: 2D Array (Initialization, Traversal and Access, Manipulation, Searching and Sorting)

FRQ Chosen: 2023 AP Exam, Question 4

Objective: The challenge was to transfer candy to the first row and subsequently eliminate the subsequent candy based on its flavor.

Approach:

Tanay's testing procedure involved creating an array, invoking methods on the array, and then printing the results. 2D arrays serve as a valuable tool for storing and managing data. They offer the flexibility to traverse and modify the grid effectively. Grade: 0.9/1