subject

Compute the average kids per family. Note that the integers should be type cast to doubles. 3 public class TypeCasting {
4 public static void main(String[] args) {
5
Scanner scnr = new Scanner(System. in);
6
int numKidsA;
7
int numKidsB;
8
int numKidsc;
9
int numFamilies;
10 double avgKids;
11
12
numKidsA = scnr. nextInt();
13
numKidsB = scnr. nextInt();
14
numKidsC = scnr. nextInt();
15
numFamilies = scnr. nextInt();
16
17 V* Your solution goes here */
18
19
System. out. println(avgKids);
20
}
21 )
Run

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
Compute the average kids per family. Note that the integers should be type cast to doubles. 3 publi...
Questions
question
Mathematics, 21.11.2020 01:00
Questions on the website: 13722360