Write a java code that allows the user to input any word/name from the console (10 words/names only) and then sorts and alphabetizes them into an array without using predefined methods (.compareTo(), or any sorter functions) and then print out the results.
you must have three methods that can:
Compare multiple strings
Swap elements
Sort and alphabetize string
***REMEMBER DO NOT USE ANY PRE-DEFINED METHODS***
Example of how the code should work:
Enter names/words (10 only):
"james, john, alex, aaron, brandon, nick, gian, deavan, daniel, jake"
*sorted output*:
"Aaron, Alex, Brandon, Daniel, Deavan, Gian, Jake, James, John, Nick"
In: Computer Science
Hey can you please answer this question in detail and explanation in your own word i need to post in discussion board
Be sure to give thought to each assigned question before posting.
In: Computer Science
Prepare a 900- to 1,150-word paper in which you discuss the life span perspective of human development. Be sure to include the following items in your description:
In: Psychology
In: Accounting
Pythpn
#Exercise 1
#Ask the user for a three letter word using the prompt: three
letter word? (include a space after the ?)
#Display the entire word
#Display the word vertically, one letter at a time using print
statements and the string index
#For example, if the user enters baa, the output should be (ignore
# signs):
#baa
#b
#a
#a
#Exercise 2
#Ask the user for a number using the prompt: first number? (include
a space after the ?)
#Ask the user for a number using the prompt: second number?
(include a space after the ?)
#Convert both numbers to integers
#Calculate the product of the two numbers
#Convert the two numbers and the product to strings using the str()
function
#Display the following on screen using a print statement and the +
concatenator.(note the spacing esp no space before the .)
#The product of [first number] times [second number] is
[product].
#For example, if the user entered 2 and 3, the final output should
be:
#The product of 2 times 3 is 6.
#Exercise 3
#Ask the user for a first name using the prompt: first name?
(include a space after the ?)
#Ask the user for a last name using the prompt: last name? (include
a space after the ?)
#Ask the user for a middle inital using the prompt: middle initial?
(include a space after the ?)
#Display the user entered full name in the following format [first
name] {middle inital]. [last nmae] (note the .)
#For example, if the user entered Malu Roldan H in response to the
input statements, the output should be:
#Malu H. Roldan
#Next, display the user's initials one letter at a time vertically.
For example, for Malu H. Roldan,
#the output should be (ignore # signs):
#M
#H
#R
#Exercise 4
#Ask the user for a six letter cheer using the prompt: six letter
cheer? (include a space after the ?)
#Display the entire cheer with an exclamation point after it (e.g.
if user enters boohoo, display boohoo!)
#Display the cheer vertically, one letter at a time ending with an
exclamation point in the last line
#For example, for user entry boohoo, display (ignore #
signs):
#b
#o
#o
#h
#o
#o
#!
#Exercise 5
#a Ask the user for a birth year using the prompt: birthyear?
(include a space after the ?)
#b Convert the user input to an integer
#c Subtract the user entered birthyear from 2019
#d Convert the result of the previous line and the user entry to
strings using the str() function
#e Display the following using the + concatenator in a print
statement (note the punctuation and spacing):
#f It has been [converted result of line 5c]! years since your
birthyear in [converted user entry]!
#g Hence, if user entered 2010, display:
#h It has been 9! years since your birthyear in 2010
#i Next, display the words: You were born in the year:
#j Display the converted user entered birthyear vertically, one
digit at a time.
#k For example, for 2010 display (ignore the # signs):
#2
#0
#1
#0
In: Computer Science
ule 8: A Lexical Definition Should Indicate the Context to Which the Definiens Pertains
One word will often have different meanings when used in different contexts. A good lexical definition should include references to the various contexts that account for multiple meanings of the same word whenever possible. This reference may be either explicit or implicit, but in either case, the context should be clear to the reader or listener.
Words to chose from: (in heraldry), (in painting), (in mathematics), (in chemistry), (in baseball), (in electronics), (in warfare), (in cosmetics), (in architecture)
Indicate the appropriate context for each of the following lexical definitions. Choose the context that best accounts for the given definiens.
| 1. | "Base" means a class of compounds, the solutions of which have a pH greater than 7. |
| 2. | "Base" means one of the four corners of an infield, marked with a bag or a plate, which a runner must touch before a run can be scored. |
| 3. | "Base" means a fortified center of safety or operations. |
| 4. | "Base" means a substance used to even out the complexion or provide a surface for other makeup. |
| 5. | "Base" means the number that is raised to various powers to generate the fundamental counting units of a number system. |
| 6. | "Base" means the lowest part of a structure; a foundation. |
| 7. | "Base" means the fundamental substance, or chief constituent, to which pigment is added for color. |
| 8. | "Base" means the lower part of a shield. |
| 9. | "Base" means the region in a transistor between the emitter and the collector. |
In: Psychology
Nike Inc. - Write a 500-750-word analysis of the significance of Space, Grand, and QSP Matrices regarding their relevance for strategic planning. Describe the key information for each and how information from each will influence recommendations for strategy selection, planning, and implementation. Without prematurely determining and formalizing strategic goals and objectives, begin thinking about possible strategies to capitalize and add value to the organization based on the analysis of this information. Be sure to cite three to five relevant and credible sources in support of your content. Use only sources found at the GCU Library, corporate websites, or those provided in Topic Materials.
In: Operations Management
Compose a 200-word in which you perform the following operations: Locate a popular or scholarly source about a topic that is of interest to you. Summarize the source. Create a response to the source, where you discuss points where you agree, disagree, and/or would enhance the ideas expressed in the source. In doing so, specifically refer to ideas expressed in the source through paraphrase or direct quotation. Be sure to respond to the ideas you cite from the source.
In: Operations Management
Short-Answer Questions Write a 75- to 100-word response to each of the following prompts: 1. In what ways do teams differ from groups? What factors contribute to a team? When have you worked in a team? What was your experience like? 2. What are some different types of teams? What are the goals of each type of team? What differences are there in how team members work together in these different teams? 3. What are some examples of effective communication and listening skills for teams? What makes these skills effective? What are some of your strengths and weaknesses when communicating in a team? How can you work on the areas that need improvement?
In: Psychology
In your own words, provide a 100-word discussion of each of the following eight topics. Each mini-essay earns from zero to three points. Points earned are based on a writing skills rubric. The maximum points available for this assignment is 24 points.
Topic #1: Compare and contrast managed care and case management.
Topic #2: Discuss four milestones in the history and evolution of case management systems.
Topic #3: Compare and contrast acute care case management vs. palliative care case management.
Topic #4: Discuss the role of the case manager in the areas of management and leadership.
Topic #5: Discuss the role of the case manager in the areas of provision of case management services and outcomes evaluation.
Topic #6: Discuss the case manager's utilization of negotiating skills. Provide an example of such a negotiation.
Topic #7: Discuss the history of Medicare and compare and contrast Medicare Part A vs. Medicare Part B.
Topic #8: Discuss the history of Medicaid and describe the categories of Medicaid eligibility. What is the primary function of Medicaid?
In: Nursing