From 944594934221ff2657515b3cc2e114ba416da9dd Mon Sep 17 00:00:00 2001 From: nagukab2 Date: Tue, 27 Oct 2015 19:07:45 -0500 Subject: [PATCH] Remainders and Power It should work for the the remainder, but I'm not sure on the Power Function --- Calculate.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Calculate.java b/Calculate.java index a533e29..c10b134 100644 --- a/Calculate.java +++ b/Calculate.java @@ -15,4 +15,15 @@ public double mult(double x, double y) { public double div(double x, double y) { return x / y; } + public double remainder(double x,double y){ + return x % y; + } + public double square(double x, double y){ + int sum=0; + for(int i=1; i