Programming Step 3
Figure out what variables and input data to use in the program. For this problem, we can choose based on the program description. Pounds and ounces will be whole numbers, so we can use the int for variables named pounds and ounces. Since the formula has floating point constant for converting ounces, we can choose data type float for a variable named grams. The result of the calculation will be this float variable.