Questions
for eclipse java Overview Write a program that translates an English phrase into a Pig Latin...

for eclipse java

Overview
Write a program that translates an English phrase into a Pig Latin phrase. Input a phrase from the user and translate it to pig latin. You can assume the phrase will be on a single line.

Use at least the REQUIRED METHODS listed below, with the exact same SPELLING for method names and parameters.

Input Specification
The input will be an English phrase, with NO terminal punctuation. Read the phrase as a SINGLE STRING using the nextLine method.

Use PRECISELY the format below with the EXACT same SPACING and SPELLING.

Please enter a phrase ==> <user input>
Output Specification
Output an introductory message, a prompt for the English word, and a translation for the inputted word.

Use PRECISELY the format below with the EXACT same SPACING and SPELLING. The output below assumes the user entered "Humpty Dumpty sat on the wall".

This program will convert an English phrase into Pig Latin.

Please enter a phrase ==> Humpty Dumpty sat on the wall

"Humpty Dumpty sat on the wall"
in Pig Latin is
"umpty-Hay umpty-Day at-say on-way e-thay all-way"

************************
Required Methods

// Prompt and read a phrase to translate
public static String readPhrase (Scanner console)

// Convert a phrase to Pig Latin and return it
public static String convertPhrase (String englishPhrase)

// Convert a word to Pig Latin and return it
public static String convertWord (String englishWord)

// Return true if "c" is a vowel, false otherwise.
// Handle both lowercase and uppercase letters.
public static boolean isVowel (char c)

// Print result of translation
public static void printResult (String englishPhrase, String pigLatinPhrase)
Hints
You already wrote a method to convert a single word (convertWord). Apply it to each word in the phrase, forming the translated phrase by concatenating the translated words. If you did not get convertWord working on the first lab assignment, you need to get it working now.

Class Scanner can process a String (instead of System.in) consisting of multiple words, and break it into words that are separated by whitespace (tabs, spaces, and newline characters). You know other ways to break a line into words, so you do NOT have to use this technique.

Correctly handle whitespace before and after words.

In: Computer Science

A palindrome is a word or a phrase that is the same when read both forward and backward.

6.7 LAB: Palindrome

A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome.

Ex: If the input is:

bob

the output is:

bob is a palindrome

Ex: If the input is:

bobby

the output is:

bobby is not a palindrome

Hint: Start by removing spaces. Then check if a string is equivalent to it's reverse.

This is my code:

s = input()
low = 0
high = len(s)-1
flag = False
while(low<high):
if(s[low]!=s[high]):
flag = True
break
low+=1
high-=1
if(flag):
print(s,"is a palindrome")
else:
print(s, "is not a palindrome")

This is what i needs to be solved:

1: Compare output ^ Output differs. See highlights below. Special character legend Input bob Your output bob is not a palindr3: Compare output Input never odd or even Your output never odd or even is a palindrome 4: Compare output Output differs. See


In: Other

In at least a 250 word posting, respond to the following question. Is the United States...

In at least a 250 word posting, respond to the following question. Is the United States getting its money's worth in terms of health outcomes for the money spent on health care? After reading the postings of other students select the one that you found most interesting to respond to. Your response should be at least 75 words and include why you found this posting interesting.

In: Economics

Write your plan for the investigation as described below and save it as a Word document.

 

Fire Suppression Investigation Plan

Write your plan for the investigation as described below and save it as a Word document.

  • Detailed one page summary of your plans, including sketches if necessary. (Note: If you cannot submit your sketches, describe them in words.)
  • Itemized list of materials, with total costs.
  • Stoichiometric calculations of the amount of reactants required to produce enough gas to extinguish the fires. Remember that some gas may be lost prior to its use as a fire extinguisher.

In: Civil Engineering

In your own word Discuss the purpose of the balance sheet and the elements that exist...

In your own word Discuss the purpose of the balance sheet and the elements that exist within a classified balance sheet. Also, present some of the ways that financial statement analysis of the balance sheet can be used to assess the performance of a company

In: Accounting

Match the word elements with their meanings. Put the correct letter on the answer line. A....

Match the word elements with their meanings. Put the correct letter on the answer line.



A.

Alzheimer disease

B.

CT scan

C.

epilepsy

D.

exophthalmos

E.

Graves disease

F.

HRT

G.

Huntington chorea

H.

hydrocephalus

I.

hypertrophy

J.

MRI

K.

multiple sclerosis

L.

myxedema

M.

neuroblastoma

N.

palsy

O.

panhypopituitarism

P.

poliomyelitis

Q.

RAIU

R.

sciatica

S.

shingles

T.

spina bifida



____ 1. Abnormal protrusion of the eyeballs that may be caused by thyrotoxicosis, tumor, or aneurysm

____ 2. Hyperthyroidism that involves growth of the thyroid gland associated with hypersecretion of thyroxine

____ 3. Advanced hypothyroidism in adults, causing edema and increased blood pressure

____ 4. Total pituitary impairment that brings about a progressive, general loss of hormonal activity

____ 5. Chronic, organic mental disorder characterized by deterioration of intellectual functioning, apathy, disorientation, and speech and gait disturbances

____ 6. Disorder affecting the central nervous system and characterized by recurrent seizures

