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
kogti [31]
3 years ago
12

7.12 LAB: Contains the character

Computers and Technology
2 answers:
My name is Ann [436]3 years ago
5 0

Answer:there is Java program and C++ program

Explanation:

nalin [4]3 years ago
5 0

Answer:

The solution code is written in Python 3

  1. input_char = input("Enter a character: ")
  2. sentence = input("Enter a sentence: ")
  3. word_list = sentence.split(" ")
  4. for word in word_list:
  5.    for c in word:
  6.        if(c == input_char):
  7.            print(word)
  8.            break  

Explanation:

Firstly, use the input function to get a input character and sentence from user (Line 1 - 2)

Next, use the split method to divide the sentence into a list of individual words using single space as the delimiter (Line 4).

Create an outer for loop to traverse each word in the word_list and create another inner loop to traverse each character in the word and check if there is any character match with the input character. If so print the word and terminate the inner loop and proceed to the next round of the outer loop.

After finishing the loop, all the relevant words will be printed.

You might be interested in
Consider the following code segment:
prisoha [69]

ArrayLists are arrays that can be resized

The list that represents the value of nums after executing the code segments is [20, 30, 90, 50]

<h3>How to determine the value of the list</h3>

From lines 1 to 5 of the program, the content of the nums list is:

nums = [10, 20, 30, 40, 50]

Next, the element at the 3rd index is removed and saved in x.

So, we have:

nums = [10, 20, 30, 50]

x= 40

Next, the element at the 0 index is removed and then added to x.

The result is then saved in y

So, we have:

nums = [20, 30, 50]

y= 50

x = 40

The values of x and y are added and then inserted at the 2nd index of the arraylist.

So, we have:

nums = [20, 30, 90, 50]

Hence, the list that represents the value of nums is [20, 30, 90, 50]

Read more about arraylists at:

brainly.com/question/26264399

8 0
2 years ago
Susan's monthly goal to open five new customer
SSSSS [86.1K]

Answer:

2. Measurable Goal

Explanation:

If she works hard, she can open 5 more customer accounts in time. I tried my best to answer this question, hope it helps!

4 0
3 years ago
What does the action tool allow you to do in Microsoft power point?
pickupchik [31]
I believe the answer is A. Add animation to clip art and text 
6 0
3 years ago
Question # 4
bezimeni [28]

Answer:

the last one I think not 100% sure

6 0
4 years ago
What would you use to see what network adapters are installed in your windows computer?
Lesechka [4]
I wouldn't see anything, because my computer does not use any network adaptors.
6 0
3 years ago
Other questions:
  • Alonzo collects bugs. He has created a fascinating display of large insects. Collecting bugs is a(n) _____ to Alonzo.
    10·2 answers
  • Hello... does anyone know why Brainly notifications aren’t working???
    11·2 answers
  • Which of the following is not a feature of Hootsuite?
    14·1 answer
  • Conduct online research on web authentication and define what it is. Describe different authentication methods
    5·1 answer
  • What is the outside of an iPhone called?
    9·2 answers
  • What will you personally do to make your peers aware of the seriousness Of teen crashes?
    9·1 answer
  • How do I make sure I have full access to this app where do I put in payment information
    8·1 answer
  • Advantages of bursaries??????
    11·1 answer
  • Select the correct answer from each drop-down menu.
    5·2 answers
  • How to make a computer
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!