Convert algebraic expressions to programming statements
Many times a programmer is given an algebraic formula, and must write an assignment statement that will correctly calculate the answer. After writing a statement, check it by hand, using sample values verify that the equation is correct. Use the following guidelines to convert algebraic expressions to programming statements:
Remember: Algebra uses single letters for variables: programmers should use good variable names wherever possible!