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
Leona [35]
3 years ago
9

In this exercise, you are agiven a phrase that may or may not contain the word “plate”. If the word does exist, replace all occu

rances of “plate” with “bowl”, unless the word plate is plural. If it is plural, don’t replace it.
Example:

replacePlate("I ate off a plate.") --> "I ate off a bowl."
replacePlate("I set a plate on the plate.") --> "I set a bowl on the bowl."
replacePlate("I set a plate on the plates.") --> "I set a bowl on the plates."

This is in Java.

Computers and Technology
1 answer:
Aloiza [94]3 years ago
7 0

Answer:

Is in the provided screenshot!

Explanation:

Steps required to solve this problem

1) Take the input sentence and split it up into its separate words

2) Go through each word and see if it starts with the word plate.

- We need to check that it starts with plate and not if it equals plate so we can make sure that we keep any punctuation that is on the end of the word.

3) We also need to check if the word is not plates, so we can do that here.

4) If the word is plate, but not plate - then we can replace it with bowl

5) Now we just put our individual words back into a full sentence

You might be interested in
You can increase your efficiency by using your e-mail program's spell checker because it eliminates the need for you to proofrea
galina1969 [7]
The answer is True bc it saves you time and is efficient
6 0
3 years ago
Create a high-level plan to perform a gap analysis for Fullsoft Inc
mario62 [17]
It’s a Yes you’re right and I did this same question
7 0
3 years ago
Which of the following best describes a situation where software should be upgraded instead of replaced?
ad-work [718]

an OS systems security is at a high risk to hackers so the company can update the OS to improve security

7 0
3 years ago
4.
KATRIN_1 [288]

Income inequality and  Digital literacy prevents many people from having access to technology and the Internet.

<h3> How does digital system affect people's lives?</h3>

People do not have access to internet because of poor economic and social problems, such as fewer job opportunities, less competitive economies and others.

Other Factors such as digital literacy and low income levels, geographical restrictions, lack of zeal to use technology are known to have contributed to the digital division in the country.

Learn more about Income inequality from

brainly.com/question/24554155

6 0
3 years ago
Alex’s family members live in different parts of the world. They would like to discuss the wedding plans of one of their distant
goldenfox [79]
The answer would be b
8 0
4 years ago
Read 2 more answers
Other questions:
  • A. When executing System.out.println(a1), the toString() method in the Object class is invoked.
    14·1 answer
  • Whaat was the first sound recording machine
    12·2 answers
  • program that reads numbers from scanf (keyboard) and then sums them, stopping when 0 has been entered. Construct three versions
    14·1 answer
  • Help!!!!!!!!!!!!!!!!!!!
    12·1 answer
  • Mike's boss told him he needs to be more efficient. Select each suggestion that will help him become more efficient at creating
    9·1 answer
  • Why is redundancy of data undersirable?
    7·2 answers
  • Morena has been assigned to develop a program that will analyze data for a real estate firm. She needs to study the patterns in
    11·1 answer
  • What does it mean to catch an exception?
    8·1 answer
  • What type of data uses numbers that can be used in the arithmetic operations?
    14·1 answer
  • Can anyone help me with these assignments??? Hands On Assignments- Insertion of Symbols, Special Characters, and Images.... and
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!