Lab 11: 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 several of the Warmup-1 problems. All of them have solutions available; try to solve them first before looking at the answer.

  2. Solve as many of the  Logic-1 problems as you can today. At a minimum, solve the following:
    squirrel_play, caught_speeding, sorta_sum and alarm_clock

  3. Solve as many of the  Logic-2 problems as you can today. At a minimum, solve the following: make_bricks 
    and round_sum.

Submission: package up the 6 solutions to squirrel_play, caught_speeding, sorta_sum, alarm_clock, round_sum, and make_bricks in to a program called batlogic.py and submit it to https://gradescope.com 

Back to Top