Page 1 of 1

Recent studies recommend limiting the screen time for kids. An elementary school teacher collected information about non

Posted: Sun Jul 03, 2022 12:01 pm
by answerhappygod
Recent studies recommend limiting the screen time for kids. Anelementary school teacher collected information aboutnon-educational daily screen time for ten kids in grade one. Thedata is stored in an input file named “input.txt”. The input filecontains the names of the students and the screen time for 7 days.Design an algorithm and write a C++ program that do the following:• Uses a loop to read the data from the file • Calculates theaverage screen time for each kid • Outputs the data and the averagescreen times as illustrated in the sample runs.