This assignment will enable you to continue learning the Swift coding language using Swift Playgrounds. You will complete the lessons in the app and then have the opportunity to choose a different robot to code and complete a task to demonstrate your understanding of the concepts.
Objective: Students will be able to code a robot of their choice using swift code on the Swift Playgrounds app that demonstrates their understanding of conditional code. Students who are able will have the opportunity to demonstrate their understanding of logical operators. Students will also be able to describe how they used these elements in their code and the process they took to complete the assignment.
Students will be able to demonstrate their understanding of:
Condition - something that you test that results in either true or false
Conditional Code - a block of code that will only run if something is true
Logical Operator (only for a 5) - a type of operator (a symbol that represents an action) that you can use to make your conditional code more specific.
Boolean (only for a 5) - a type that has the value of either true or false.
Video: If Statements and Video: Conditional Code
All done watching the videos? Move to #2.
2. Individually on your own Ipad but also working with your partner if you have one, complete the entire Conditional Code section. When finished with all lessons, show them to me. Make sure you are reading each lesson well. Make sure you are including if and or if else if statements in each level. If you do not, you may be asked to re-do the levels.
Finished? Ask Mrs. Thomen if you have time to complete Logical Operators.
Did she say yes? Move to #3.
Did she say no? Move to #4.
3. Individually on your own iPad but also working with your partner if you have one, complete the entire Logical Operators section. Make sure you are reading each lesson well. Make sure you are including the operators and if and or if else if statements in each level. If you do not, you may be asked to re-do the levels.
4. You and your partner if you have one need to choose a robot to use to complete this assignment (remember - it must be different than the first robot you chose). Let the teacher know what robot you will be using. Have your robot chosen and have told the teacher? Move to #5.
5. Once your group has decided on the robot you want to use, complete the robot specific Swift Playgrounds lessons on ONE iPad only. You will need to connect to the robot via bluetooth and connecting with multiple Ipads is not possible. Finished? Move to #6.
Click on the links below for robot specific help and instructions.
We are using a Lego Mindstorms
6. Complete Assignment 3.
You and your group are tasked with coding your robot to demonstrate your understanding of conditional code (and logical operators if you completed the training and are going for a 5). You have free reign as to what robot you want to use (you are only allowed to use each type of robot one time during the rotation) and what you want your robot to do for this assignment.
To go for a 3, you need to have at least 1 instance of conditional code in your coding sequence..
To go for a 4, you need multiple examples of the concepts and the code also needs to be the shortest code possible. You also need to include prior concepts; your code must also contain a function and a loop.
For a 5, you must include the requirements for the 4 but also need to construct something that your robot uses in the code you write. Additionally, you must have finished the Logical Operators Swift Playgrounds and also included Logical Operators in your code. If you and your group want to go for the 5, please conference with the teacher so you are able to obtain the building materials you will need.
If you are using the Lego Mindstorms, Dash or Sphero, you need to make a maze and use items in your maze that you place / build. If you are using a Drone, you need to make something your drone takes off on and lands on and / or something it flies through. If you are using the Meebot, you need to construct something the robot uses in his dance.
Once you have completed your code, create the Google Slides presentation that was sent to you in your Google Drive (you may have to share it with your partner) and include slides that have the following things:
Slide 1: Name and title of assignment
Slide 2: A screenshot of your code
Slide 3: An explanation of how you created the code, what your condition was and what your conditional code was. To get a 3 you need to include the words condition and conditional code your explanation. If you are going for a 4, you must highlight functions and loops as well. You also need to define them as well as include them and explain how they are related to what you did. If you are going for the 5, you must also include functions, loops, boolean values and logical operators. To go for a 5, you are taking on the role of a teacher and making it so anyone reading your paragraph would be able to reproduce what you did in your coding and completely understand the process.
Slide 4: A video of your robot completing your code.
Slide 5: Reflection - What obstacles did you face during this assignment? How did you persevere?
Click HERE to see the grading rubrics.