# 6.1. Lab Requirement¶

As of 2014-2015 the Advanced Placement Computer Science A course must include at least 20 hours of hands-on labs. Three labs were created as exemplars and can be used to satisfy this requirement, but teachers can do other labs instead of these three. The three labs are Magpie, Picture, and Elevens. See https://apstudent.collegeboard.org/apcourse/ap-computer-science-a/course-details/lab-requirements for the student guides for each of these labs. Your teacher will provide the lab code to you. The particular code in each of these labs will not be on the exam, but the concepts covered by the labs will be on the exam.

# 6.2. Magpie Lab¶

The Magpie lab allows the student to work with the String class and conditionals with a chatbot. A chatbot is a computer program that tries to hold a conversation with a user. This chapter will walk you through the activities in the Magpie chatbot lab.

The first activity in Magpie is to explore some existing chatbots.

# 6.3. Activity 1: Exploring Chatbots¶

Go to https://sites.google.com/site/webtoolsbox/bots to try out some chatbots.

Record the chatbot response to each of the following.

• Where do you come from?
• asdfghjkl;
• My mother and I talked last night.
• The weather is nice.
• I said no!