I've included my code in the picture below. Best of luck.
Answer:
Explanation;
else
System.out.println("f1 and f2 are not equal");
switch (input.charAt(0)
{
case '+':
f3 = f1.add(f2);
System.out.println("f1+f2=" + f3);
break;
case '-':
f3 = f1.subtract(f2);
System.out.println("f1-f2=" + f3);
break;
case '*':
f3 = f1.multiply(f2);
System.out.println("f1*f2="+f3);
break;
case '/':
f3 = f1.divide(f2);
System.out.println("f1/f2="+f3);
break;
default:
System.out.println("Illegal command: " + input );
break;
}
}// end of while loop
} // end of main
}
Note ; this is the last part of the programme check the attachment from 1-5 this is the 6th .
Answer:
Explanation: The first thing to calculate is what IP addresses are used by the largest LAN. Because the LAN has 100 hosts, 7 bits must be left for host bits.
Explanation:
Explanation: The first thing to calculate is what IP addresses are used by the largest LAN. Because the LAN has 100 hosts, 7 bits must be left for host bits.
Answer:
A = 120
B = 40
C = 70
Solution:
As per the question:
Manufacturer forced to make 10 more type C clamps than the total of A and b:
10 + A + B = C (1)
Also, 3 times as many type B as type A clamps are:
A = 3B (2)
The total no. of clamps produced per day:
A + B + C = 330 (3)
The no. of each type manufactured per day:
Now, from eqn (1), and (3):
A + B + 10 + A + B = 330
2A + 2B = 320
A + B = 160 (4)
Now, from eqn (2) and (4):
3B + B = 160
B = 40
Since, A = 3B
A = 
A = 120
Put the values of A and C in eqn (3):
120 + 40 + C = 330
C = 70