import java.util.*; public class Z { public Z(int n) { z = n; } public int mod(int a) { int b = a % n if b < 0 b = b + n; } public int add(int a, int b) { int c = mod(a) + mod(b) return mod(c) } public int subtract(int a, int b) { int c = mod(a) - mod(b) return mod(c) } public int multiply(int a, int b) { int c = mod(a) * mod(b) return mod(c) } public int ai(int a) { for(int i = 0; i < z; i++)

after this I'm lost,

this is what the last two programs are supposed to do