Answered step by step
Verified Expert Solution
Question
1 Approved Answer
correct me pls! Integere numkidsA, numkdsB, numkidsC, and numGroups are read from input. Declare a floating point variable avgGroups. Compute the average kids per group
correct me pls! Integere numkidsA, numkdsB, numkidsC, and numGroups are read from input. Declare a floating point variable avgGroups. Compute the average kids per group using floating-point division and assign the resut to avgGroups. Ex. If the input is 9263 , then the output is: 5.67 The average kids per group is computed by first finding the sum of numkidsA, numkidsB, and numkidsC, and then dividing the sum by numGroups. To perform floating point divitior, either the numerator or denominator is cast to a double. Dividing a double by an integer (or an integer by a double) causes the integer to be implicitly converted to a double, resuting in a double value. Not all tests passed X 1: Compare output a Output differs See highlights below. Input Your output Expected output. 2. Compare output A Output differs. See highlights below. input Your output
correct me pls!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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