Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRQ 2: Classes #2

Open
14 tasks done
rebecca-123 opened this issue Nov 18, 2022 · 1 comment
Open
14 tasks done

FRQ 2: Classes #2

rebecca-123 opened this issue Nov 18, 2022 · 1 comment
Assignees

Comments

@rebecca-123
Copy link
Owner

rebecca-123 commented Nov 18, 2022

Blog on 2019 FRQ 2

  • CollegeBoard 2019 FRQ 2

Hacks

Start with Person POJO. See that HashMap is built in.

  • Build tester method (public static void main) for Person Pojo. Test zero argument and all argument constructor. build toString method to display attributes of the class.
  • Correct the BUG in setStats! Currently, it won't let you do more than one date.
    • Add and modify stats
  • Build other attributes into POJO that were mentioned in project dialog at the beginning of this blog. Add 1 or more APIs. Use Issues to plan and track work.

Attributes

  • Height
  • Minimum steps to be considered active
  • BMI
  • BMI Classification

APIs

  • BMI
  • BMI Classification

setStats

  • Whether active based on steps
  • BMI
  • BMI Classification

SQL (Extras)

Start thinking about building other data into POJOs. Use your own example or alter it for a different application.

  • PBL/SQL Relationships. In POJOs you can define a relationship in SQL, the POJO Person and a POJO Day can be built to contain relationships (alternate to HashMap style). List is the interface and ArrayList is the implementation. It is possible to nest Lists in Lists for 2D. Read this article for Background.
@AadyaDaita
Copy link

AadyaDaita commented Nov 28, 2022

3/3

  • Finished all the hacks with details: 2.8
    • added a BMI clac
  • Has an extra StepTracker class as well: +0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants