Feb 19: Practice Quiz and lab
Lab 04: 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
-
Go to codingbat.com. Please do the following to set up your account:
-
Open the Create Account page.
-
Enter your JMU email address and a password you can remember for the CodingBat site.
-
After logging in, open Account Settings and enter your instructor's email address (shrestcx@jmu.edu) under Teacher Share.
-
In the Memo textbox, enter your name as "Last name, First name" (Ex:
Watson, Emma
).
-
- Be sure to login every-time. This will help you keep track of the coding problems you've attempted.
Part 2: Problem Solving
-
- Solve the following Logic-1 problems:
- For extra credit, solve this problem from from Logic-2: round_sum
- Put together these 4 (required) + 1 (extra credit) solutions for squirrel_play, caught_speeding, sorta_sum, alarm_clock and round_sum in a file called batlogic.py.
- Submit the file to Gradescope (below).
For more practice, work through the Warmup-1 problems. All of them have solutions available; try to solve them first before looking at the answer. You may also attempt more of the Logic-1 and Logic-2 questions. |