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
zhuklara [117]
4 years ago
8

Write an application that encodes English-language phrases into pig Latin. Pig Latin is a form of coded language. There are many

different ways to form pig Latin phrases. For simplicity, use the following algorithm:To form a pig Latin phrase from an English-language phrase, tokenize the phrase into words with String method split. To translate each English word into a pig Latin word, place the first letter of the English word at the end of the word and add the letters "ay." Thus, the word "jump" becomes "umpjay," the word "the" becomes "hetay," and the word "computer" becomes "omputercay." Blanks between words remain as blanks. Assume the following: The English phrase consists of words separated by blanks, there are no punctuation marks and all words have two or more letters. Method printLatinWord should display each word. Each token is passed to method printLatin-Word to print the pig Latin word. Enable the user to input the sentence. Then display the converted sentence.
Computers and Technology
1 answer:
deff fn [24]4 years ago
3 0

Answer:

Answer has been attached to this response as a source code file saved as "PigLatinWord.java"

Explanation:

Explanation has been added to the source code in the form of comments. Please go through the comments in the code.

Hope this helps!

Download java
You might be interested in
consider l= 5 ,r= 11. you must determine the sum of the values of the function in the range L to R . you have to calculate sum =
4vir4ik [10]

def summation (num1, num2):

i = 0

for x in range (num1 : num2 + 1):

i += x

return i

print ( summation(l, r))

3 0
3 years ago
Suppose that we want to enhance the processor used for Web serving. The new processor is 10 times faster on computation in the W
elena55 [62]

Answer:

The overall speedup gained by incorporating the enhancement is 1.563

Explanation:

Using Amdahl's Law;

The overall speedup  (N) =\dfrac{1}{(1-P) + ( \dfrac{P}{n})}

where;

P = Fraction Enhanced for Old Processor

n = speedup enhancement as a result of the new processor

P = 40% = 0.40  and n = 10

∴

The overall speedup (N) is:

=\dfrac{1}{(1-0.4) + ( \dfrac{0.4}{10})}

=\dfrac{1}{(0.6) + ( 0.04)}

=\dfrac{1}{0.64}

= 1.563

Thus, the overall speedup gained by incorporating the enhancement is 1.563

3 0
3 years ago
What are technology trends in science check all that apply
Doss [256]

Answer:

3D Printing Molecules.

Adaptive Assurance of Autonomous Systems.

Neuromorphic Computing (new types of hardware) and Biomimetic AI.

Limits of Quantum Computing: Decoherence and use of Machine Learning.

Ethically Trustworthy AI & Anonymous Analytics.

Explanation:

6 0
3 years ago
You have been hired as a Systems Analyst in a famous Burger chain. Due to its popularity, the demands from customers also increa
IceJOKER [234]

a. Assume you are preparing a Customer Satisfaction Questionnaire. What types of questions would you include? Prepare 5 questions that you would ask.

The questions that I would ask would be designed in order for me to know whether our organizational programs have translated to a lower customer satisfaction. Examples of those questions would be:

1. Do you enjoy eating at our place?

2. How would you compare our service  in the past to our service now?

3. How likely are you to recommend our restaurant to your friends?

4. Is there any area where you think we could improve?

5. Do you have any other suggestions for us?

b. What type of questions would you ask the waiters and cooks during the interview? Prepare 5 questions (each) that you would ask waiters and cooks.

I would ask questions that would allow me to determine whether these people are able to work in a fast-paced environment. For example:

1. How good are you at working under pressure?

2. Do you find busy environments stressful?

3. Are you good at multitasking?

4. Have you worked at a busy restaurant before?

5. Do you have a cooperative spirit?

c. What modern requirements determination methods are appropriate for this project?

Prototyping is the requirement that would most help in this task.

7 0
3 years ago
HELP URGENT
arsen [322]

Answer:

D. It is a program that checks for grammatical errors.

5 0
2 years ago
Other questions:
  • Show what this program prints. Be exact and complete. Can you explain the behavior of each print statement? 1 2 3 4 5 6 7 public
    12·1 answer
  • Can you give me a long list of kid's cartoons
    8·2 answers
  • When Nathanil Inc, a network service provider, introduced 4G data plans, it observed that most of its customers completely stopp
    9·1 answer
  • When at the rightmost cell in a row, press the ENTER key to move to the first cell in the next row; do not press the TAB key.
    14·1 answer
  • Availability is an essential part of ________ security, and user behavior analysis and application analysis provide the data nee
    14·1 answer
  • The variable most_recent_novel is associated with a dictionary that maps the names of novelists to their most recently published
    12·1 answer
  • Jeremy is working with a team that is creating an application using attributes and associated methods. What type of programming
    8·1 answer
  • What is data that originated in another program or format?
    7·1 answer
  • Which of the following is NOT an acceptable way to create a color?
    14·1 answer
  • Which view allows you to make changes to the content of your presentation?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!