Write down a java multithreaded program
Step-1: to get two or more complex mathematical expressions as
an input which must have at least one addition operation, one
subtraction operation, one multiplication operation, one division
operation.
Step-2: If an expression is not fulfilling the above-said
criteria,it has to throw your own custom-defined exception namely,
ConditionNotSatisfiedException.
Step-3: If an expression is having any other operator other than
these operations, it has to throw your own custom-defined exception
namely, UnSupportedOperatorException.
Ste-4: Implement each operation as separate thread and evaluate
the expression as per the operator precedence by calling the
appropriate thread. Final answer must be in two decimal digits
precision. [Thread1:add(),Thread2:sub(),Thread3:Div,
Thread4:mul()]
Write down a java multithreaded program Step-1: to get two or more complex mathematical expressions as an input which mu
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am