Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PROGRAM 3 Research shows that children in this age group are expected to grow 5%

ID: 3642690 • Letter: P

Question

PROGRAM 3

Research 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

Explanation / Answer

#include int main() { int i; float array1[10]; float array2[10]; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote