Write a Java program to accept process number and two integer values from user. Than program will
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a Java program to accept process number and two integer values from user. Than program will check process number, class class
If process number is equal to 1 than program will run "addition"
If process number is equal to 2 than program will run "subtraction"
If process number is equal to 3 than program will run "multiplication" class
If process number is equal to 4 than program will run "division" class
Each class will accept 2 integer values from main program, than will make related process and will print the result.
Note : if entered process number is different than I to 4 than program will give an error message to enter value between 1 and 4, and if any negative value is entered than program will exit.
Posted Date: