Answered You can hire a professional tutor to get the answer.
I have a program that I'm working on and got stuck in the middle.
92.31
Test Case 2
Purpose
Invalid weights entered
Input
Data:
2183 3686 0 3515 3345 5358 3260 -2 3657 3062
Expected output
Computations:
ELBW: Values: -; Average: -; Percentage of total: 0
VLBW: Values: -; Average: 0; Percentage of total: 0
LBW: Values: 2183; Average: 2183; Percentage of total: 1 / 8 * 100 = 12.5%
NBW: Values: (all the rest); Average: 3697.571; Percentage of total: 7 /8 * 100 = 87.5%
Output:
Please enter the next birth weight, -1 when done: 2183
Please enter the next birth weight, -1 when done: 3686
Please enter the next birth weight, -1 when done: 0
That is an invalid weight.
Please enter the next birth weight, -1 when done: 3515
Please enter the next birth weight, -1 when done: 3345
Please enter the next birth weight, -1 when done: 5358
Please enter the next birth weight, -1 when done: 3260
Please enter the next birth weight, -1 when done: -2
That is an invalid weight.
Please enter the next birth weight, -1 when done: 3657
Please enter the next birth weight, -1 when done: 3062
Please enter the next birth weight, -1 when done: -1
Category Average Number % of Total
Extremely LBW 0.00 0 0.00
Very LBW 0.00 0 0.00
Low Birth Weight 2183.00 1 12.50
Normal Weight 3697.57 7 87.50