Task 3 - Analysis
This commit is contained in:
parent
5fb6c3d0cc
commit
cb6a59468d
BIN
Calculator.pcapng
Normal file
BIN
Calculator.pcapng
Normal file
Binary file not shown.
BIN
Error.pcapng
Normal file
BIN
Error.pcapng
Normal file
Binary file not shown.
@ -44,13 +44,6 @@ public class CalculatorClient {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
CalculatorClient client = new CalculatorClient("calc.sdi.hevs.ch", 80);
|
CalculatorClient client = new CalculatorClient("calc.sdi.hevs.ch", 80);
|
||||||
|
|
||||||
for(int i = 0; i<10; i++) {
|
|
||||||
String expression = String.valueOf(i) + "+" + String.valueOf(i);
|
|
||||||
System.out.println("Expression: " + expression);
|
|
||||||
double answer = client.calculate(expression);
|
|
||||||
System.out.println("Answer: " + answer);
|
|
||||||
}
|
|
||||||
|
|
||||||
String expression = "1-a";
|
String expression = "1-a";
|
||||||
System.out.println("Expression: " + expression);
|
System.out.println("Expression: " + expression);
|
||||||
double answer = client.calculate(expression);
|
double answer = client.calculate(expression);
|
||||||
|
Reference in New Issue
Block a user