Programming Step 4
Figure out the procedures or actions to take to convert the input to the output. In this case, you need to use the formula to make the calculation. Convert the algebra expression to a C assignment statement like this:
weight in grams = pounds x 454 + ounces x 28.35;
grams = pounds * 454 + ounces * 28.35;