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

solve for x -[tex]\bold{x {}^{2} - 4 = 0}[/tex]ty! ~​
What is the molar concentration of a solution with a volume of 1.5 L containing 660 g Ca3(PO4)2?
What is the volume of a 0.40 M Nal solution that contains 0.20 moles Nal in it?
find the y intercept ​
107. We -------- a survey on workplace safety. A. explain B. accommodate C. conducted D. raise
what is the value of v2 below in the series circuit.​
The roof of a house rises 9 ft over a run of 12 ft. Determine the height of a vertical brace placed 8 ft from the low end of the roof.
A 7.30 kg sign hangs from two wires. The first wire is attached to the left end, and pulls 28.0 N directly left. What is the x-component of the force of the sec
Which gas is cycled into the atmosphere at the arrow? oxygen nitrogen water vapor carbon dioxide
graph g(x) = -8|x| +1