Abstract
It is appropriate to consider the question of computer programming from the point of view of the reason for using the computer. In the context of this book, the computer is used to perform a defined mathematical task. Any overall task can be broken down into component tasks and it is preferable to think in terms of some relatively small component task at this stage. For example, suppose that a range of sizes are nominated for reinforcing bar and that it is necessary to calculate the perimeter and sectional area for each bar. Further, suppose that the diameters are given as 10, 12, 14, 16, 18 and 20 mm. The steps to the solution can be written down as:
-
(1)
Consider the first diameter D = 10.
-
(2)
Solve for perimeter P = π × D and area A = π × D2/4.
-
(3)
Repeat for all given bar diameters.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
Further Reading
Albrecht, R. L., Finkel, L. and Brown, J. R. BASIC, John Wiley, New York, 2nd edn., 1978
Brainerd, W. S., Goldberg, C. H. and Gross, J. L. Introduction to Computer Programming, Harper and Row, New York, 1979
Forsyth, R. The BASIC Idea. An Introduction to Computer Programming, Chapman and Hall, London, 1978
Author information
Authors and Affiliations
Copyright information
© 1984 W. H. Mosley and W. J. Spencer
About this chapter
Cite this chapter
Mosley, W.H., Spencer, W.J. (1984). BASIC Programming on a Microcomputer. In: Microcomputer Applications in Structural Engineering. Palgrave, London. https://doi.org/10.1007/978-1-349-17550-5_2
Download citation
DOI: https://doi.org/10.1007/978-1-349-17550-5_2
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-34090-5
Online ISBN: 978-1-349-17550-5
eBook Packages: EngineeringEngineering (R0)