Using the knowledge in computational language in JAVA it is possible to write a code that reads a list of words.
Writting the code in JAVA:import java.util.*;
//class name LabClass
public class LabClass{
//function getFrequencyOfWord with array wordList, ListSize and currWord as parameter
public static int getFrequencyOfWord(String[] wordsList, int ListSize, String currWord){
int frequency = 0;
//for loop for iteration
for(int i=0; i<ListSize; i++){
//if current word matches with words present in list
//then increase the frequency by 1
if(wordsList[i].compareTo(currWord)==0){
frequency++;
}
}
//return frequency at last
return frequency;
}
//main function
public static void main(String[] args) {
//creating object of Scanner class
Scanner sc = new Scanner(System.in);
int size;
//asking user to input size of list
System.out.println("Enter the size of list :");
size = sc.nextInt();
//creating array of same size as user input size
String[] wordList = new String[size];
sc.nextLine();
//asking user to input array elements
System.out.println("Enter list elements one by one :");
for(int i =0; i<size; i++)
{
wordList[i] = sc.nextLine();
}
System.out.print("\n");
sc.close();
//calling function getFrequencyOfWord in every iteration by passing
//required arguments to it
for(int i=0; i<size; i++)
{
String currWord = wordList[i];
int count = getFrequencyOfWord(wordList, size, currWord);
//printing result
System.err.println(currWord + " : " + count);
}
}
}
See more about JAVA at brainly.com/question/12978370
#SPJ1
How do the result of Albert bandura’s experiment support zumbareis theories about immoral behavior
Do you think each type of form plays an important role to one another? Explain
your insights.
Answer:
Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:
Explanation:Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:a piece of information
Explanation:Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:a piece of informationthe act or result of understanding the inner nature of things or of seeing intuitively (called noesis in Greek)
Explanation:Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:a piece of informationthe act or result of understanding the inner nature of things or of seeing intuitively (called noesis in Greek)an introspection
Explanation:Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:a piece of informationthe act or result of understanding the inner nature of things or of seeing intuitively (called noesis in Greek)an introspectionthe power of acute observation and deduction, discernment, and perception, called intellection or noesis
Explanation:Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:a piece of informationthe act or result of understanding the inner nature of things or of seeing intuitively (called noesis in Greek)an introspectionthe power of acute observation and deduction, discernment, and perception, called intellection or noesisAn understanding of cause and effect based on the identification of relationships and behaviors within a model, context, or scenario (see artificial intelligence)
Explanation:Insight is the understanding of a specific cause and effect within a particular context. The term insight can have several related meanings:a piece of informationthe act or result of understanding the inner nature of things or of seeing intuitively (called noesis in Greek)an introspectionthe power of acute observation and deduction, discernment, and perception, called intellection or noesisAn understanding of cause and effect based on the identification of relationships and behaviors within a model, context, or scenario (see artificial intelligence)An insight that manifests itself suddenly, such as understanding how to solve a difficult problem, is sometimes called by the German word Aha-Erlebnis. The term was coined by the German psychologist and theoretical linguist Karl Bühler. It is also known as an epiphany, eureka moment or (for cross word solvers) the penny dropping moment (PDM).[1] Sudden sickening realisations identifying a problem rather than solving it, so Uh-oh rather than Aha moments are further seen in negative insight.[2] A further example of negative insight is chagrin which is annoyance at the obviousness of a solution missed up until the point of insight,[3] an example of this being the Homer Simpson's catchphrase exclamation, D'oh!.
PLEASE MARK ME AS BRAINLIEST
Describe the wastewater treatment that occurs at the Back River Wastewater Treatment Plant
The Back River Wastewater Treatment Plant utilizes a multi-step process to treat wastewater. It includes physical, biological, and chemical treatments to remove contaminants, reduce pollutants, and produce treated water that meets regulatory standards for discharge into the environment.
What is wastewater treatment?Wastewater treatment is the process of removing and eliminating impurities from wastewater and convertingit into effluent that may be recycled into the water cycle.
When returned to the water cycle,the effluent has a low environmental impact or is utilised for other uses.
Learn more about wastewater at:
https://brainly.com/question/13348717
#SPJ1
whats Tommy's favorite color is his dads is green and moms is yellow
A. lime green
B. yellow snow
C. red
D. naruto
On a merry-go-round, 16 horses are evenly spaced on the outside perimeter. Abe is opposite
to the first horse. It takes 6 seconds for the fifth horse to reach Abe. How long will it take the merrygo-round to go around once? Draw a clear diagram to answer this question.
plzz help could you sho work
Explanation:
no it's you know for getting them for this
Adam's income was increased by 5 percent in may. If he received 1102.50 in may, find his income in april
which of the following can lead to a distracted teen driver who engages in reckless driving
Answer:
texting and driving or not keeping your hands on the wheel at all times
Explanation:
Jackson has scores of 80, 90, 83, and 81 on four Math quizzes. What is the score he needs on the next quiz to achieve an average above 85?
in basketball, a field goal is either 2 or 3 points. in a college basketball tournament, jim made 73 more 2-point field goals than 3-point field goals. if he scored a total of 216 goals in the tournament, how many 3-point field goals did he make?
Answer:
72
Explanation:
216/3 is 72
Psychology What is one source error associated with self-report inventories, and what is one of its solutions?
Answer:
one source error associated with self-report inventories is that some people aren't very self-aware or may jump to conclusions about their systems or disorders without taking a step back and assessing all of the possibilities. a solution to this would be having the assessment taker speak to a professional, or trying to make them report their symptoms as objectively as possible.
Explanation:
Answer:
One source error is deliberate deception, and one of its solutions is having a lie scale inserted into the assessment. Another source error is social desirability, and one of its solutions is locating questions sensitive to bias and changing or dropping them. Another source error is response set, and two of its solutions are using word variations and writing questions on the assessment in different ways.
Explanation:
sample answer on edge ;)
How can you take a screenshot on an HP computer?
Answer:
hi! Its easy!
Explanation:
You have to press the Windows key and then press the prt sc press them at the same time
Answer:ou hit ctrl+shift+ a picture that looks like a rectangle with two lines next to it. Or you can hit ctrl+alt+ the picture again.
Explanation:
The girl with blue hat sits next to the tree
no change
The girl sits next to the tree with blue hat
With blue hat the girl sits next to the tree
is that a question or because i am a little confused
help help help help help esp
U-U * i must say :O REEEeeeeeeeeee *gets thrown of window * levi: :P ha now stop texting -__- * * T^T am hiding for the love of god .....i hate meh bro
Answer:
h
Explanation:
What do the arrows at point 3 indicate
Answer:
air cool
Explanation:
im taking the test
(1) Farmer Ben has only ducks and cows 21 in total. He can’t remember how many of each he has. He knows
that the animals have a total of 52 legs. Assuming that each animal has all legs intact and no extra
limbs, how many of each animal does farmer Ben have? Draw a clear diagram to answer this question.
(2) On a merry-go-round, 12 horses are evenly spaced on the outside perimeter. Abe is opposite to the first
horse. It takes 4 seconds for the fourth horse to reach Abe. How long will it take the merry-go-round to
go around once? Draw a clear diagram to answer this question. Make a Diagram and solve this problem.
(3) Charmin’s daughter has $6.00 she wants to spend on a comic books and superhero cards. Comic books
cost 75 cents each, and deluxe packages of superhero cards cost $1.50 each. List all the ways she can
spend all of her money on comic books, superhero cards , or both.
(4) In how many ways can one add only three positive even numbers and get 22? Make a systematic list
and show all the possibilities.
THIS IS MY EXAM FOUR QUESTIONS CAN SOMEBODY PLZZ HELP ME AN SHOW THE WORK FROM THE BOTTOM OF MY HEART PLZZ
Answer:
Answer of question 1 :
Explanation:
Let x be the legs of ducks
And y be the legs of cows
According to the question,
2x + 4y = 52...…..(i) ( as ducks ahs two legs and as cows has 4 legs)
As he has 21 animals in total so,
x + y = 21...…..(ii)
We have make the equation. We will solve them by eliminatory method or substitution method. Here, I'll go for substitution method.
From equation (ii)
x = 21 - y....…..(iii)
Putting the value of x in equation (i),
2x + 4y = 52
2( 21 - y ) + 4y = 52
42 - 2y + 4y = 52
2y = 52 - 42
y = 10/2
y = 5 ( He has 2 cows)
putting the value of y in equation (ii)
x + y = 21
x + 5 = 21
x = 21 -5
x = 16 ( He has 16 ducks)
Marisol is selling snacks at her school’s soccer games to raise money for a service project. She buys nuts in cases that contain 24 bags and granola bars in cases that contain 20 packages. She sells the nuts for $1.25 a bag and the granola bars for $1.75 a package. If she raised $160 and sold 112 items, how many cases of granola bars did Marisol buy?
Answer:
2 cases of granola bars
Explanation:
This is a classic system of equations type question.
24n + 20gb = 112 as she can only buy the items in these quantities and this is how many she bought in total
30n + 35gb = 160 as this is how much money she earns per case
I like to solve using elimination when possible. So we can multiply the first equation by 1.25
30n + 25gb = 140 then subtract this from the second equation
10 gb = 20 then divide by 10
gb = 2
help me!!!
pllssss
thankk
Answer:
which part of the question would u like help with and I can answer it for you. ask in different way
You are assigned to teach a movement activity. How can you prepare for this? in early childhood education
Answer:
you can prepare by stretching and if your also setting up then you can put the stuff in place
PART A: Which of the following identifies the central idea of the text?
A. Studies show that motherhood does not get easier as soon as many believe, due to stress and feelings of dissatisfaction mothers often experience during the middle school years.
B. Studies show that the satisfaction of mothers is at an all-time low in the years following the birth of their child due to feelings of exhaustion.
C. Studies support the belief that mothers’ feelings of exhaustion and dissatisfaction improve greatly when their child matures during puberty.
D. Studies show how the experience of motherhood greatly varies from mother to mother, and therefore the most difficult time of motherhood cannot be determined.
2. PART B: Which section from the text best supports the answer to Part A?
A. “In the early years, when motherhood is often portrayed as especially demanding, mothers reported high levels of parenting ‘overload.’” (Paragraph 6)
B. “By the time children reached adulthood, mothers reported significantly lower levels of parenting overload and guilt but maintained relatively high levels of parenting satisfaction.” (Paragraph 7)
C. “It was between these two periods that mothers reported the highest levels of dissatisfaction with parenting, with mothers of middle-school children representing the peak.” (Paragraph 8)
D. “Importantly, these trends reflected group averages; there was considerable variation in the experiences of individual mothers.” (Paragraph 9)
3. PART A: What is the meaning of “rosy” in paragraph 1?
A. knowledgeable
B. unrealistic
C. validating
D. optimistic
4. PART B: Which detail from the text best supports the answer to Part A?
A. “from more than one slightly more-seasoned mom” (Paragraph 1)
B. “It’s a message of hope and encouragement” (Paragraph 2)
C. “a recognition of how hard some aspects of early motherhood can be”
(Paragraph 2)
D. “But according to new research, it might also be wrong.” (Paragraph 2)
Answer:
1. A
Explanation:
Common lit
Studies show that motherhood does not get easier as soon as many believe, due to stress and feelings of dissatisfaction mothers often experience during the middle school years. The correct options are A, C, D, and D respectively.
What is central idea?The central idea is the story's central, unifying element, which connects all of the other elements of fiction used by the author to tell the story.
The central idea is best described as the story's dominant impression or the universal, generic truth.
The section “It was between these two periods that mothers reported the highest levels of dissatisfaction with parenting, with mothers of middle-school children representing the peak” best supports the answer to Part A.
The meaning of “rosy” in paragraph 1 is optimistic.
The detail from the text best supports the answer to Part A is “But according to new research, it might also be wrong.”
Thus, the correct options are A, C, D, and D respectively.
For more details regarding central idea, visit:
https://brainly.com/question/8282081
#SPJ3
what force is a contact force?
Answer:
It is any force that requires contact to happen. There is frictional force, applied force, and normal force.
If there are fifteen crows on the fence and the farmer shoots a third of them, how many are left?
Answer:
i think its 10?
Explanation:
because 1/3 of 15 is 5 so 15-5=10
The function p is defined by p(h) = 2h+h. If
k>-2 and p(k)= P(-2), what is the value of k?
A) -1
B) 0
C)1
D) 2
Answer:
it's D
Explanation:
basta D di ako sure
I did not sign up for a brainly account an want to cancel any membership that I have. It was billed to my amex card
Answer:
Thats sad
Explanation:
1/12x-1/12y=13
1/3x-1/6y=20
Answer:
Explanation:
X=-36 and y is -192
Mary and Keisha run with the same constant speed but in opposite directions. The girls have: A. The same position B. Different accelerations C. Different speeds D. Different velocities
Answer:
D
Explanation:
Mary and Keisha run with the same constant speed but in opposite directions. The girls have different velocities. Hence option D is correct.
What is velocity?According to a particular point of view and a particular unit of time, velocity is the rate at which an object changes position while travelling in one direction. Velocity is a vector quantity. It has both a magnitude and a direction. Therefore, it alters whenever either the speed or the direction do. The meter per second is the accepted unit of magnitude for velocity.
One might refer to an object as accelerating if either the magnitude or direction of the velocity vector changes. An object moving in a circle at a constant speed can be said to accelerate because the direction of the velocity changes. Although the object is moving at a constant speed, its velocity is changing. As a vector, velocity has a fixed magnitude but a fluctuating direction.
Thus, Mary and Keisha run with the same constant speed but in opposite directions. The girls have different velocities. Hence option D is correct.
To learn more about velocity, refer to the link below:
https://brainly.com/question/18084516
#SPJ2
The lunch bill for the group was $45. Their total bill was 54 dollars, including the tip. What percent did they pay in tip? _________%
rose are _____ viliot are ____
a. red and blue
B. apple and red
PLEASE HELP the answer it says is D while I think it is A
But also A is kinda off as well SO I DON'T KNOW
The choice that offers an accurate interpretation of the data in the chart is D) a slightly higher rate of atherosclerosis than.
What is the graph about?The graph shows that patients who follow a low-cholesterol diet but do not exercise daily experience roughly 30% fewer cases of atherosclerosis than patients who do not follow a low-cholesterol diet and do not exercise daily.
Therefore, the accurate interpretation of the data in the chart is that patients who follow a low-cholesterol diet but do not exercise daily have a slightly higher rate of atherosclerosis than patients who do not follow a low-cholesterol diet and do not exercise daily.
Find out more on graphic representation here: https://brainly.com/question/28350999
#SPJ1
12
DALILAH
Bakari is making a scale model of a large cylindrical building. The scale model has a volume that
of the building. To determine the radius and height of the scale model, Bakari divided both the ra
by 8 because the formula for the volume of a cylinder only has 2 variables.
Which statement is true?
Bakari is correct.
Bakari is incorrect. He should have divided the radius and height by 2.
Bakari is incorrect. He should have divided the radius and height by 4.
Bakari is incorrect. He should have divided the radius and height by 16.
Answer: Bakari is correct
Explanation:
Bakari is correct. If he divided both the radius and height by the same factor (in this case, 8), then the resulting scale model will have the same proportions as the original building, just scaled down by a factor of 8. The formula for the volume of a cylinder is V = πr²h, which only has two variables (the radius and height). So if Bakari wants to maintain the same proportions of the cylinder in his scale model, he needs to divide both the radius and height by the same factor. This will result in a scale model with a volume that is 1/8th the volume of the original building.