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

True or false? Recent genetic evidence indicates that there may be—in the roots of some plants—a response stimulated by the concentration of water in the soil.
Why did President Wilson send the U.S. Navy to occupy the port of Veracruz? A. U.S. sailors had been briefly arrested. B. Mexico was plunged into a violent rev
0,5.[tex]\sqrt{0,09}[/tex]-2.[tex]\sqrt{0,05}[/tex]+[tex]\sqrt \frac{1}{4}[/tex]
Please help!!!! I’m using Plato
if 8km=5miles.how many miles are in 56m?​
change the following basis to Base 10 134 in base seven​
the diagram shows a regular dodecagon. a) work out the size of one interior angle. b) work out the size of one exterior angle.
Imagine you are celebrating a birthday in December and need balloons. The temperature in the store where you are purchasing the balloons is approximately 25°C a
Question Progress -To Progress Find the equation of the ine shown.
plz help me with the attachment