3. Write a program that checks the screen time of a child and repeats this procedure three times. While writing, consider the following tips: a) User should enter child's age, b) If the age of child...


C language


3. Write a program that checks the screen time of a child and repeats this procedure three times. While<br>writing, consider the following tips:<br>a) User should enter child's age,<br>b) If the age of child is less than or equal to 5, program should skip following statements,<br>c) If the age of child is greater than 5 , ask for screen time.<br>d) If screen time is between 0 and 2, print the message “ screen time is ok

Extracted text: 3. Write a program that checks the screen time of a child and repeats this procedure three times. While writing, consider the following tips: a) User should enter child's age, b) If the age of child is less than or equal to 5, program should skip following statements, c) If the age of child is greater than 5 , ask for screen time. d) If screen time is between 0 and 2, print the message “ screen time is ok". If screen time is greater than 2, print the message "screen time is too much" e) Output of the program should be as follows: Enter your child's age: 2 Your child should not look at a screen. Enter your child's age: 6 Enter your child's screen time: 1.5 Your child's screen time is ok Enter your child's age: 7 Enter your child's screen time: 3.5 Your child's screen time is too much.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here