![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 05.05.2020 23:31 AnimePo2020
In lab 8, we used top-down design to make a herd of turtles move across the screen. The main program is: def main(): welcomeMessage() # Writes a welcome message to the shell numTurtles = getInput() # Ask for number of turtles w = setUpScreen() # Set up a green turtle window turtleList = setUpTurtles(numTurtles) # Make a list of turtles for i in range(10): moveForward(turtleList) # Move each turtle in the list forward stamp(turtleList) # Stamp where the turtle stopped Write the complete function definition for getInput().
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 19:50
Python write an expression that executes the loop body as long as the user enters a non-negative number. note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds and report "program end never reached." the system doesn't print the test case that caused the reported message. sample outputs with inputs: 9 5 2 -1
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:00
What is the worst-case complexity of the maxrepeats function? assume that the longest string in the names array is at most 25 characters wide (i.e., string comparison can be treated as o( class namecounter { private: int* counts; int nc; string* names; int nn; public: namecounter (int ncounts, int nnames); int maxrepeats() const; }; int namecounter: : maxrepeats () { int maxcount = 0; for (int i = 0; i < nc; ++i) { int count = 1; for (int j = i+1; j < nc; ++j) { if (names[i] == names[j]) ++count; } maxcount = max(count, maxcount); } return maxcount; }
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
You know the right answer?
In lab 8, we used top-down design to make a herd of turtles move across the screen. The main program...
Questions
![question](/tpl/images/cats/istoriya.png)
History, 20.01.2021 19:00
![question](/tpl/images/cats/mir.png)
World Languages, 20.01.2021 19:00
![question](/tpl/images/cats/mat.png)
Mathematics, 20.01.2021 19:00
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 20.01.2021 19:00
![question](/tpl/images/cats/mat.png)
Mathematics, 20.01.2021 19:00
![question](/tpl/images/cats/en.png)
English, 20.01.2021 19:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
History, 20.01.2021 19:00
![question](/tpl/images/cats/mat.png)
Mathematics, 20.01.2021 19:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 20.01.2021 19:00
![question](/tpl/images/cats/en.png)
English, 20.01.2021 19:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 20.01.2021 19:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 20.01.2021 19:00
![question](/tpl/images/cats/istoriya.png)
History, 20.01.2021 19:00
![question](/tpl/images/cats/health.png)
Health, 20.01.2021 19:00