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
natulia [17]
2 years ago
11

array of String objects, words, has been properly declared and initialized. Each element of words contains a String consisting o

f lowercase letters (a–z). Write a code segment that uses an enhanced for loop to print all elements of words that end with "ing". As an example, if words contains {"ten", "fading", "post", "card", "thunder", "hinge", "trailing", "batting"}, then the following output should be produced by the code segment.
Computers and Technology
1 answer:
Vlad [161]2 years ago
5 0

Answer:

for(String s:words)

   if(s.endsWith("ing"))

 System.out.println(s);

Explanation:

Create an enhanced for loop that iterates through the words array

Check if an element in words ends with "ing" using endsWith() method (Since it is said that strings are lowercase letters, we do not need to check it)

If you find one that ends with "ing", print the element

You might be interested in
Brainstorm what you want your LED board to do. What would need to happen first? What happens next?
lbvjy [14]
First it will glow then change what color you want
5 0
1 year ago
Read 2 more answers
What is the name of the device protected by a digital certificate?
andrew-mc [135]

Answer:

Security – Simply put, digital certificates are the most practical option to securing your corporate data online. Digital certificates encrypt your internal and external communications to avoid outsiders and phishers from stealing sensitive information.

Explanation:

6 0
1 year ago
C - Language Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. E
Jobisdone [24]

Answer:

Replace

/* Your solution goes here */

with

printf("%d",runTimes[0]);

printf("%d",runTimes[1]);

printf("%d",runTimes[2]);

Explanation:

The question requires that the first three elements of array runTimes be printed;

The first three elements are the elements at the first, second and third positions.

It should be noted the index of an array starts at 0;

  • So, the first element has 0 as its index
  • The second has 1 as its index
  • The third has 2 as its index

So, to make reference to the first three elements, we make use of

<em>runTimes[0], runTimes[1] and runTimes[2]</em> respectively

Having mention the above;

It should also be noted that array is of type integers;

So, to display integers in C, we make use of "%d";

Hence, the print statement for the first three elements is

printf("%d",runTimes[0]);

printf("%d",runTimes[1]);

printf("%d",runTimes[2]);

8 0
2 years ago
Examine the A1 literature to discover whether the following tasks can currently be solved by computers: a. Playing a decent game
Sergio [31]

A) Playing a decent game of table tennis (Ping-Pong) – This is solvable by computers.

B) Driving in the center of Cairo, Egypt – This is solvable by computers.

C) Buying a week’s worth of groceries at the market – This is not solvable by computers.

D) Buying a week’s worth of groceries on the Web – This is solvable by computers. 

E) Playing a decent game of bridge at a competitive level – This is solvable by computers. 

F) Discovering and proving new mathematical theorems – This is not solvable computers.

G) Writing an intentionally funny story - This is not solvable by computers.

H) Giving competent legal advice in a specialized area of law – This is not solvable by computers.

I) Translating spoken English into spoken Swedish in real time – This is solvable by computers.

J) Performing a complex surgical operation – This is not solvable by computers.

6 0
2 years ago
WHAT ARE THE THINGS TO LEARN FROM COMPUTER SCIENCE.
Dahasolnce [82]

Computer science majors study computer systems, design software, and solve problems using computing technologies. The discipline encompasses programming languages, computer networks, cybersecurity, database management, artificial intelligence, and machine learning

7 0
1 year ago
Other questions:
  • A "techie" who works exclusively with hardware and software, rarely comes into contact with people, and who talks in technical j
    14·2 answers
  • What can search the Internet and select elements based on important words?
    6·2 answers
  • If the Account Number field in a record always should display the three characters in the account number in uppercase, then the
    14·1 answer
  • How do you do this need help
    14·1 answer
  • The hypothalamus controls the anterior pituitary by means of: a. releasing hormones b. second messengers c. third messengers d.
    14·1 answer
  • Which of the following is an advantage to using cash?
    11·2 answers
  • The Healthy Nutrition Counseling Center and the Simple Solutions Software Company have recently joined forces to produce a meal
    12·1 answer
  • Who can search the internet and select element base on important words
    13·1 answer
  • Match the order in which you should develop a plan:
    7·1 answer
  • Write a Python program to print the multiplication table of 4​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!