a. Check validate input the integer numbers for a, b, c: If users enter the value of n not satisfied,show the error text "You must input an integer for a, b, c" to servlet. (1.0 point)
b. Execute: Find the least common multiple of 3 integers a, b, c, then output the result to servlet (Example: a=2, b=4, c=6 output: "12"). (1.0 point)
Hint: Function to find the least common multiple of 2 integers a, b
private int LCM(int a, int b) {
int al-a, b1=b;while (a != b) { if (ab) b=b+bl;else a = a + al;}return a;}
Question 2:
(3.0 points)
You are given a NetBeans template project (read more detail in the first page).
Zoom
+ 95%
Close