Question: Define a method calculateNum ( 0 ) that has two integer parameters and returns the sum of the two parameters times 9 . Ex .

Define a method calculateNum(0) that has two integer parameters and returns the sum of the two parameters times 9.
Ex. If the input is 57, then the output is:
108
import java.util.Scanner;
public class NumberCalculator {
V= your code goes here ??
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
int numRead1;
int numRead2;
int result;
numRead1= scnr. nextInt () ;
numRead2= scnr. nextInt ();
result = calculateNum( numRead1, numRead2);
 Define a method calculateNum(0) that has two integer parameters and returns

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!