Introduction to Text Based Coding. We’re learning to explore how text based programming works You will display and enter text into a window You will use.

Slides:



Advertisements
Similar presentations
SCRATCH Lesson Two – Interactive Concepts Using Sensing, Operators, and Variables.
Advertisements

Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Why care about debugging? How many of you have written a program that worked perfectly the first time? No one (including me!) writes a program that works.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
2440: 211 Interactive Web Programming JavaScript Fundamentals.
Microsoft Excel 2003 Illustrated Complete with Excel Programming.
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
Introduction to TouchDevelop
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Do Now Noticing skills What does input do?. Annotate your code to explain what happens name = input( “What is your name?\n” ) print(“Hello ”, name) Extension-Python.
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Python Programming Using Variables and input. Objectives We’re learning to make use of if statements to enable code to ask questions. Outcomes Build an.
Python Programming Introduction to programming using python.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
 Make sure you are subscribed to announcements on Moodle.  Activity 4 will be due 48hrs after your lab ends.
Introduction to TouchDevelop
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
Comments in Java. When you create a New Project in NetBeans, you'll notice that some text is greyed out, with lots of slashes and asterisks:
Structured Programming: Debugging and Practice by the end of this class you should be able to: debug a program using echo printing debug a program using.
Python Programming Using Variables and input. Objectives We’re learning to use basic knowledge of variables combined with user input. Outcomes Continue.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
When I want to work with SQL, I start off as if I am doing a regular query.
VARIABLES Programmes work by manipulating data placed in memory. The data can be numbers, text, objects, pointers to other memory areas, and more besides.
CS320n –Visual Programming More LabVIEW Foundations.
My Python Programmes NAME:.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
Lesson - 2. Introduction When we make a program we must follow some steps, called Programming Development Life Cycle (PDLC). Programming steps are five:
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
More Sequences. Review: String Sequences  Strings are sequences of characters so we can: Use an index to refer to an individual character: Use slices.
My Project By. What did I set out to achieve? List your objectives and tasks.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
Creating and Editing a Web Page
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
1.1: Objects and Classes msklug.weebly.com. Agenda: Attendance Let’s get started What is Java? Work Time.
Logical Operators.  Quiz  Let's look at the schedule  Logical Operators 2.
LO: We’re learning to outline a program using Pseudo Code.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
JavaScript 101 Lesson 6: Introduction to Functions.
How to fix Error code 0x80072ee2 in Windows 8.1? Fix%20%20Update%20Error%200x80072EE2%20in%20Windows%20 8.1,%20Windows%2010!%20-%20Fix%20PC%20Errors.htm.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Fix: Windows 10 Error Code 0x in Mail App u/6/b/ /alexwaston14/reimage-system-repair/ /pages/Reimage-Repair-Tool/
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
Learning to use a ‘For Loop’ and a ‘Variable’. Learning Objective To use a ‘For’ loop to build shapes within your program Use a variable to detect input.
IE 8580 Module 4: DIY Monte Carlo Simulation
CS170 – Week 1 Lecture 3: Foundation Ismail abumuhfouz.
Variables, Expressions, and IO
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Cracking the Coding Interview
Introduction to TouchDevelop
Mini Python Project Lesson 3.
Introduction to TouchDevelop
Spot the bug!.
Explain what touch develop is to your students:
PYTHON LESSON 5 Mr. Kalmes.
Running a Java Program using Blue Jay.
Introduction to Python
Introduction to Python programming for KS3
Python 4 and 5 Mr. Husch.
Hardware is… Software is…
Presentation transcript:

Introduction to Text Based Coding

We’re learning to explore how text based programming works You will display and enter text into a window You will use variables with in a program Objective

Teacher Lead Activity: What is a variable?

Small basic should be found in your program files: Open Up Small Basic

What is small basic Click here to RUN your codeEditor – Used to write code Check this area, from time to time you will see some help. These tips may show you how to solve a problem with your code.

Teacher Lead Activity Type in the code shown in the window above. You should notice that it changes colour. This is to help you to spot the code. Push the run button when you’re finished. What happens?

Can you spot what is wrong with this code? Have you noticed anything else about the code which you haven’t learnt about yet?

We’ve left out a number of things? We’re missing a number of brackets, this will stop our programming from running. Commas, brackets or symbols which are used incorrectly cause a SYNTAX error. This is why we need to test regularly in our code. Throughout your time at UCC you must show evidence of testing / fixing your code What else have you noticed?

A variable is like a bucket / storage container When you code, you need to use a variable as a way of storing data. You can see that this example uses Name. This will store the information. We use the + symbol to concatenate the information. If you had a sock draw…. You wouldn’t put t-shirts in it? If you had a pencil case…. You wouldn’t put your lunch in it would you? This is why it’s important to name our variables carefully. I’ve included the fixed example below:

Task 1: - You’re required to write a program which asks a number of questions about a person. It should respond by repeating the information and saying something nice to them. Here is an example: In a word document, you should show evidence of your testing and you should also comment on any errors you have had. Challenge: - Use the internet to find out how you can use an IF statement in Small Basic. What does it do and can you give an example within your own work.

Task 2: - Ever worked in a team? Ever had a friend off sick? Sometimes programmers need to continue your work. This is why we use commenting, it explains what you were doing or what the specific section of code is for. When coding in SMALL BASIC an apostrophe is used to help us comment our code. Have a look at the example below: Using the snipping tool, finish your code and comment on it. Explain what is happening. At the end of your document explain why we comment code and also the definition of a variable.

What is wrong with it?