1.

Write a java program to Designa class called Result with amethodcalculate to accept the values a,b b.) print the values of x and Y where x = √a2+b7 and y = a2+b5/2a .​

Answer»

Answer:

Explanation:Skip to main contentThe physical connection between theLOAD MORE

WE'RE IN THE KNOW

This site is using COOKIES under cookie policy. You can specify CONDITIONS of storing and ACCESSING cookies in your browser

Company

About us

Blog

Careers

Terms of UseSafety Center  

Answered

Scanner in = new Scanner(System.in);

System.out.print("Input FIRST number: ");

int num1 = in.nextInt();

System.out.print("Input SECOND number: ");

int num2 = in.nextInt();

System.out.print("Input third number: ");

int num3 = in.nextInt();

System.out.print("Input fourth number: ");

int num4 = in.nextInt();

System.out.print("Enter fifth number: ");

int num5 = in.nextInt();

System.out.println("Average of five numbers is: " +

(num1 ......

+ num2 + num3 + num4 + num5) / 5);

}

}



Discussion

No Comment Found