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
Im coding and need help please answer or comment to help. any skilled coders comment below
RoseWind [281]

Answer:

Whats up?

Explanation:

6 0
3 years ago
Explain why testing can only detect the presence of errors, not their absence.
Alchen [17]

Explanation: Testing is a set of activities that aim to detect software anomalies in a way that the errors can be discovered and correctes. The goal of software testing is to observe if the software behavior meet the requirements that they are expected to meet. Testing demonstrates to the developer that the software fullfils its requirements and it is a way to find out if it behaves in a incorrect, undesirable ou different form from the specifications.

6 0
4 years ago
Where does change management play a major role in transforming a client
nevsk [136]

To manage a modern IT environment characterized by hybrid complexity and exponential data growth — and to make that same IT a driver of growth and innovation for the business — you need to build intelligence into every layer of your infrastructure.

3 0
3 years ago
3.5 Code Practice: Question 1 edhesive
klio [65]

Answer:

x = int(input("What grade are you in? "))

if(x == 9):

  print("Freshman")

 

elif(x == 10):

  print("Sophomore")

 

elif(x == 11):

  print("Junior")

 

elif(x == 12):

  print("Senior")

 

else:

  print("Not in High School")

Explanation:

4 0
3 years ago
Which character formatting effect makes text appear in a small font size below the midpoint of a line of text
pav-90 [236]

Answer:

Superscript or Subscript

Explanation:

The superscript or the subscript is a type of character which is set a little lower or more than the normal line of type. And it is generally small as compared to the other texts. The subscript does appear at or less than the baseline, and the superscript is above. And for the superscript, you need to press the Ctrl + Shift + + ( press and at the same time also hold the Ctrl and the Shift, and finally press the +). And for the subscript, you need to press the Ctrl + Shift ++(Press and at the same time also hold the Ctrl. and finally press the =). And pressing the corresponding shortcut once again, you will be back to the normal text.

4 0
3 years ago
Other questions:
  • Carmina wants to move a paragraph to the right margin of the document she is working in. She moves her cursor to
    8·2 answers
  • the task is to ask the user for three numbers and find the average which pseudocode gives you the comment outline for task​
    10·1 answer
  • What are some good editing software apps for pc?
    11·1 answer
  • If your laptop is not able to connect to your wireless network, which of the following might be a likely cause of the problem?
    11·2 answers
  • When you align or size a group of selected controls, the changes are made relative to the
    14·1 answer
  • Pls help me!!!!!!!!!!!!!
    5·2 answers
  • Which device can be installed on the edge of your network to allow multiple remote users to connect securely to your internal en
    9·1 answer
  • Which country was the first in the world to launch a mass media campaign in response to population growth?
    14·1 answer
  • 2 ways to make your computer work faster ( please help asap )
    6·1 answer
  • A business needs to open at the right ___________ and the right ______________. Choose all correct answers.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!