Question: CHALLENGE ACTIVITY 2 . 1 2 . 2 : Type casting: Computing average kids per family. Compute the average kids per family. Note that the

CHALLENGE
ACTIVITY
2.12.2: Type casting: Computing average kids per family.
Compute the average kids per family. Note that the integers should be type cast to dou
Learn how our autograder works
548316.3271440.0082977
??? using namespace sta;
int main(){
int numkidsA;
int numKidsB;
int numKidsC;
int numFamilies;
double avgKids;
cin numKidsA;
cin numKidsB;
cin numKids C;
cin numFamilies;
avgKids = numKidsA + numKidsB + numKidsC / numFamilies;
cout avgKids endl;
Not all tests passed
x Testing with 1,4,5 and numfamilies =3
 CHALLENGE ACTIVITY 2.12.2: Type casting: Computing average kids per family. Compute

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!