Lab8: CodingBat code practice

Background

CodingBat is a free site of live problems to build skill in Java and/or Python. It was created by Nick Parlante, who is Computer Science lecturer at Stanford. The name "CodingBat" was based on the Greek word "bat" meaning "this domain was available" (or so they say).

Part 1: Account Setup

  1. Go to codingbat.com and create an account (click the link on the upper right).
    Please use your JMU email when setting up your account.
  2. After logging in, click the "prefs" link (upper right) and "share to" your professor's JMU e-mail for example: chaoaj@jmu.edu so you will get credit.
    Also make sure your name is entered as shown: Last, First

Part 2: Problem Solving

  1. Work through at least 4-5 of the Warmup-1 problems. All of them have solutions available; try to solve them first before looking at the answer. 
  2. Some of the warm up problems will require you to use String methods like charAt, equals, length, and substring. Don't worry about any problems that require for loops; we'll get to that in a few weeks.
  3. Work through at least 4-5 of the Logic-1 problems you can solve today. At a minimum, solve the following: squirrelPlay, answerCell, caughtSpeeding. You may find (on CodingBat's site) the Boolean Logic videos 1 and 2 useful. 

You don't need to submit anything via Canvas today.  We will grade your progress directly from CodingBat.  We will use CodingBat in subsequent labs, and you are encouraged to work on CodingBat problems at any time.

Back to Top