1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
julsineya [31]
3 years ago
5

Assume the availability of a function called printStars. The function receives an int argument. If the argument is positive, the

function prints (to standard output) the given number of asterisks. Thus, if printStars(8) is called, ******** (8 asterisks) will be printed. Assume further that the variable starCount has been declared and initialized to a some integer, possibly negative or zero. Write some code that does nothing if starCount is not positive but that otherwise prints starCount asterisks to standard output by: first printing a single asterisk (and no other characters) then calls printStars to print the remaining asterisks.
Computers and Technology
1 answer:
uranmaximum [27]3 years ago
8 0

Answer:

The python program is given with appropriate comments

Explanation:

#Implementation of printStars function

def printStars(n):

  #check if n is greater than 0

  if n>0:

      for i in range(n):

          print ('*', end="")

#Declare starCount and initialize some negative integer

starCount = -8

if starCount>0:

   print ('*', end="")

   printStars(starCount-1)

You might be interested in
Recall that the Counter class initializes itself to 0 and allows a client to increment it, and the Increase class is initialized
artcher [175]

Answer:

Output can be 0 or 1 or 2.

Explanation:

As we are initializing the value with 2 so at most it will increment to 2 times means value will be 2.

when main thread is printing the c , Increase thread might be started or might not be started

so output can be 0 or 1 or 2

4 0
4 years ago
Cuando hablamos de entornos digitales de enseñanza aprendizaje a que nos estamos refiriendo
olga2289 [7]

Answer:

Al hablar de entornos digitales de enseñanza y aprendizaje, la frase apunta al avenimiento de medios informáticos y tecnológicos al proceso metodológico de enseñanza de los distintos sistemas educativos a nivel mundial.

Así, la irrupción del internet como medio de búsqueda de información y las herramientas digitales como vídeos, diapositivas y libros electrónicos como métodos de presentación de información han facilitado el acceso de los alumnos y docentes al conocimiento a través de la generación de un entorno digital que permite a estos un acceso mas rápido y abarcativo al conocimiento.

7 0
3 years ago
Why do we install doorbells in our house
Vinil7 [7]

Explanation:

It's placed near the door. When a visitor presses the button, the bell rings inside alerting you that someone is at the door.

6 0
3 years ago
Read 2 more answers
One reason it is important to write code that is readable is that
kramer

Answer:

The answer is D:)

Explanation:

D) it makes it easier to follow when revisions or updates are called for.

8 0
3 years ago
Read 2 more answers
____ is a broadband wireless transmission technology that is based upon a series of IEEE standards.​
dedylja [7]

Answer:

"WiMAX" is the correct answer for the above question.

Explanation:

  • WiMAX is a broadband wireless technology that follows the IEEE standard. This full form of this technology is "Worldwide Interoperability for Microwave Access".
  • This technology is used to control the media and provide the physical layer.
  • The above question asked about the term which follows the IEEE standard. So the term is "Wimax"

3 0
4 years ago
Other questions:
  • In Asch’s study which of these lowered conformity rates
    7·2 answers
  • A time-saving strategy that helps define unfamiliar words involves using
    13·2 answers
  • A _____ is inserted so that a portion of a document that can have different formatting from the rest of the document. a. heading
    9·1 answer
  • If you are interested in working for a specific company, what type of job site should you look at for opening?
    12·1 answer
  • A method that movie distributors are adopting to make it possible to view movies instantly, without DVD, is known as:
    11·1 answer
  • PLZZZZ HELP!!!
    12·2 answers
  • Is Filmora 9 or Final Cut Pro Better for personal use?
    12·1 answer
  • When a browser is open on your computer, what browser tool is used to move the webpage to the previously viewed page on the brow
    8·1 answer
  • Tim is a project manager. He is brainstorming with his team about problems that could arise during the next phase of the project
    5·1 answer
  • Write an algorithm to print the odd number from 100 to 1​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!