Question
two Caculator class in java program , please help feel in public class WeekCChallenge { public static void main(String[] args){ //1. create a new instance
two Caculator class in java program , please help feel in
public class WeekCChallenge {
public static void main(String[] args){
//1. create a new instance of the Calculator class
Operation Class operationObject = new OperationClass(); //2. call each of Calculator's instance methods: add, subtract, multiply, and divide // with arguments of your choice, assigning the result to the variables below
double additionResult; double subtractionResult; double multiplicationResult; double divisionResult;
//3. print the value of each of these variables to the console with a descriptive message
//4. implement the static fizzBuzz method in this class and call it from the main method }
public static void fizzBuzz(int m, int n, int[] numbers, String[] terms){
} }
public class Calculator {
public double add(double arg0, double arg1) { return 0.0; }
public double subtract(double arg0, double arg1) { return 0.0; }
public double multiply(double arg0, double arg1) { return 0.0; }
public double divide(double arg0, double arg1) { return 0.0; } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started