Professional Documents
Culture Documents
1. Write a Java program to print 'Game On' on the console and then print
your name on a separate line.
Republic of the Philippines
AURORA STATE COLLEGE OF TECHNOLOGY
Brgy. Zabali,3200 Baler, Aurora, Philippines
Test Data:
85+103
Republic of the Philippines
AURORA STATE COLLEGE OF TECHNOLOGY
Brgy. Zabali,3200 Baler, Aurora, Philippines
3. Write a Java program to divide two numbers and print on the screen.
Test Data:
200/4
Expected Output:
50
Test Data:
a. -18 + 9 * 7
b. (99+109) % 7
c. 87 + -7*7 / 15
d. 56 + 78 / 11 * 89 - 9 % 4
Expected Output:
45
5
84
678
Republic of the Philippines
AURORA STATE COLLEGE OF TECHNOLOGY
Brgy. Zabali,3200 Baler, Aurora, Philippines
Test Data:
Expected Output:
125 + 24 = 149
125 - 24 = 101
125 x 24 = 3000
125 / 24 = 5
125 mod 24 = 5
Republic of the Philippines
AURORA STATE COLLEGE OF TECHNOLOGY
Brgy. Zabali,3200 Baler, Aurora, Philippines