subject

6.7 Code Practice Instructions
You should see a large block of code in the programming environment below. First, run this code to see what it does.

You should see that running this code generates a graphics window with five buttons, labeled "Happy", "Sad", "Angry", "Surprised" and "Emoticon". Each of these can be clicked on. The starter code for the Happy (face1), Sad (face2) and Emoticon (face5) faces are left empty below, and and the code for Angry (face3) and Surprised (face4) faces show completed emoticons when you click. You can click on the buttons to turn them on and also to switch between them.

There is a lot provided in the starter code below - functions, variables, and more. One thing you might notice is the word "global". We'll look at this term in more detail in the next lesson. For now, you don't need to know what this word does. In short, the word global is used whenever there is a variable in a program that appears both inside and outside of a function. Your code may not run as you expect it to without a global variable, so the keyword is used to indicate to the computer that the same variable should be used every time it appears in the program. For now, we are just drawing your attention to this keyword, but you will be dealing with it in more detail soon.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 23.06.2019 18:20
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
You know the right answer?
6.7 Code Practice Instructions
You should see a large block of code in the programming enviro...
Questions
question
Mathematics, 05.09.2021 18:00
question
Business, 05.09.2021 18:00
question
Mathematics, 05.09.2021 18:00
question
Mathematics, 05.09.2021 18:00
question
Mathematics, 05.09.2021 18:00
question
Chemistry, 05.09.2021 18:10
Questions on the website: 13722363