I cant accomplish the 4th and 5th requirements for no reason, in my opinion.
In the beginning i tried to round it up or down but nothing worked ( with int/double/float and in the end also with the Math.ceil/Math.floor)
Cant get it, pls help
package de.codegym.task.task06.task0612;
import java.lang.Math;
/*
Taschenrechner
*/
public class Taschenrechner {
public static int plus(int a, int b) {
int summe = a+b;
return summe;
}
public static int minus(int a, int b) {
int differenz = a -b;
return differenz;
}
public static int multiplizieren(int a, int b) {
int produkt = a*b;
return produkt;
}
public static double dividieren(int a, int b) {
double divident = (a/b);
return divident;
}
public static double prozent(double a, double b) {
double prozent = ((b/a)*100);
return prozent;
}
public static void main(String[] args) {
}
}