Required reading | ||
| --------------------------------------------------------- | ||
![]() | Textbook | Martin 1994 Ch. 1, Appendix A |
| --------------------------------------------------------- | ||
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 QUESTION 11-1 Do the Chapter review exercises in Martin,p. 29. REVIEW QUESTION 11-2 Read through Appendix A so you know how to use the QBasic environment and develop the sample program on page 182. REVIEW QUESTION 11-3 Do at least the first three programming problems on page 29 of Martin, and do more if you can.
REVIEW QUESTION 1-1
REM Program name: INTRO.BASPRINT "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
For errors contact the Webmaster.
[ Unit profile ]
[ Past exams ]
[ Web comp ]
[ Staff details ]
[ Email list ]
These pages were designed by BS Computer Solutions.
Copyright © 1997 Central Queensland University. All rights reserved.