____ 7. Hereditary nervous disorder characterized by bizarre, involuntary, dance-like movements

____ 8. Cranial enlargement caused by accumulation of fluid within the ventricles of the brain

____ 9. Progressive degenerative disease of the CNS that causes muscle weakness, visual disturbance, and neurological disability

____ 10. Partial or complete loss of motor function; paralysis

____ 11. Inflammation of the gray matter of the spinal cord caused by a virus and commonly resulting in paralysis and spinal and muscle deformity

____ 12. Severe pain in the leg along the course of a nerve that travels from the hip to the foot

____ 13. Eruption of acute, inflammatory, herpetic vesicles on the trunk of the body along a peripheral nerve

____ 14. Radiographic technique that uses electromagnetic energy to produce images of the body

____ 15. Imaging procedure that measures levels of radioactivity in the thyroid gland after administration of radioactive iodine

____ 16. Radiographic procedure that uses a narrow beam of x-rays that rotates in a full arc around the patient to obtain images of the body in cross-sectional slices

____ 17. Oral administration or injection of synthetic hormones to replace a hormone deficiency

____ 18. Increase in the size of an organ or tissue

____ 19. Malignant tumor composed principally of cells resembling neuroblasts

____ 20. Congenital neural tube defect characterized by incomplete closure of the spinal canal



In: Biology

Provide single word , or short sentence answers to the following ( no explanation , no equations ) .

Provide single word , or short sentence answers to the following ( no explanation , no equations ) .

1. What would be the expected separation factor for an ultrafiltration membrane separating proteins from liquid ?

2. What is the MWCO ?

3. If a cyclone is not achieving the desired cut size , the main way in which it is adjusted during operation is by altering ....

4. In membrane separations : what is the MSA ?

5. In a centrifuge : what is the ESA ?

6. The difference between thickening and clarification is that .... ( don't just copy from the notes please ; use your own words ) .

7. The terminal settling velocity of a solid , spherical particle is affected by its ( a ) mass , ( b ) density or ( c ) both mass and density .

8. Disk - bowl centrifuges are preferred to tubular bowl centrifuges in this application ..... ( name one ) for the follow ing reason : .....

9. A good general reference on separation processes is ....

In: Chemistry

1) Find the number of unique ways that the letters in the word can be arranged:...

1) Find the number of unique ways that the letters in the word can be arranged: KERFUFFLE

2) A survey of commuters found that 313 owned a motorcycle, 232 owned a car, 269 owned a moped, 98 owned a car and a moped, 57 owned only a car, 104 owned a motorcycle and moped but not a car, 69 owned all three, and 64 owned none. What proportion of people surveyed owned only a moped? Leave your answer as an unsimplified fraction of integers.

3) The waiter brings a platter of 6 veggie burritos, 4 spicy burritos, and 3 cheese burritos to your table. How many ways could you create a plate of 6 burritos in the following ways? a) Selecting 2 cheese and 4 veggie burritos:

In: Math

This assignment must be completed on a Word Document and submitted. All questions related to the...

This assignment must be completed on a Word Document and submitted. All questions related to the case study must be answered completely in order to receive full credit. This case study assesses SLO #2: "On completion of this course, student will describe steps taken to prevent and manage medical emergencies in the dental office."

You have just seated your patient to have a tooth prepared for a crown. It has already been a hectic morning and the dentist has urged you to hurry up and get the patient ready for local anesthetic because he is running behind schedule and has a lunch meeting. To save a few steps, you decided to bring the patients chart in after you seated her. The dentist enters the operatory right behind you and administers local anesthetic, and you sit down to assist on the procedure.

Midway through the procedure, you notice the patient appears pale and sweaty, and becomes anxious in the chair. The patient seems confused and states she is dizzy. Answer the following questions in short paragraphs:

What type of medical distress is your patient most likely experiencing and how should you proceed?

Describe the preventive measures you skipped and how this impacted the patient, the procedure and the schedule for the morning.

Your patient has not responded well to the initial response and is now unconscious. What action must be taken by you and the entire office staff? What role will each staff member play in response to this emergency?

In: Nursing

Provide a 200+ word response with direct reference to this post: "For the inexperienced marketer, the...

Provide a 200+ word response with direct reference to this post:

"For the inexperienced marketer, the "similar but different feature of culture creates an illusion of similarity which usually does not always exist." Discuss and give examples.

In marketing, it's important to consider cultural differences to effectively reach the intended consumer base. Something that works in the US might not always work in other countries. Someone who is new to marketing may believe that cultures are similar enough to use the same marketing plan, however, this is only an illusion.

An example of this is the Gerber baby food brand and their expansion to Africa. Though a cute baby on the packaging can help a company sell a lot of baby food in the US, this is not the case in Africa. Due to low literacy rates, African people rely on packaging to tell them exactly what's in the package. This gave them very negative thoughts on the Gerber brand as they associated a baby with the product inside the container (Publisher).

Another example of a failed marketing campaign was Coca-Cola's expansion into China. When Coca-Cola translated their brand name into Chinese languages, their phonetic translation said "bite the wax tadpole," (Morrison, T).

In both of these instances, it would have been beneficial for the companies to do some research on the markets that they were expanding into. Had they looked into the people and languages of these countries, they could have avoided costly marketing mistakes.  

In: Economics