Programming Step 10
After verifying that the program works correctly for the first set of data, we can assign the other two sets of data and calculate their weight in grams. After new values are assigned to the pounds and ounces variables, we have to recalculate the new weight in grams using the formula statement, and then print the result.