Hey, guys i am really unsatisfied with my program concerning it's ouput:Can you help me in compiling and get the satisfied results
import java.util.*; class assignmentone { public static void main(String[] args) { Scanner console = new Scanner(System.in); double num1,num2,num3,num4,num5,sum,average; System.out.println("Enter five decimal numbers:"); num1 = console.nextDouble(); num2 = console.nextDouble(); num3 = console.nextDouble(); num4 = console.nextDouble(); num5 = console.nextDouble(); sum = num1 + num2 + num3 + num4 + num5; average = sum/5; System.out.println("Number roundedoff is" + (int) (num1 + 0.5) + (int) (num2 + 0.5) + (int) (num3 + 0.5) + (int) (num4 + 0.5) + (int) (num5 + 0.5) + (int) (sum + 0.5) + (int) (average + 0.5) ); System.out.println("The total is = " + sum +" and the average of the total number is = " + average); } }