A. create the logic for a program that performs arithmetic functions. design the program to contain two numeric variables, and prompt the user for values for the variables. pass both variables to methods named sum() and difference(). create the logic for the methods sum() and difference(); they compute the sum of and difference between the values of two arguments, respectively. each method should perform the appropriate computation and display the results. b. modify the program in exercise1a so that the two entered values are passed to a method named getchoice(). the getchoice() method asks the user whether addition or subtraction should be performed and then passes the two values to the appropriate method, where the result is displayed



Answer :

Other Questions