in java Write a JAVA application which has 3 methods. The main method invokes 2 other methods, namely: doAddition() and
Posted: Fri Jul 01, 2022 5:37 am
in java
Write a JAVA application which has 3 methods. The main methodinvokes 2 other methods, namely: doAddition() and doSubtraction().Both these methods should prompt the user to enter 2 numbers. Thefirst method should add the two numbers and the second shouldsubtract the two numbers entered. The answers should be displayedto the screen. The program should end with a message: “The End”
Write a JAVA application which has 3 methods. The main methodinvokes 2 other methods, namely: doAddition() and doSubtraction().Both these methods should prompt the user to enter 2 numbers. Thefirst method should add the two numbers and the second shouldsubtract the two numbers entered. The answers should be displayedto the screen. The program should end with a message: “The End”