This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: strings (if the user wants more than one answer). 1.1.2. Using the input of the user, the program will calculate each input in separate calculations and use a while loop to determine the number needed on each element to balance the equation. 1.1.3. In order to calculate the number needed on each element, we will need to define each variable so that they may be calculated. 1.1.4. If the equation enter is not valid (i.e. elements aren’t used on both sides), the program will report an error message informing the user that the equation is wrong. 1.2. Outputs of the program will be the balanced equation(s) 1.3. The outputs will be the coefficients of each side of the equation. 1.3.1. The coefficients on each side of the equations (on each element) will add up with the subscripts of each element so that elements on each side will be equal 1.3.2. The coefficients given back will be in the form float because some balanced equations are not always even integers....
View Full Document
This note was uploaded on 09/20/2011 for the course ENGINEERIN 132 taught by Professor Lee during the Spring '11 term at Purdue.
- Spring '11