java programming|Computer science

java programming|Computer science

Answer the following questions:

1) What is java Collections? Define, describe and list some practical (problem solving) usage for Collections.

2) What is linked list?

a. Write java pseudocode (see definition below) to traverse the linked list.

b. Write java pseudocode (see definition below) to add an element/node to a specified index.

c. Write java pseudocode (see definition below) to remove an element/node to a specified index.

3) Write java pseudocode (see definition below) for the following:

Given a file of words. Write a program in java pseudocode that will read the file from the command prompt and parse the frequency (count) the number of times each word appears in the file.

Note: Day = day = day. (ignore period (.))

Eg:

The day is Wednesday. Wednesday is in the middle of the week.

Next Wednesday is a new week. The day in the middle of week is best.

Output:

the – 4

day – 2

is – 4

wednesday – 3

……

Pseudocode:

Definition: Pseudocode is a detailed yet readable description of what a computer program or algorithm must do, expressed in a formally-styled natural language rather than in a programming language.

Sample of java pseudocode:

Problem: add all even numbers from 0 to input number provided by users

Prompt user with input number (int inputNumber) using Scanner object

int sum = 0;

for (int i=0; I less than or equal inputNumber; increment i) {

if (i divisible by 2) // check if divisible by 2 with % modulus

add i to sum of previous value;

}

Print sum

Order from us and get better grades. We are the service you have been looking for.