Programming Step 9 (cont.)
Compiling the program now has no errors or warnings. We can run it to see the output:
The total weight in grams is 4511.250000
- If you have told the compiler to use floating point library file (e.g., select Make Library file list File 86--DSF.LIB Enter DONE) you will see:
The total weight in grams is (non-float printf)
- A review of our initial calculations shows this is the correct answer. If the two answers did not agree, I would check the formula, and the calculation in the assignment statement to see where the problem was.