Answer:
import java.util.Scanner;
public class TypeCasting {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int numKidsA;
int numKidsB;
int numKidsC;
int numFamilies;
double avgKids;
numKidsA = scnr.nextInt();
numKidsB = scnr.nextInt();
numKidsC = scnr.nextInt();
numFamilies = scnr.nextInt();
avgKids = (double) (numKidsA + numKidsB + numKidsC) / numFamilies;
System.out.println(avgKids);
}
}
Step-by-step explanation: