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
DiKsa [7]
4 years ago
14

An array of strings , names , has been declared and initialized . write the statements needed to determine whether any of the th

e array elements are null or refer to the empty string . set the variable hasempty to true if any elements are null or empty-- otherwise set it to false .
Computers and Technology
1 answer:
OLEGan [10]4 years ago
3 0
#Python

hasempty = False
for name in names:
   if ( not name ):
      hasempty = True
      break  # speed things up
You might be interested in
Write an application that prompts a user for two integers and displays every integer between them. Display There are no integers
olga2289 [7]

Answer:

x = int(input("Enter an integer: "))

y = int(input("Enter another integer: "))

if x > y:

   for number in range(y+1, x):

       print(number, end=" ")

elif y > x:

   for number in range(x+1, y):

       print(number, end=" ")

else:

   print("There are no integers between {} and {}".format(x, y))

Explanation:

*The code is in Python.

Ask the user to enter the two integers, x and y

Since we want our program to run regardless of which entered value is larger, we need to compare the numbers to be able to create the loop that prints the numbers.

Check if x is greater than y. If it is, create a for loop that iterates from y+1 to x-1 and print the numbers

Otherwise, check if y is greater than x. If it is, create a for loop that iterates from x+1 to y-1 and print the numbers

If none of the previous part is executed, print that there are no integers between

4 0
3 years ago
Introduction to Programming Workbook
Lapatulllka [165]
Haije jiôes 1w mòé si aimx
3 0
3 years ago
Commet what u think of this mha fans only
g100num [7]

Answer: ITS SO CUTE

Explanation:

YESS SO CUTEEE

4 0
3 years ago
The first computer was developed by the government to spy on communist activities. Please select the best answer from the choice
allsm [11]
The answer is False.

The first computer was not developed to spy on communist by the government. The first computer was announced in 1946, the ENIAC (Electronic Numerical Integrator and Computer). It was built for general purposes like solving large mathematical problems. The US Army designed the computer to  calculate the artillery firing tables.
3 0
3 years ago
A power supply unit for a computer converts:
ss7ja [257]
I would go with answer choice A).
5 0
3 years ago
Other questions:
  • Write code for a function with the following prototype: /* Addition that saturates to TMin or TMax */ int saturating_add(int x,
    12·1 answer
  • An alternative to increasing the column widths and row heights is to ____ to fit the current width of the column
    5·1 answer
  • Why coaxial cable is called coaxial cable?
    11·1 answer
  • How do you check how much space is left in current drive?
    9·1 answer
  • Which command can be used to find errors on a hard drive​
    6·1 answer
  • Use the drop-down menus to complete statements about archiving and backing up data fileArchiving data files manages the size of
    5·2 answers
  • Can someone help me with this pls
    5·2 answers
  • What is operating system​
    10·2 answers
  • Computer Hardware can consist of a
    13·1 answer
  • Given a list of syntax errors from a compiler, a programmer should focus attention on which error(s), before recompiling?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!