Page 58 - My Own Workbook for CSEC Information Technology Examinations
P. 58

Program Implementation SECTION 8 COUNT-CONTROLLED LOOP
34. Easy Movers, a package delivery company, charge clients based on the total volume of the packages transported.
(a) Develop an algorithm which computes the total volume of a set of boxes, S. The algorithm should accept a value, S, representing the number of packages. For EACH package, accept its imensions (length, width and height) and after which the total volume of the packages should be computed and printed.
(b) Implement the algorithm using a programming language of your choice.
.......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... .......................................................................................................................................................................................................... ..........................................................................................................................................................................................................
Copyrighted material. All rights reserved.
104
IT-book-edited-8,3x11,7.indd 107 9/11/18 7:25 PM
DO NOT COPY THIS PAGE DO NOT COPY THIS PAGE DO NOT COPY THIS PAGE


































































































   56   57   58   59   60