Answer:
<u>Output</u>
Enter first number:
1
Enter second number:
2
Enter third number:
3
Enter fourth number:
4
Average: 2.5
Explanation:
Below is the java program to calculate the average of four numbers:-
import java.util.Scanner;
public class Average {
public static void main(String[] args){
int a,b,c,d;
double average=0.0;
Scanner s=new Scanner(System.in);
System.out.println("Enter first number: ");
a=s.nextInt();
System.out.println("Enter second number: ");
b=s.nextInt();
System.out.println("Enter third number: ");
c=s.nextInt();
System.out.println("Enter fourth number: ");
d=s.nextInt();
average=(a+b+c+d)/4.0;
System.out.println("Average: "+average);
}
}
One technical issue I had was on Windows 8.1, with the charm menu not working. The troubleshooting steps to fix it was I did CTRL+SHIFT+ESC to open task manager. I then found Windows Explorer and clicked "Reload." Then everything was fine.
Hope This Helped!
Answer:
Is it Multiple Choice Question?
Answer: science is the study of the world, and technology changes the world to solve problems.
Amost all professions include theuse of computers. Knowing a lot about them and the way they work could help you use them when needed in a work environment. It would also make an employer more likely to hire you.