foxethan188 foxethan188
  • 14-02-2018
  • Computers and Technology
contestada

In java - compute the average kids per family. note that the integers should be type cast to doubles.

Respuesta :

pbzepplin
pbzepplin pbzepplin
  • 23-02-2018

The formula for calculating the average is simple: total number of kids/total number of families.

Note, while the kids and families will be integers, the average will likely be a double. Therefore, in Java, you need to type cast the result:

Average_kids_per_family =(double) total_number_of_kids/total_number_of_families

Answer Link

Otras preguntas

Help me with this problem
Can someone help me with question 6 please
Can any guide me to the right answer? It’s not 48 or 48.5
PLEASE HELP!!!!!!!!!! Is the point (2,6) a solution to the system?
A longer growing season is a result of onring
100 points answer asap At the end of the meal, my father leaned back and belched loudly, thanking my mother for her fine cooking. "It's a polite Chinese custom
Need help with this question :) THANKS
What are the key features of f(x) = 8x?
Q1) An average force of 50.0 N is exerted on a 4.0-kg cart for 2.0 seconds. a. What is the impulse? b. What is the change in momentum? c. What is the
Can someone help me with question 6 please