Study guide
home lecture notes lecture notes study guide unit profile Past exams web comp staff details

[ Review questions ] [ Answers to review questions ] [ Lecture slides ]

module11

Required reading

---------------------------------------------------------
Textbook Martin 1994
Ch. 1, Appendix A
---------------------------------------------------------

Overview

Note that the QBasic (QuickBASIC) language can be found on nearly all IBM-compatible personal computers.

Read through Chapter 1, noting the correspondence to the problem-solving process described in Chapter 9 in Laudon and Laudon (1995).

If you have not done any programming at all before you might find the abstract nature of programming a bit hard to grasp at first. Often students suddenly "see the light" once they have tried a few examples. It's not a bad idea at first just to type in some of the simple examples we've given you (using Appendix A as a guide for entering and running programs) and just observe what happens. This experience will give you something concrete on which to base what you're reading. Unfortunately, programming languages are very unforgiving of typing mistakes, so you have to be very careful with your typing. A very simple typing mistake can cause all sorts of problems. If your program won't work, check that you have typed it in exactly as in the example given.


Review questions

REVIEW QUESTION 11-1Do the Chapter review exercises in Martin,p. 29.
REVIEW QUESTION 11-2Read through Appendix A so you know how to use the QBasic environment and develop the sample program on page 182.
REVIEW QUESTION 11-3Do at least the first three programming problems on page 29 of Martin, and do more if you can.
top of page


Answer pointers to Review questions

REVIEW QUESTION 1-1

REM Program name: INTRO.BAS
PRINT "We are having more fun than human beings should be allowed!"
END
REM    Program name: ADDRESS.BAS
PRINT "Program ADDRESS"
PRINT "Freddy Kreuger"
PRINT "13 Elm Street"
PRINT "Rockhampton Qld 4702"
END
REM    Program name: PYRAMID.BAS
PRINT "Program PYRAMID"
PRINT
PRINT TAB(40); "*"
PRINT TAB(39); "***"
PRINT TAB(38); "*****"
PRINT TAB(37); "*******"
PRINT TAB(36); "*********"
PRINT
END

top of page


[ Home ] [ CQU home ] [ Lecture notes ] [ Study guide ]
[ Unit profile ] [ Past exams ] [ Web comp ] [ Staff details ] [ Email list ]

For errors contact the Webmaster.
These pages were designed by BS Computer Solutions.
Copyright © 1997 Central Queensland University. All rights reserved.