Please enable JavaScript.
Coggle requires JavaScript to display documents.
PhysicsSolver - Coggle Diagram
PhysicsSolver
String[] Equations
//List of all possible permutations of every physics formula
Import: Scanner
Import: ArrayList
While (True)
//Units
While (True)
//Problems
ArrayList<Double> variable;
//list of all variables in the problem
ArrayList<String> unit;
//list of the units to the variables in the question
String question = userIn.next()
//the question
If(
question
.equals())
// Command Checks
Switch (
Unit
)
Case 5:
// Unit 5: Projectile Motion
Variable[] possVars
//contains Xi, Xf, Yi, Yf, Vix, Vfx, Viy, Vfy, t, theta
// All are preset to (-100.0) except for Xi, Yf, Viy, and theta (set to 0.0)
Arraylist<String> solvent;
//what to solve for
//if this is a two-step process then an ArrayList is needed as you will need to solve for one variable before you can solve for another
println "\nProvided Variables:"
int start = 0
for (
question
.length())
//index i
//Goes through
question
to assign
possVars
if(
question
.charAt(
i
))
// if character is a digit or a negative sign
start
=
i;
1 more item...
for(
possVars
.length)
//index i
println values of possVars
//prints variables from
possVars
to follow header: 'Provided Variables:'"
If(
question
.contains())
5 more items...
("/end") //exits program
("/changeUnit") // breaks Problems' While (true)
("/toggleSpeed") // toggles the print speed (0 to 30 milliseconds)
String solution = "please input a valid question";
//what is returned after question is solved
int Unit;
//unit that we are currently working in