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
Anarel [89]
3 years ago
13

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

g of 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.
fading trailing batting
Write the code segment as described above. The code segment must use an enhanced for loop.
Computers and Technology
1 answer:
finlep [7]3 years ago
4 0

Answer:

Explanation:

#include <iostream>

using namespace std;

int main()

{

   string cwords[8]={"ten", "fading", "post", "card", "thunder", "hinge", "trailing", "batting"};

   string temp="";

   for (int i=0; i<8; i++)

   {

       temp=cwords[i];

       int j=temp.length();

       if (temp[j-3]=='i' && temp[j-2]=='n' && temp[j-1]=='g')

       {

           cout<<temp<<endl;

       }

   }

   return 0;

}

You might be interested in
Name 6 examples of how telemedicine is used in healthcare
swat32

Answer:

The digital transmission of medical imaging, remote medical diagnosis and evaluations, and video consultations with specialists are all examples of telemedicine.

Explanation:

3 0
3 years ago
You are troubleshooting a cpu and have already cut power, disconnected the power cable, opened the case, and put on your antista
Nonamiya [84]
If you're aware that it is the CPU causing this problem, then you want to aim at the CPU fan, it is usually always on top of the CPU, once it is removed, take some time to know what socket you motherboard has, there are many types of sockets for both Intel and AMD  PC's the most common socket's for Intel is LGA1150 and for AMD it is either AM3/AM3+
3 0
3 years ago
What is text formatting?​
Ede4ka [16]

Answer:

Formatting text is the text that is displayed in a specified style. This refers to how text appears in your document. This includes the size, color, and font of the text.  

examples: text <em>text </em><u>text</u>

3 0
3 years ago
Read 2 more answers
Please select the word from the list that best fits the definition
Rus_ich [418]
Musical is the one that best fits it
4 0
3 years ago
Read 2 more answers
Which word describes an important characteristic of good computer
erma4kov [3.2K]

Answer:

D. Numerical

Explanation:

Computers software are made up of numbers and calculations making this the most likely answer for you're question.

6 0
2 years ago
Other questions:
  • Technician A says underinflation of a tire causes excessive one-sided wear on one side of the tread. Technician B says overinfla
    11·2 answers
  • Ed has just finished typing a long financial report. Before he sends this report to shareholders, Ed should _____.
    9·2 answers
  • “Artificial intelligence is the tool of education in the near future”. Research on the possibility of “AI technology” in scienti
    15·1 answer
  • How many sets of number do both Hex and RGB values have?
    10·1 answer
  • The default print setting for worksheets is________
    13·1 answer
  • What's the best thing that's happened to you during quarantine?
    10·2 answers
  • In order to multitask, a computer must have two or more processors. True or False
    5·2 answers
  • WILL MARK BRAINLIEST WORTH ALOT OF POINTS! HELP ME GET THIS DONE
    8·1 answer
  • What report indicates where users start or exit the conversion funnel?.
    8·1 answer
  • Testing components for satellites is a classic example of
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!