understandingprogrammingBlanH

Log on to MyON to read the book Understanding Programming and Logic


 * 1) Read the book and take the quiz at the end to score at least 4 out of 5.
 * 2) After reading the book, go back to answer the questions below.
 * 3) Create a wiki page called UnderstandingProgrammingYourWikiName.
 * 4) Copy the questions below, paste them on your wiki page, then define the terms and answer the questions.

**Introduction: What are computer programs?**

 * 1) Definition of **Computer programs**: A collection of instructions that performs a specific task when executed by a computer.

Chapter 1: Logical Reasoning

 * 1) Definition of **Logical reasoning**: The process of using a rational, systematic series of steps based on sound mathematical procedures and given statements to arrive at a conclusion.
 * 2) Definition of **Algorithm**: A process or set of rules to be followed.
 * 3) Provide a brief list of a series of steps you follow to complete a task such as making a cup of hot chocolate.
 * 4) Definition of **Sequence**: A particular order in which related events follow each other.
 * 5) **Application**: Write a sequence of steps to create a link to a new page on your wiki.

Chapter 2: What is Computer Programming?

 * 1) Definition of **Commands** - Give an order.
 * 2) **Application**: Think of Scratch commands. Write a sequence of instructions that would make the Scratch Kitty move a distance, turn right at 90 degrees, then move forward at a distance again.
 * 3) Definition of **Repeat Sequence**: Patterns of nucleic acids that occur in multiple copies throughout the genome.
 * 4) **Application**: If you wanted a sprite in Scratch to do a series of commands for 10 times, what Scratch control command would you use?
 * 5) Definition of **Procedure**: Official way of doing something.

**Chapter 3: What can I do with Computer Programming?**

 * 1) Who is recognized as the first computer programmer? What did this person do?-
 * 2) What was the first programmable machine?-
 * 3) Definition of **Computer simulations**: Computer program that attempts to simulate an abstract model of a particular system.
 * 4) **Application**: Provide an example of how a computer program controls things.

Chapter 4: How do I Use Computer Programming Languages?

 * 1) Definition of **Program Languages**: Formal computer language.
 * 2) **Application**: Name a programming language you have studied.
 * 3) Definition of **Input and Output**: Devices for communication between computers.
 * 4) Application: Name an example of a sensor.
 * 5) Definition of **Flow Chart**: A diagram of the sequence of movements or actions.
 * 6) Definition of **Subroutines**: A set of instructions designed to perform frequently used operation within a program.

Chapter 5: What do I do When My Program Doesn't work?

 * 1) **Application**: What is a reason that apps on your phones or iPads or computers sometimes need to be updated?
 * 2) **Golden Rules of Programming** are don't repeat yourself, name your variables to say what they are for not what data type they are, give your methods a clear name for what they are going to do, don't use magic numbers or string literals, write your methods so they can be tested without having any dependencies on other parts of the application where possible, don't be afraid to ask for help, follow the boy scout rule, share knowledge with others, don't interrupt your colleagues whilst they are in flow, and use criticism as a postive instead of a negative.

View the sequence of Scratch commands in the diagram below. Using the numbered list, explain from first to last the correct sequence of actions or events that will happen in the Scratch program. 1. When this sprite is clicked it will perform an action. 2. The sprite will go to x:0 y:0. 3. The sprite will set size to 100%. 4. The sprite will show. 5. The sprite will glide 1 seconds to x:188 y:-99. 6. The sprite will say Hello! for 2 seconds. 7. The sprite will repeat 10 times. 8. During repeat 10 times the sprite will play sound meow until done. 9. During repeat 10 times the sprite will wait 1 seconds. 10. The sprite will hide.
 * Summary: **

View the program below. What is the bug in the program? Explain how to fix the bug.- Show is last instead of hide, they switched and need to be switched again.