PROGRAM 3 Research shows that children in this age group are expected to grow 5%
ID: 3642690 • Letter: P
Question
PROGRAM 3Research shows that children in this age group are expected to grow 5% taller in one year. Write a program to do the following. Create two 10-element arrays, one to store the current heights and the other one to store the expected heights after a 5% growth. Ask the user to enter the current heights and store them in one array. Calculate the expected heights and store them in the other array. Display the current heights and the expected heights of the students.
TEST CASE
INPUT EXPECTED OUTPUT
Heights:
62 61 59 64 60
54 57 53 60 55 Current heights: 62 61 59 64 60 54 57 53 60 5
Expected heights: 65.1 64.05 61.95 67.2 63 56.7 59.85 55.65 63 57.75