
Module 2 - Making Decisions
In the next two weeks, we have two main goals. First, we’re going to dive deep into learning how to use “if” statements in Python programming. “If” statements are like the computer’s way of making decisions. For example, if a certain condition is met, the computer will perform a specific action. Learning this will let us create more interactive and smart programs. To make this process easier and more effective, we’ll continue to use ChatGPT, which is a tool that helps us write code quickly and accurately.
Our second big project is to start creating an our next chapter of our textbook. This won’t be just any textbook; we’ll focus on explaining how computers make decisions, which ties back to our first goal. Specifically, we’re going to zero in on the second chapter of the textbook, which talks about ‘decision structures’. This is just a fancy term for explaining the different ways a computer can make choices based on the information it receives. By working on these two goals together, we’ll get both practical coding experience and a deeper understanding of the concepts.
Over the next two weeks, here’s what you’ll be doing:
- You’ll learn the basics of decision-making in programming, specifically focusing on “if” statements.
- You’ll make your “if” statements more advanced by using “elif” and “else” statements.
- You’ll dive deeper into programming by using nested “if” statements.
- You’ll complete and submit Notebook 2 as part of your assignments.
- You’ll continue to use AI assistance for programming tasks with ChatGPT.
W3 Schools
https://www.w3schools.com/python/python_booleans.asp
https://www.w3schools.com/python/python_operators.asp
https://www.w3schools.com/python/python_conditions.asp
Recommended YouTube Videos
Create a Notebook Chapter on Decision Structures
Chapter Title: Decision Structures and Boolean Logic
1. What is Boolean logic?
Briefly explain what Boolean logic is and its applications.
Mention why it is useful in programming.
2. What are the comparison operators?
Go through each of the comparison operators and show when you would use them.
==, !=, >, <, >=, and <=.
3. The Conditional If Statements
Go over how to make decisions using the if, elif, and else statements.
Provide the code and explain how it works.
Create an if statement flow chart with examples, explaining how the decisions will be made.
Chapter Summary
Summarize the key concepts covered in the chapter.
Encourage students to practice writing code and experimenting with concepts.
Assignment Instructions
- In your notebook, create a well-organized chapter following the structure provided.
- Include explanations, examples, and where appropriate, screenshots.
- Feel free to add personal insights or observations.
Turn in Your Assignment
MMIS 6391 – After you finish creating your textbook chapter, save it as a PDF and upload the PDF to GeorgiaView.
CBIS 4210 – You will need to login to the OneNote “class” that was created for you. Create pages in Section 1 and add content into the OneNote.
Creating a PyCharm Video Tutorial for Control Structures
Assignment Description
For this task, you are to produce a step-by-step video guide that demonstrates the use of control structures, focusing on ‘if statements,’ in building a rudimentary Python application. You’ll employ the PyCharm IDE for project development and management. The objective of this assignment is twofold: to deepen your understanding of how to implement control structures for decision-making within your application and to refine your ability to convey complex information through a well-crafted video tutorial.
Objective
The main objectives of this assignment are:
- Gain a comprehensive understanding of how to use control structures, with a particular focus on ‘if statements,’ in Python programming.
- Continue to familiarize yourself with using PyCharm IDE for creating and managing a Python project.
- Learn the importance and implementation of control structures for enabling decision-making processes within a Python application.
Instructions
Topic Selection
Select a straightforward collection of applications to feature in your tutorial. Your examples should demonstrate the use of all Boolean logic operators: equals (==), not equals (!=), less than (<), greater than (>), less than or equal to (<=), and greater than or equal to (>=). Additionally, showcase various types of ‘if’ structures in your tutorial. Start with a standalone ‘if’ statement, progress to an ‘if-else’ pair, then include an ‘if-elif-else’ sequence, and finally illustrate a nested ‘if’ statement.
Video Tutorial Creation
- Coding Walkthrough: Create a step-by-step video tutorial demonstrating the process of using proper if statements.
Clarity and Communication
- Use clear and concise language to explain each step of the setup and coding process.
- Ensure that your instructions are easy to follow and suitable for an audience unfamiliar with if statements.
- Include visual aids like annotations, highlighting, and cursor tracking to guide viewers’ attention.
Video Format and Length
- The video should be between 7 to 10 minutes in length.
- Use screen recording software to capture your coding process.
- You can use video editing software to enhance the clarity and quality of the tutorial.
Submission
After you create your video upload it to your YouTube channel that comes with your school email address. You can set your video to unlisted, but be sure to make sure it can be viewed. Be sure to write a brief description of your video in the YouTube video description.
Upload your YouTube video link to the comment section of this assignment.
Upload your .py file to this Assignment.
Prepare for an in-class quiz where you’ll be tasked with building a functional application that uses decision structures and Boolean logic. Ensure you’re equipped with the skills to gather user input, establish variables, perform calculations, and generate output using f-strings.