Let's code the robot to grab, displace, and drop a bottle
Take a half-liter water bottle and fill it with water. Now, implement the following setup:
Let's start the activity!
Activity #1
Program your robot to grab the bottle from its position and drop it at the given drop location. Wait for 2 seconds after grabbing the bottle and display Bottle grabbed successfully. After dropping the bottle, display Bottle dropped successfully. You can play with the brick's light color and the sound blocks when various actions are performed. Try to solve this problem in the fastest time possible.
The sample code for the activity is given here:
Now, let's try a new challenge