<p>I hate to be that guy, but your code doesn’t work if there are multiple A’s and multiple swaps to be made. indexof only returns the first instance.</p>
<p>I used a for loop, if the current and next characters are A and not A then you add them in reverse order to the answer string and increment the counter by one more.</p>
<p>else you just add the current character to the answer string and move along. </p>
<p>Also for the gridworld problem all you had to do was make a constructor and overwrite the act method</p>
<p>I completely blanked out on part of the Director FRQ, and added a Color instance variable and changed that instead of using setColor/getColor. you guys think this would be penalized? </p>
<p>yeah basically you write the turnActors function into the act mathod…but that should be fine…The moves thing is complex because you can just check what the color is. And I seriously hope you incremented moves on the test. </p>
<p>Also, getOccupiedAdjacent locations gives you a locations array list, not actors. You have to use the grid’s get method for each of the locations to get the actors in that location. </p>
<p>yeah you can make a few mistakes and do well because the curve is more lenient</p>
<p>I’m taking Bio on Monday and that is the hardest AP there is. One silly mistake could doom you because only the top 5-6% of test takers get 5’s. I’ve been getting 5’s on practice tests, I just hope I don’t get nervous and do something stupid. After that I got Euro, and I’m home free because I got two finals and one of them is English :)</p>
<p>Sample worked-out solutions are up here - <a href=“Dropbox - 2014 AP FRQ's.zip - Simplify your life”>Dropbox - 2014 AP FRQ's.zip - Simplify your life;
The archive can be unzipped and imported directly into Eclipse. I wrote a driver class for each of the FRQ’s so you can verify that it works.
Note that this is how <em>I</em> solved the problems, with the exception of finding the price in FRQ#4, I did a complicated set of nested if’s on the test.</p>
<p>for question 4, I made instance variables of name and price, determined and set both in the constructor, and then just returned them for the methods. The price wasn’t hard. I just added together all possible combinations of 2(there were only 3) and set price equal to the highest one. </p>
<p>@yayitsme123 I’m a reader for APCS. Actually, it’s kinda fun to see all the different approaches that students take to a problem. It keeps us interested … considering that we read the same solution over and over for 8 hours a day :)</p>