Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CHALLENGE ACTIVITY 2 . 1 2 . 2 : Type casting: Computing average kids per family. Compute the average kids per family. Note that the
CHALLENGE ACTIVITY : 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 using namespace sta; int main int numkidsA; int numKidsB; int numKidsC; int numFamilies; double avgKids; cin numKidsA; cin numKidsB; cin numKids ; cin numFamilies; avgKids numKidsA numKidsB numKidsC numFamilies; cout avgKids endl; Not all tests passed Testing with and numfamilies
CHALLENGE
ACTIVITY
: 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
using namespace sta;
int main
int numkidsA;
int numKidsB;
int numKidsC;
int numFamilies;
double avgKids;
cin numKidsA;
cin numKidsB;
cin numKids ;
cin numFamilies;
avgKids numKidsA numKidsB numKidsC numFamilies;
cout avgKids endl;
Not all tests passed
Testing with and numfamilies
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started