Skip to main content
  1. /classes/
  2. Classes, Fall 2024/
  3. CS 2010 Fall 2024: Course Site/
  4. cs2010 Notes/

cs2010 Notes: 21 Full Code Recipe

·48 words·1 min·

https://homework.quest/classes/2024-09/cs2010/code-recipe/

A Pumpkin is an object with fields:

  • farmer: String
  • weight: Number, in lbs

We’re going to make a List of Pumpkins, then we’re going to follow the recipe to code a function to sort them by weight to help us hand out prizes at the state fair.

Nat Tuck
Author
Nat Tuck