Basic 9 Mr. Husch.

Slides:



Advertisements
Similar presentations
VARIABLES AND DEBUGGING Beginning Programming. Assignment Statements  Used to hold values in a variable  Calculates a result and stores it in a variable.
Advertisements

True BASIC Ch. 9 Practice Questions. What are the 4 errors? DIM arr(4) FOR X = 1 TO 4 READ arr(X) LET arr(X) = arr(X) * X PRINT What is the new Y INPUT.
True BASIC Ch. 6 Practice Questions. What is the output? PRINT X LET X = -1 PRINT X FOR X = 4 TO 5 STEP 2 PRINT X NEXT X PRINT X END.
Testing a program Remove syntax and link errors: Look at compiler comments where errors occurred and check program around these lines Run time errors:
Computing Theory: BBC Basic Coding Year 11. Lesson Objective You will: Be able to define what BBC basic is Be able to annotate BBC basic code Be able.
Control Structures CPS120: Introduction to Computer Science Lecture 5.
End of unit assessment Challenge 1 & 2. Course summary So far in this course you have learnt about and used: Syntax Output to screen (PRINT) Variables.
Introduction to Video Game Programming (VGP) Mr. Shultz.
Introduction to BASIC Programming Ken R. Hall, Ph.D. Ken R. Hall Consultants Portland, Oregon.
02/03/ Strings Left, Right and Trim. 202/03/2016 Learning Objectives Explain what the Left, Right and Trim functions do.
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
 What Does This Program Do? ACSL.  Frequently one must use or modify sections of another programmer’s code.  It is essential to be able to read and.
CCSA 221 Programming in C CHAPTER 3 COMPILING AND RUNNING YOUR FIRST PROGRAM 1 ALHANOUF ALAMR.
JUST BASIC Lessons 6 – 9 Mr. Kalmes.
what is computer programming?
Whatcha doin'? Aims: To start using Python. To understand loops.
Formatting Output.
Accumulators in Programming
Python 18 Mr. Husch.
Python 17 Mr. Husch.
Python I/O.
Python Mr. Husch.
Use proper case (ie Caps for the beginnings of words)
Number and String Operations
More Loops.
An Introduction to Python
Learning to Program in Python
In Class Programming BIS1523 – Lecture 11.
The Linux Command Line Chapter 28
4.1 Strings ASCII & Processing Strings with the Functions
Python 9 Mr. Husch.
Python 21 Mr. Husch.
Basic Lessons 7&8 Mr. Husch.
Python 17 Mr. Husch.
Python Lessons 9 & 10 Mr. Husch.
Arrays.
Python 19 Mr. Husch.
Just Basic Lessons 14 Mr. Kalmes.
Programming Control Structures with JavaScript Part 2
Game Over Module 4 Lesson 2.
Python Lesson’S 1 & 2 Mr. Kalmes.
Functions continued.
Just Basic Lessons 7&8 Mr. Kalmes.
Python 16 Mr. Husch.
Year 2 Spring Term Week 2 Lesson 4
Python Programming Mr Scicluna.
Basic Lessons 5 & 6 Mr. Kalmes.
Problem Input a number and print its table using while loop. In the end print Good Bye only once.
Year 2 Spring Term Week 2 Lesson 4
Just Basic Lessons 9 Mr. Kalmes.
JustBasic 10 Mr. Husch.
Python Inputs Mr. Husch.
Python Lessons 13 & 14 Mr. Husch.
Basic Mr. Husch.
Python 16 Mr. Husch.
Binder Turn-in Guidelines
JustBasic 16 Mr. Husch.
Python 19 Mr. Husch.
Python Lessons 7 & 8 Mr. Husch.
Python 10 Mr. Husch.
Python 18 Mr. Husch.
Just Basic Lessons Mr. Kalmes.
Python 4 and 5 Mr. Husch.
Python 8 Mr. Husch.
Python 13 Mr. Husch.
Unit 1: Intro Lesson 4: Output.
BASIC 17 Mr. Husch.
CS 1111 Introduction to Programming Spring 2019
Just Basic Lessons 8 Mr. Kalmes.
4.4 – List vs Array Exercise 4.1: Array Variables
Presentation transcript:

Basic 9 Mr. Husch

Objective Understand how to comment and write functions. Create functions in BASIC

What we know Input data Display with print Store data with strings and variables Control program with if…then and goto

What is new?

Len() The Len() function is a command that gives the number of characters in a string. We can also have functions loop information.

An example of looping

What did that program do? What numbers did it display and why?

Commenting: Use rem

Rem If you use rem on a separate line it can remind you what the program was supposed to do there. Your assignment is to write a program that will loop numbers 1-100 and put a reminder in it. Then you need to go back to your previous assignments and add reminder tags to them as well.

End of Lesson 9 Turn in the program, LASTNAME_100.BAS