We now consider the scientific program of Fig. 8.1 which reads two experimental measures and performs certain computations on them. As it stands, this program could cause several problems for the user:
If there is an odd number of data points, an error will occur.
If m2 is less than mlim, the square root cannot be calculated.
If VSqrt is equal to vlim, division is impossible.
KeywordsCase Statement Statement Sequence Lower Case Letter Exit Statement Repetitive Action
Unable to display preview. Download preview PDF.
© Springer-Verlag Berlin Heidelberg 1985