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
andrey2020 [161]
3 years ago
13

Write structured pseudocode to show the following: If you are at home, get comfortable and take a nap while you are sleepy, othe

rwise do not take a nap
Computers and Technology
1 answer:
marysya [2.9K]3 years ago
4 0

Answer:

Explained

Explanation:

pseudo code

START

If( you are at home)

             THEN

While(Sleepy)

            Take a nap

END while

 ELSE

              Don't take a nap

ENDIf

STOP

You might be interested in
Technician A says that the excessive length of a heater hose is intended to protect the heater core from undue stress. Technicia
hammer [34]
It is both true that <span>Technician A says that the excessive length of a heater hose is intended to protect the heater core from undue stress. Technician B says that excessive wear adds to the length of a heater hose, and a replacement heater hose should be roughly three to four inches shorter than its predecessor.  So the asnwer is letter B.</span>
6 0
4 years ago
Atieno is a musician who records music on her computer. Which devices do you think she would need the most?
AURORKA [14]

Answer:

Midi Synthesizer, Mic,Boom Mic, Laptop

Explanation:

At the end of the day a keyboard and a pc is all you need as the keyboard alone can cover nearly any instrument.

8 0
3 years ago
Which failure or flaw in a computer system causes an undesired outcome?
PIT_PIT [208]

Typical System that is what cause the failure

4 0
3 years ago
how to create a program that prime number include arraylist , and if not print the prime factors of the number.
4vir4ik [10]

Answer:

import math

# Python program for presenting all the prime numbers till an agreed numeral

prime=[]

def findprimeinanarray(n):

   print("Prime numbers admid", 1, "and", n, "are:")

   j=0

   flag=0

   for n in range(1, n + 1):

  # all prime numbers are greater than

      if n > 1:

         for i in range(2, n):

          if (n % i) == 0:

              flag=0

              break

          else:

              flag=1

      if flag==1:

          prime.insert(j,n)

          j=j+1

      else:

          continue

   print(prime[:])        

# A Python function for printing all the prime functions and a Python program to print prime factor

prime1=[]

j=0

# A function to print all the prime factors of a given number if it is not prime

def primeFact(num):

while num % 2==0:

    prime1.insert(2,0)

    num = num/2

 

# num should be odd at this breakpoint

# so we need a shift of 2 ( i = i + 2)

for i in range(3,int(math.sqrt(num))+1,2):

 

 # while i divides num , print i ad divide num

 while num % i== 0:

  num = num /i

 if  num >2:

     j=j+1

     prime1.insert(num,j)

 

 

print(prime1[:])

 

# program to test the coderint

n=600

findprimeinanarray(7)  

k = 45

primeFact(k)

Explanation:

import math

# Python program for presenting all the prime numbers till an agreed numeral

prime=[]

def findprimeinanarray(n):

   print("Prime numbers admid", 1, "and", n, "are:")

   j=0

   flag=0

   for n in range(1, n + 1):

  # all prime numbers are greater than

      if n > 1:

         for i in range(2, n):

          if (n % i) == 0:

              flag=0

              break

          else:

              flag=1

      if flag==1:

          prime.insert(j,n)

          j=j+1

      else:

          continue

   print(prime[:])        

# A Python function for printing all the prime functions and a Python program to print prime factor

prime1=[]

j=0

# A function to print all the prime factors of a given number if it is not prime

def primeFact(num):

while num % 2==0:

    prime1.insert(2,0)

    num = num/2

 

# num should be odd at this breakpoint

# so we need a shift of 2 ( i = i + 2)

for i in range(3,int(math.sqrt(num))+1,2):

 

 # while i divides num , print i ad divide num

 while num % i== 0:

  num = num /i

 if  num >2:

     j=j+1

     prime1.insert(num,j)

 

 

3 0
3 years ago
Write a program that prompts the user to enter two positive integers a and b with a &lt; b and then prints the list of all the p
Debora [2.8K]

Answer:

Written in Python

import math

a = int(input("a: "))

b = int(input("b: "))

for i in range(a,b+1):

    sqqrt = math.sqrt(i)

         if int(sqqrt + 0.5) ** 2 == i:

              print(i,end=' ')

Explanation:

This line import math library

import math

This line prompts user for user input (a)

a = int(input("a: "))

This line prompts user for user input (b)

b = int(input("b: "))

This iterates from a to b (inclusive)

for i in range(a,b+1):

This checks for perfect square

<em>     sqqrt = math.sqrt(i)</em>

<em>          if int(sqqrt + 0.5) ** 2 == i:</em>

This prints the number if it is a perfect square

              print(i,end=' ')

5 0
3 years ago
Other questions:
  • Using the lab's show ip sla statistics example, what does the failure count indicate about the web server?
    8·1 answer
  • The chief reason that family and friends are frequent targets of aggression is that
    6·1 answer
  • Enables businesses and consumers to share data or use software applications directly from a remote server over the Internet or w
    6·1 answer
  • When virtualization is used and bare-metal solutions are implemented, what is the item that resides between the virtual machines
    12·2 answers
  • Steps in the systems development life cycle​
    15·2 answers
  • Discuss the importance of top management commitment and the development of standards for successful project management. Provide
    10·1 answer
  • My speaker on my phone is not working, when I try and play music and videos the sound dosen't work. However my alarm works. Can
    9·2 answers
  • Anyone play Ps4 and wanna run up some warzone or Gta? Im M 16 so dont be a creep... :) ill mark brainliest if you drop gamertag
    8·2 answers
  • What necessarily happens when a photographer chooses to give either the aperture or the shutter speed priority?
    10·1 answer
  • Ill give alot of points if you answer: How do I get a 100 dollar ps4
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!