CHALLENGE 1.13.1: Type casting: Computing average kids per family АCTIVITY Compute the average kids per family. Note that the integers should be type cast to doubles. 283902.1889792.qx3zay7 1 import...


Java


CHALLENGE<br>1.13.1: Type casting: Computing average kids per family<br>АCTIVITY<br>Compute the average kids per family. Note that the integers should be type cast to doubles.<br>283902.1889792.qx3zay7<br>1 import java.util.Scanner;<br>1 tast<br>3 public class Typecasting {<br>passed<br>public static void main (string [] args) {<br>Scanner scnr - new Scanner(System.in);<br>int numkidsA;<br>int numkidsB;<br>int numkidsc;<br>int numFamilies;<br>double avgkids;<br>4<br>All tests<br>7<br>passed<br>8<br>10<br>11<br>numkidsA = scnr.nextInt();<br>numkidsB = scnr.nextInt();<br>numkidsc - scnr.nextInt();<br>numFamilies = scnr.nextInt();<br>12<br>13<br>14<br>15<br>16<br>y* Your solution goes here */<br>17<br>18<br>19<br>System.out.printin(avgkids);<br>20<br>21 }<br>Run<br>Feedback?<br>

Extracted text: CHALLENGE 1.13.1: Type casting: Computing average kids per family АCTIVITY Compute the average kids per family. Note that the integers should be type cast to doubles. 283902.1889792.qx3zay7 1 import java.util.Scanner; 1 tast 3 public class Typecasting { passed public static void main (string [] args) { Scanner scnr - new Scanner(System.in); int numkidsA; int numkidsB; int numkidsc; int numFamilies; double avgkids; 4 All tests 7 passed 8 10 11 numkidsA = scnr.nextInt(); numkidsB = scnr.nextInt(); numkidsc - scnr.nextInt(); numFamilies = scnr.nextInt(); 12 13 14 15 16 y* Your solution goes here */ 17 18 19 System.out.printin(avgkids); 20 21 } Run Feedback?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here