For this program you will create equation solvers for each of the three uniform acceleration equations.
INPUTS:
A user will pick an equation and enter known values as well as a "?" for the unknown value.
The user will click a button to have that equation solved.
OUTPUTS:
A display statement will be printed to the screen which includes the answer.
CRITERIA & CONSTRAINTS:
Your program should have an impressive interface. (colors and graphics)
A user can enter "g" for acceleration so you should check that and reassign it -9.81.
Create three functions called acceleration1( ), acceleration2( ) and acceleration3( )
You will have three buttons on your GUI, one for each function.
Create a variable called sheet to get the active sheet.
Create variables to represent parameters of each equation and use the .getValue on the sheet to hold the values the user enters.
Create an empty string variable called statement.
Check acceleration to see if it equals "g" if it does reassign it the value of -9.81.
You will be using if - else if - else if - else statements to check which variable contains the "?".
You will then solve for that variable and create an output statement.
At the end of each function, print the statement variable back to the GUI.
The trickiest part to figure out is when solving for time in the 3rd equation because it means you need to solve the quadratic.
A negative time is not physically possible, so you should check your times and print statements that contain only physically possible times.
Also if the discriminant is negative the problem is not physically possible at all. You should state this.
This Pseudocode is not as specific as past programs because you should be gaining enough experience to probably figure this program out with less help from me. If you have any questions feel free to discuss them with your instructor.