Open Ryanrob327 opened 8 months ago
Grader: Jishnu Singiresu
FRQ | Score | Comments |
---|---|---|
FRQ 1 | 0.95/.9 | FRQ was well completed and is fully functional, listed the type of the FRQ and answered all the parts of the question and lft comments in code to help guide through the thinking |
FRQ 2 | 0.95/.9 | FRQ was fully completed and again, good comments that are simple but help show the thinking and answered all the parts to the questions and made sure to have fully functional code |
FRQ 3 | 0.92/.9 | FRQ was completed, simple and good comments and answered all the parts, really unqiue way of displaying the results of the code, showed the removed column instead of whole array |
FRQ 4 | 0.95/.9 | FRQ was completed thoroughly and code is fully functional and displays the right results and everything and yet again, good comments that show the code and explain what was going on |
Connections | 3.8/3.6 | He explained in great detail and showed all the aspects of the code that correlates with the right parts of the question and then he also ordered it in an order that strcutural made sense and alllowed for a smooth presentation. |
Total | 7.57/7.2 | below |
Q4 - Methods and Control Structures
The fourth FRQ the question was unique for using interfaces to create what is essentially a template for future methods and classes. In this example I create an interface to act as a template for my final project, where instead of an arbitrary group of numbers, I am using crops for my interface to represent. As you can see, there are many different methods for each crop, like
getSpecies()
which returns the species of crop being planted like corn, rice, etc. You also havegetFertilizer()
andgetHydration()
Which determine how well the specific crop performs and depending on the performance of said crop it will effectcalculateProfit()
andgetEcoPoints()
.Q2 - Classes
The second FRQ the question was unique for using objects and constructors to initialize the class, here we use a constructor to initialize all of our variables similar to how
HiddenWord
that took in a string to set to the instance variable. Here, however, we use multiple variables to access anywhere in the class. Additinally, Each method provides a specific behavior or information related to the corn crop, such as calculating profit, accessing species information, determining eco points, hydration requirements, fertilizer needs, checking readiness for harvest, and harvesting.Q1 - 2D arrays
The second FRQ the question was unique for using 2D arrays, however just like before, the FRQ was only good for storing arbitrary numbers, this class utilizes a 2d array to store the corn object from before like you would in a real life field. The Field class encapsulates a 2D array representing a farm field where crops can be planted and harvested. Each element in the grid can hold either a crop object or be null. This class demonstrates the practical application of 2D arrays in modeling real-world scenarios, such as agricultural management systems. By organizing crop data in a structured grid format, it enables efficient storage, manipulation, and retrieval of crop information, facilitating tasks such as planting, harvesting, and crop management within the field.
Q3 - Array lists
The third FRQ the question was unique for how annoying and time consuming it was. However, this example was neither of those, the FarmerScorer class manages two ArrayLists: one for storing eco points and another for storing money earned by the farmer. The addScore method allows adding new entries for eco points and money to the respective ArrayLists. The calculateTotalScore method computes the total score for the farmer by summing up the money earned and assigning a weight to the eco points (assuming they contribute half to the score). This implementation demonstrates how ArrayLists can be used to manage and process dynamic data in a scoring system for a farming simulator.