Answered step by step
Verified Expert Solution
Link Copied!

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! image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions