Ask Question
16 June, 11:14

What are some programs that you have used that have condition-controlled loops and count-controlled loops?

+4
Answers (1)
  1. 16 June, 11:35
    0
    Some programs that we have used that have condition-controlled loops and count-controlled loops due to the following reasons.

    Explanation:

    Condition-controlled loops

    A program could be made more intelligent by programming it to avoid hazards. For example, if the robot vehicle is 3 cm from the edge of the table and you tell it to move forwards 5 cm, it will drive off the edge of the table. To stop this from happening, you might write a condition-controlled loop like this:

    move forward

    repeat until (touching table edge)

    Condition-controlled loops can be used to add a high degree of intelligence to a computer system.

    Count Controlled Loops

    A count controlled loop is a repetition structure that iterates a specific number of times

    You can write a count controlled loop using a

    while () loop.

    For example:

    counter = 0

    while counter < 5:

    print ("This will print 5

    times")

    counter + = 1
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What are some programs that you have used that have condition-controlled loops and count-controlled loops? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers