milestone4 - variable so that they may be calculated....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Overview For our project in ENGR 132, our team decided that our program with MATLAB is to make a chemical balancer. The scope of our project is to look at any given equation and determine how to balance the elements using normal balancing, fast reaction, and/or slow reactions. 1.Function Specifications 1.1. Inputs are added in by the user and will be computed into a balanced equation 1.1.1. The user will type in the unbalanced equation as a string or as a vector of 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
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: variable so that they may be calculated. 1.1.4. If the equation enter is not valid (i.e. elements arent 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 University-West Lafayette.

Ask a homework question - tutors are online