public class TrivialExample4
extends java.lang.Object
Sample run:
Enter the value for x: 10
Enter the value for y: 20
Enter the value for z: 30
Enter the function beginning with 'define user(':
define user(a, b, x) = x * max(a, b)
Enter the expression to be evaluated:
100000 + user(x, y, z)
The results are
x = 10.0, y = 20.0, z = 30.0, expression = 100600.0
Requires:
ExprEvaluator.java
EasyFormat.java
DoubleScanner.java
| Constructor and Description |
|---|
TrivialExample4()
Constructor for TrivialExample4.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Trivial main program that starts the application.
|