Case Study Solution
Case Study Solution
Case Study Solution
Case Study # 1
In this case study, you apply the software development procedure.
When performing the expressions, the variables are x and y. The input
values are whatever the user decides to use as a replacement for the
variables. Output will be the final answer after the new equation is
calculated.
Start Program
Display results
End Program
Hand Calculation:
x=8
y=12
x+y=20
int x, y;
x= userInputX;
y= userInputY;
x+y
x–y
y-x
x*y
x/y
y/x
x(x-1)/2
y(y-1)/2
x(x-1)/2 - y(y-1)/2
x * y / y + x / (y – x)
system.out.println("Answer : " )
3