/* CH7B.C */ /* Analyzes transport of containers using a single van */ #include main () { /* Description ...... Prepare input file and read first container weight Initialise smallest load (=1000) Initialise trip number (=0) WHILE not at the end of the file Initialise total load and number of containers (both 0) WHILE van can take total load + current container and not at the end of file Add container weight to total load Increase number of containers by 1 Read next container weight IF total load < smallest load Store total load as smallest Increase trip number by 1 Display trip details Display smallest load Close input file */ /* const identifier */ /* variable declarations */ }