Programming

Introduction to Computer Programming

Category Further Information.
QB Tutorial

Introducing computer programming using Microsoft’s QBasic. This Programming Tutorial, covers using the QB Editor, storage, variables, datatypes, mathematical formulas, conditionals and iteration (loop) structures).

To assist new programmers, a 5 Step Process to problem resolution is proposed and discussed to analyse a given problem and develop a computer program solution.

The notes make extensive use of diagrams (flow-charts) to assist the visual learner understand the concepts of program flow control.

Netizens. The file is large (50+ pages) and on a modem link it may be better to download the file to your local machine before viewing.

Lab 1.11.21.3

The introductory exercises for students to complete on their own, under supervision, as an introduction to using the QBasic Editor and simple variable assignments, formula creation.

  • Lab 1.1 - Exercises introducing the use of PRINT for getting output, and variations of using PRINT. Using color, and the semi-colon
  • Lab 1.2 - Exercises introducing use of VARIABLES and the INPUT for data entry from the keyboard
  • Lab 1.3 - Exercises which extends the use of formulas, and introduces the 5 Step Problem Resolution Process.
        Lab 1.3 is a foundation exercise for Project 1.
  • Lab 2.12.22.32.42.5

    The second set of lab exercises for students to practise use of program flow-control.

  • Lab 2.1 - Exercises using the IF / THEN / ELSE decision process
  • Lab 2.2 - Exercises using the SELECT CASE decision process.
        Lab 2.2 is a foundation exercise for Project 2.
  • Lab 2.3 - Exercises using the FOR NEXT loops (iterations)
  • Lab 2.4 - Exercises using the DO WHILE … LOOP iterations
  • Lab 2.5 - Exercise using the DO … LOOP UNTIL iteration.
        Lab 2.5 is a foundation exercise for Project 3.
  • Quiz 1Quiz 2

    Simple Quizzes to help students assess their level of understanding QBasic programming fundamentals.

    Projects

    Three projects that can be allocated throughout the study program to provide coursemarks. The project concepts allow for the question to be modified while still assessing the same skill sets.

  • Project 1 - assesses skills in manipulating mathematical values (using calculations). How to write a program analysis using the 5 step process, use of variables, print statements, mathematical calculations.
  • Project 2 - assesses skills in making calculations and using decisions (with IF or SELECT CASE)
  • Project 3 - assesses skills in using iterations (loops) and the skills in Project 1 and 2
  • Sample Project 1

    Sample Project 1 provides a detailed break-down of how Project 1 could have been written. The problem has been changed, but the methodology for solving the problem is still the same. The skills being assessed (a) Writing a plan using the 5 step process, and (b) Writing a program with mathematical formulas, use of variables, documentation.

    ZIPed Source Code

    Compressed: The source code for exercises shown in the notes. Download the files and un-compress by using WinZIP or a similar utility.

    MS Formative
    MS Project 1
    MS Project 2

    The Marking Schemes here are an example of one procedure for marking the assessment projects. MS Formative gives a marking scheme for the formative exercise project while MS Project X assesses the actual projects.

    The marking schemes are designed to be assessed in two separate blocks. The initial program design is collected and assessed before returning to students to complete their project.

    Select a topic to view the materials written on the topic.