Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

======== agile_manifesto.txt ========= Our highest priority is to satisfy the cu

ID: 3598074 • Letter: #

Question

======== agile_manifesto.txt =========

Our highest priority is to satisfy the customer

through early and continuous delivery

of valuable software.

Welcome changing requirements, even late in

development. Agile processes harness change for

the customer's competitive advantage.

Deliver working software frequently, from a

couple of weeks to a couple of months, with a

preference to the shorter timescale.

Business people and developers must work

together daily throughout the project.

Build projects around motivated individuals.

Give them the environment and support they need,

and trust them to get the job done.

The most efficient and effective method of

conveying information to and within a development

team is face-to-face conversation.

Working software is the primary measure of progress.

Agile processes promote sustainable development.

The sponsors, developers, and users should be able

to maintain a constant pace indefinitely.

Continuous attention to technical excellence

and good design enhances agility.

Simplicity--the art of maximizing the amount

of work not done--is essential.

The best architectures, requirements, and designs

emerge from self-organizing teams.

At regular intervals, the team reflects on how

to become more effective, then tunes and adjusts

its behavior accordingly.

Explanation / Answer

Here is the working code.. output attached

I have chosen ArrayList data structure since it dynamically allocates memory to store. So this overcomes the initial memory allocation of arrays.

import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;

public class ReadWords {

public static void analyzeList(ArrayList<String> words) {
Collections.sort(words);
// printing words and count
Map<String, Integer> map = new HashMap<>();
// maping all words and out them in count .. key as word and count as value
for (String wrd : words) {
Integer num = map.get(wrd);
num = (num == null) ? 1 : ++num;
map.put(wrd, num);
}
// printing results
for (Map.Entry<String, Integer> each_entry : map.entrySet()) {
String word = each_entry.getKey().toString();
Integer count = each_entry.getValue();
System.out.println(word + " ---> " + count);
}
}

public static void main(String args[]) {
//arraylist data structure to store words
ArrayList<String> words = new ArrayList<>();
// open file
try {
File file = new File("C:\Users\paramesh\Documents\NetBeansProjects\Lab2\src\agile_manifesto.txt");
Scanner sc = new Scanner(file);
while (sc.hasNext()) {
String line = sc.nextLine();
// convert line to array with delimiter as space
String[] tempWords = line.split(" ");
// storing words into arraylists
words.addAll(Arrays.asList(tempWords));
}
sc.close();
analyzeList(words);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}

OUTPUT

run:
projects ---> 1
software ---> 2
developers ---> 1
maintain ---> 1
intervals, ---> 1
changing ---> 1
Give ---> 1
reflects ---> 1
they ---> 1
shorter ---> 1
indefinitely. ---> 1
method ---> 1
in ---> 1
work ---> 2
pace ---> 1
preference ---> 1
adjusts ---> 1
effective, ---> 1
is ---> 3
them ---> 2
individuals. ---> 1
then ---> 1
months, ---> 1
priority ---> 1
Our ---> 1
face-to-face ---> 1
Working ---> 1
even ---> 1
highest ---> 1
competitive ---> 1
must ---> 1
architectures, ---> 1
valuable ---> 1
become ---> 1
primary ---> 1
be ---> 1
enhances ---> 1
weeks ---> 1
Continuous ---> 1
sustainable ---> 1
customer's ---> 1
project. ---> 1
The ---> 3
how ---> 1
promote ---> 1
At ---> 1
Simplicity--the ---> 1
get ---> 1
Agile ---> 2
done. ---> 1
behavior ---> 1
essential. ---> 1
regular ---> 1
together ---> 1
a ---> 5
art ---> 1
efficient ---> 1
within ---> 1
more ---> 1
change ---> 1
need, ---> 1
team ---> 2
people ---> 1
done--is ---> 1
the ---> 9
able ---> 1
emerge ---> 1
information ---> 1
to ---> 8
requirements, ---> 2
through ---> 1
couple ---> 2
constant ---> 1
excellence ---> 1
good ---> 1
late ---> 1
Build ---> 1
conversation. ---> 1
continuous ---> 1
teams. ---> 1
should ---> 1
from ---> 2
Business ---> 1
Deliver ---> 1
development ---> 1
motivated ---> 1
maximizing ---> 1
its ---> 1
accordingly. ---> 1
users ---> 1
software. ---> 1
most ---> 1
measure ---> 1
daily ---> 1
advantage. ---> 1
designs ---> 1
job ---> 1
support ---> 1
frequently, ---> 1
trust ---> 1
technical ---> 1
for ---> 1
development. ---> 2
best ---> 1
agility. ---> 1
around ---> 1
conveying ---> 1
effective ---> 1
not ---> 1
and ---> 10
design ---> 1
of ---> 7
throughout ---> 1
working ---> 1
timescale. ---> 1
early ---> 1
on ---> 1
sponsors, ---> 1
delivery ---> 1
amount ---> 1
processes ---> 2
progress. ---> 1
tunes ---> 1
satisfy ---> 1
self-organizing ---> 1
with ---> 1
environment ---> 1
developers, ---> 1
harness ---> 1
attention ---> 1
Welcome ---> 1
customer ---> 1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote