Unit 5. Classes

This is a long unit on a very important topic: writing our own classes. Since there is a lot of material, the unit is broken into two parts: 5A covers the basics of writing classes and 5B goes into more depth.

For Unit 5A, please complete the following methods at codingbat.com.

  • Any five of the Logic 1 Problems

  • Any five of the String 2 Problems.

For Unit 5B, please complete the following methods at codingbat.com

  • Logic 2: noTeenSum (write a helper method as suggested)

  • Logic 2: roundSum (write a helper method as suggested)

  • String 3: equalIsNot ( write a helper method that returns the number of times a string appears in another string)

  • String 3: gHappy (write a helper method similar to something on page 3 of the notes)

  • String 3: mirrorEnds (write a helper method that has a string parameter and returns the string in reversed order)

csa u5A notes 2020.pdf
csa u5A programs 2020.pdf
csa_u5B_notes_2020.pdf
csa u5B programs 2020.pdf