2.2 Code Practice: Question 2
Earsketch
Earsketch Tutorial
Online Python Compiler
Digital Textbook
Python Code Visualizer
100 Days of Code
November 4
We continue with 11.two Lesson Practice. And so we move on to 11.3 Packets and Routers. Lesson 11.three, Packets and Routers, provides insight on how communication between systems is accomplished using packetized information and the way this information is routed through the internet.
Nov 3
Today we will take Test 9. The access lawmaking is turnip. So we will move to 11.one What is the Internet? In Unit 11, we are going to move away from Python and explore the world of the internet. You'll learn the rules that govern the internet and go along it running, the types of attacks the internet faces daily such equally hacking and Distributed Denial of Service attacks, and how the internet is protected and kept running. We'll also cover how the net can be accessed wirelessly through the use of radio waves.
Nov 2
Next is Assignment 9: Matrices. In math, a second list or assortment of numbers is chosen a matrix (matrices plural). Create and initialize a v ten 5 2D listing to match the matrix below.
0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 two 0 0 ii
November i
Now we will effort nine.six Animating with 2d Lists. As we've seen before, tracing lawmaking allows usa to think through the steps in a program and predict the outcome without actually running the program. Non only tin can tracing code help us notice errors in our own code, only it as well helps us empathise lawmaking written by another person. In this lesson, we will make changes to the programme nosotros looked at in the last lesson and so that we tin can produce a simple animation.
Utilize the programming environment on the 9.6 Lesson Folio to write code for a digital image of your choosing. Y'all tin can utilize the code we learned in Lesson 9.6 as a foundation. Open up a NotePad file and paste in the lawmaking from Lesson ix.vi, then open the html color picker and add boosted colors. Paste your code into the nine.6 environment and run it.
When y'all're ready to kickoff coding, render to Lesson ix.half dozen and begin writing your code in the programming environment there. Add colors, movement, and elements of your choosing. Once you've got an animation you're happy with, save and copy your lawmaking in your G-Bulldoze. Then, share your programme with me here.
Oct 31
Utilise the programming environment on the 9.5 Lesson Folio to write code for a digital image of your choosing. You can use the code nosotros learned in Lesson 9.5 as a foundation. Open up a NotePad file and paste in the lawmaking from Lesson ix.5, then open the html color picker and add together additional colors. Paste your lawmaking into the 9.5 surroundings and run it.
When yous're ready to first coding, render to Lesson 9.5 and brainstorm writing your code in the programming environment there. Add colors and elements of your choosing. Once you've got an image y'all're happy with, salvage and copy your code in your One thousand-Drive. Then, share your program with me here.
Oct 28
We finish the week with Quiz ix. The admission code is bamboo. Then we will motility to 9.4 Algorithms with second Lists In this lesson, we're going to learn how to use for loops to process 2D lists. In this instance, nosotros'll need 2 for loops: ane to handle the rows, and one to handle the columns.
Oct 27
Nosotros volition pick upward with 9.2 Lawmaking Practice. And then nosotros will move to nine.3 Loops with 2D Lists In this lesson, we volition code diverse algorithms that can work with second lists. The lawmaking we create will allow users to create various-sized 2D lists, fill a 2D list with random numbers, swap rows in a 2D list, bandy columns in an 2D list, and sum up the values in a column of the 2d listing. By using functions and parameters, users can easily target the specific rows, columns, or sizes of 2D lists that they would like to work with.
October 26
Today we will have Exam 8. And so we volition movement to 9.1 What is a 2D List? In Unit of measurement 9, we're going to cover two-dimensional lists. We can use 2nd lists to store information that is organized in a grid or a table.
October 25
Today is Assignment 8: Birthday Organizer. In this program, you will create a altogether organizer. Y'all will inquire the user for the name of a person and the calendar month they were born, forth with the mean solar day and year they were born. If the user incorrectly enters one of those values, a default value is set instead. The user can practise this for as many friends equally they would like. This assignment is worth 20 points, so you will take to debug as best y'all tin can before you submit it.
Oct 24
Next is 8.10 Writing a Simple Sort. In this lesson, you will learn to write a simple sort and the basics of how to rearrange data in a list.
October 20
The Whale List
Become to List Items - Information Types. Re-create the code below and paste it into the Try It Yourself window. Then add the code in the image and run it.
proper name = ["whale1", "whale2", "whale3", "whale4", "whale5", "whale6", "whale7", "whale8", "whale9", "whale10", "whale11", "whale12", "whale13", "whale14", "whale15", "whale16", "whale17", "whale18", "whale19", "whale20", "whale21", "whale22", "whale23"]
ten = [-67.43928,-68.51367,-68.4956,-67.9487,-63.41219,-63.2847,-63.44392,-63.26444,-62.21766,-62.68708,-62.14266,-61.43989,-61.64667,-61.30743,-61.15596,-61.10747,-61.23049,-61.21565,-61.04606,-61.0237,-61.24702,-61.0493,-60.91662];
y = [48.83191,48.67595,48.70041,48.81702,48.64912,48.57189,48.39717,48.40019,48.3109,48.37088,48.04738,48.09392,48.02449,48.07909,48.14254,48.08245,48.34054,48.01869,48.04373,47.91508,48.18848,47.83466,47.35136];
Whale List
October 19
We keep with 8.8 Sorting and Searching. In this lesson, we'll take some other look at algorithms and get introduced to 2 of the most important algorithms used in computer programming: searching and sorting. Later on this lesson, y'all'll be prepared to write your ain programs that include searching and sorting algorithms in the next ii lessons.
What is an algorithm and why should you care?
A guessing game
Sorting
Selection Sort Pseudocode
October 17
We begin the week with eight.5 List Methods. In this lesson, we'll learn several of the basic methods that bargain with lists in Python. Then we tin can accept Quiz 8. The admission code is thunder.
Oct 14
Next in Unit viii is 8.iii Chemical element vs Index. In this lesson, we'll look at how to populate a list with random numbers. We'll too learn how a list alphabetize is related to listing values, and nosotros will do using a single line of code to declare and fill, or initialize, a listing.
Oct 13
We start Unit 8 with 8.1 What are Lists?. In this lesson, we'll learn about a new type of variable called a listing. As we'll encounter, lists are variables that contain more ane piece of information.
Oct xi
We will start today with 7.6 Tracing Code. In this lesson, we will expect at how we can trace the executable steps of a program to predict what it does, decide potential errors, and expose any limits the program has in its execution. This will make us even better at debugging and evaluating our code. Then nosotros will commencement Assignment 7: Calendar . For this consignment, y'all will create a agenda program that allows the user to enter a day, calendar month, and year in three separate variables.
Oct ten
Nosotros begin Term 3 with 7.five Using Several Functions. In this lesson, nosotros'll have a look at how several functions can be used together. We will practice coding examples to see how several functions can be used together to create a desired outcome.
Oct 6
We begin today with Quiz 7. So we will kickoff 7.4 Returning Values. In this lesson, nosotros will revisit strings from earlier in the course, and wait at a diverseness of functions that tin be applied to strings. Nosotros'll also acquire how Python returns values from a function.
Oct v
We will move on to vii.ane What Are Functions?. In this lesson, we will exist learning about functions (or subprograms), and how to create them. The terms "function" and "subprogram" denote the same matter. First, we review some common functions we've already used to understand how these simplify code writing.
Oct iv
At present that you've submitted your code, it's time to reflect on your work. Reflection is an essential function of computer programming, because information technology allows u.s. to look dorsum on areas nosotros are proud of, place areas of growth, and celebrate the piece of work we've done. Afterwards reflecting on your plan, you'll likely know things you want to practise differently the adjacent time you kickoff coding.
Answer the Reflection Questions by writing directly in a Google Md. Make sure that you upload the completed questions in the submission link then that I tin can grade them. The reflection questions are worth 5 points out of xx total points for this consignment. Then we will take Exam half dozen. The access lawmaking is radio.
Sep 29-xxx
At present nosotros get to Unit six Assignment: Animation, you will create a complex animation using the simplegui module in Python. Your animation should include various components that tie in everything you lot've learned in this unit.
This consignment is worth 20 points. 10 points will be earned based on the quality of the code you write, 5 points volition be earned for successfully submitting a storyboard that outlines your plan for the blitheness, and five points will be earned for submitting a reflection on your work.
Below, read over the assignment description and begin to imagine what your animation could portray.
5 circles
5 polygons
5 line commands
2 for loops
1 global variable
This volition probably take more than than ane 24-hour interval.
Sep 28
For the Unit half-dozen Assignment: Animation, yous will create a complex animation using the simplegui module in Python. Your animation should include various components that tie in everything you lot've learned in this unit of measurement.
This assignment is worth 20 points. 10 points will be earned based on the quality of the code you write, 5 points will be earned for successfully submitting a storyboard that outlines your plan for the animation, and 5 points will be earned for submitting a reflection on your piece of work.
Beneath, read over the assignment description and begin to imagine what your animation could portray.
v circles
5 polygons
five line commands
two for loops
1 global variable
This will probably take more than than 1 day.
Sep 27
Side by side nosotros take on 6.8 Animation. We've all played video games, which are a perfect example of how far nosotros've come with computer animation. Underneath all of that activity is code - lots and lots of information technology. To make everything work correctly, nosotros need to kickoff with variables. Allow's learn more about basic animation using Python.
Sep 26
Today we will take Quiz 6. The admission lawmaking is bagel. Then we off to Today we volition take 6.7 Emojis. We see these little graphics every twenty-four hours, and have for granted how they're created. Everything we see needs to exist created past someone. In this lesson, that "someone" is you! We'll wait at how to create an emoji in Python, then you lot'll create your own.
Sep 22
Now nosotros volition piece of work with half-dozen.six Circles. The sail.draw_circle() function is like to what you've already done with the canvas.draw_polygon() and canvas.draw_line() commands: it's only a dissimilar shape. Yous will find these commands very helpful equally you proceed to work with graphics in your programs.
Sep 21
Now nosotros larn to Draw a Firm. In this lesson, nosotros're going to combine some of the drawing commands that we learned earlier, and use them to create a crude sketch of a house. After you understand the basics, you will take the code that Dana uses and add new items to create a house of your own in this lesson's Code Do.
Sep twenty
We continue with six.four Lines. I of the nigh basic graphics that you will come up across is a simple line. While it is a bones graphical element, it'due south nevertheless a petty more involved than drawing a line on a piece of newspaper. Where does the line offset? Where does it finish? What colour is it? In this lesson, we'll show you how like shooting fish in a barrel cartoon a line can exist. Nosotros will likewise do an assignment in Google Classroom.
Sep nineteen
We get-go the week with six.3 X & Y Coordinates. We've done a lot of work with information, which is the backbone of virtually programs. But, sometimes we need to format that data into something that looks more than visually appealing. Think about your math lessons, that use pie charts, graphs, and tables. Those visuals help readers meliorate empathise the data they are looking at. Permit's see how Python handles some basic graphics functions.
Sep xvi
We continue with 6.ii Colors and Loops. We alive in a colorful globe, and now we're going to add further color to the code we write! We'll apply color to the types of programming loops that we studied already. For this Code Practice, nosotros're going to jump over to an interactive Python site and learn about repetition with images. Once you've got the hang of repeating images, upload at least 6 of your images to Google Classroom.
Sep 15
We beginning with Unit six (nosotros are skipping Unit v) with 6.1 Color Code. Python isn't limited to merely numbers or calculations. You lot can add together colors to enhance your programs and make them more than interesting to your users.
Sep 13
We pick up with four.nine Summing. In this lesson, we will learn virtually summing using a for loop.
Sep 12
We start Term two with 4.8 Counting by Other Than 1. Nosotros learned that the range role tin have unlike parameters: range(10), range(x,y) and range(x,y,z). Let'southward expect at how a for loop uses these parameters to count past numbers other than 1. Afterword, we volition take Quiz iv. Admission Code kiwi
Sep 9
Today we look at a new part. 4.6 Range Function returns the sequence of the given number between the given range. The about common use of information technology is to iterate sequence type (Python range() List, cord, etc. ) with for and while loop using Python. Adjacent, nosotros'll await at For Loops.
Sep 8
Today we await at information once again with 4.4 Information Revisited and a review of looping. We've learned how to use various forms of data in previous lessons. Now, we are going to harness that data using some of the techniques we've recently learned. Before we move on to more advanced forms of loop, similar the for loop, let's pause to review what we've learned and so far. In this lesson, we'll elaborate on how while loops can exist used in our lawmaking and review central vocabulary.
Sep six
Today we take Examination three. The access lawmaking is hobby. And so it's on to 4.i Loops. Sometimes, in that location volition be actions that nosotros need to exist performed over and over over again. But, copying and pasting those commands several times is not the nearly efficient way of doing things. If we desire to relieve time and try, how can we streamline our code?
Sep 2
We'll do Assignment three: Chatbot. A chatbot is a reckoner program designed to emulate human conversation. For this program, yous will utilize if statements, user input, and random numbers to create a basic chatbot.
The Scenario
Yous have decided to design a mode chatbot that helps people option out their manner preferences. Your bot can gauge what types of clothes and accessories the user might like.
Your chatbot should ask the user the post-obit (minimum requirements for the grader) and and then give answers depending on the answers the user inputs:
at least 6 questions
at least 3 if-elif-else statements
the use of the random module and randomly generated numbers
Sep 1
Today nosotros take Quiz 3. The access code is cardigan. Then it'south on to iii.6 Defining Algorithms. We've been using algorithms for virtually of our lives, but never defined those activities in that way. Algorithms are only a set of steps or instructions used to solve a problem or attain a chore. You could make an algorithm out of all the activities you performed today earlier starting this lesson. And then, how do we apply algorithms to Python?
Aug 31
We continue Unit 3 with 3.four If – Else. We know how to use the if argument - withal, it tin can be a burden to write a divide if statement when we are simply trying to write code for when the initial statement fails. In these cases, the if-else statement lets u.s. write code for the failing scenario with ease.
Aug 30
We get-go Unit iii with three.two Uncomplicated Ifs. What happens when yous apply the "if" argument in your lawmaking? "If" acts every bit a gateway to farther actions. If something is truthful, then the program does something. If it'southward non true, and so it skips over that part and moves on in the programme.
Aug 29
We get-go the calendar week with Consignment 2: Room Area. For this lab, you will notice the area of an irregularly shaped room with the shape as shown in a higher place. Ask the user to enter the values for sides A, B, C, D, and Eastward and print out the full room surface area. Call back the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.five * the base * tiptop. Delight annotation the final area should be in decimal format.
Aug 26
We are going to talk almost 2.6 Big Data. Big Data are sets of data that are so large or complex that traditional data processing (calculators, spreadsheets) aren't capable of dealing with them. But, with the advances in memory and processing power, we tin chop-chop plow this information into valuable resources for usa to use.
Aug 25
Today we larn about random numbers. Generating Random Numbers is a lot like rolling dice. Every time you roll, you can get a different number betwixt 1 and half dozen. In Python, you're non limited to a fixed fix of numbers. And with the random module that we'll wait at in this lesson, you're not limited to numbers at all, only tin use other values equally well. Then we volition accept Quiz ii. The access code is tomato.
Aug 24
Nosotros'll finish upwards with 2.iii Code Practice, then motion on to two.4 Built-in Functions. Generating random numbers is a lot like rolling dice. Every fourth dimension you lot roll, you can get a different number between ane and 6. In Python, you're non limited to a fixed ready of numbers. And with the random module that we'll look at in this lesson, you're not express to numbers at all, but can use other values as well.
Aug 23
Today we learn a new kind of division. ii.iii Modular Partition . In this lesson, we'll larn a new way to do division, that focuses on the remainder subsequently two numbers are divided. We'll outset with a few examples of how we utilize modular partition and explicate why we should intendance near remainders.
Aug 22
Today we python into a calculator. 2.2 Basic Calculations . In this lesson, nosotros will learn how Python handles number calculations, the rules for basic operations, how parentheses are used in Python, how to use exponents, and the gild of operations.
Aug nineteen
Today nosotros will take Test i. Access Code salmon
Subsequently the exam, we will jump to 2.1 Computer History. In this lesson, nosotros will learn most the history of computers and explore how engineering has evolved over time.
Aug 18
We movement on to ane.9 Understanding Binary. For many of your classes, you may store information by writing notes into a notebook. Simply, how does a computer shop information it receives? In this lesson, we'll explore binary code, the system that computers apply to store information. Then we will jump to Assignment 1: Light-headed Sentences. We'll write a plan that will inquire the user for a series of words. Then plug them into our paragraph template. Write a plan that will enquire the user for a series of words. So plug them into our paragraph template.
Aug 17
We go along with 1.8 Analog vs. Digital. In this lesson, we volition look at data and how computers process the data we input.
Aug xvi
Nosotros volition starting time with one.7 Data Types and Variables. Y'all may have heard the discussion variable in a math grade before. In this lesson, we will learn how Python handles unlike types of data and variables, and how it stores that information.
Aug 15
We move on to 1.6 Input. In the previous lesson, nosotros learned about data computers send out to the user. In this lesson, we will acquire about the information that users transport into the computer. We'll also study variables and how they're used in Python.
Aug 12
Nosotros will end the calendar week with 1.5 Output There volition be some videos, a lesson practice (quiz), and then Lawmaking Exercise.
Aug 11
We volition continue with one.4 Hardware and Software There volition be some videos, a lesson practice (quiz), and and then nosotros'll leap to ane.four Lawmaking Practice: Question i.
Aug 10
We will begin with i.1 What is Computer Science? There will be some videos, a lesson do (quiz), and then we'll do the code practice.
Aug ix
Sign in to your online accounts
Go to Project Stem sign up with your school email account. Then bring together our form, course code 0541fd
So, go to Google Classroom and join class cyhfg2s
I don't know how much nosotros will use Classroom, but we'll set up it up just in instance.
I also want you to create a certificate in your Google drive named Python Notes. From time to time I'll ask you to add together to it.
Next go to Welcome to the course.
So, we'll wait at a short video called Code Stars.
CS Python Fundamentals is an introductory-level course for students brand new to programming and information science. In this form, yous will learn problem-solving strategies, software design, and the foundations of reckoner science. Yous'll do so using two key tools: the Project Stem programming environment and EarSketch, a software package that turns your lawmaking into music.
Not only will this class prepare you lot for standing your studies in figurer science (for example, by taking AP Computer Science A and AP Informatics Principles), merely it will also teach you how to recall like a scientist and solve existent-globe bug, skills that are important to every 21st-century denizen.
There are no prerequisites for this course, although y'all should have bones familiarity with how to operate a computer and use applications. It'due south too recommended that you have familiarity with basic algebra principles earlier starting this course.
Click here for the course syllabus.
This work is licensed nether a Creative Eatables Attribution-NonCommercial-ShareAlike 4.0 International License.
2.2 Code Practice: Question 2,
Source: https://im8x10.com/bowman/introAssignments.html
Posted by: gomezmosion88.blogspot.com
0 Response to "2.2 Code Practice: Question 2"
Post a Comment