Question: JAVA QUESTION instructions: make something similar to the example output is given below + JAVA DOC Madlibs Lab: Here are the input files examples Tarzan

JAVA QUESTION

instructions: make something similar to the example output is given below + JAVA DOC

Madlibs Lab:

Here are the input files examples

Tarzan txt :

One of the most characters in fiction is named "Tarzan of the ." Tarzan was raised by a/an and lives in the jungle in the heart of darkest . He spends most of his time eating and swinging from tree to . Whenever he gets angry, he beats on his chest and says, " !" This is his war cry. Tarzan always dresses in shorts made from the skin of a/an and his best friend is a/an chimpanzee named Cheetah. He is supposed to be able to speak to elephants and . In the movies, Tarzan is played by .

Sample Output to screen

Please type a adjective:happy

Please type a plural-noun:roosters

Please type a noun:dog

Please type a adjective:green

Please type a place:Texas

Please type a plural-noun:cookies

Please type a noun:senator

Please type a funny-noise:burp

Please type a adjective:silly

Please type a noun:raisen

Please type a adjective:old

Please type a plural-noun:cats

Please type a person's-name:Tom

Sample Outputfile

One of the most happy characters in fiction is named "Tarzan of the roosters ." Tarzan was raised by a/an dog and lives in the green jungle in the heart of darkest Texas . He spends most of his time eating cookies and swinging from tree to senator . Whenever he gets angry, he beats on his chest and says, " burp !" This is his war cry. Tarzan always dresses in silly shorts made from the skin of a/an raisen and his best friend is a/an old chimpanzee named Cheetah. He is supposed to be able to speak to elephants and cats . In the movies, Tarzan is played by Tom .

Part 2

Write a Student class with these instance variables. The Student class implements the Comparable interface

String Name

String major

double gpa

int studentID

Write 3 constructors -

A fully qualified

A no argument

A copy constructor

Write setter and getters for each variable

Write a toString, equals, compareTo

Students are equal if there studentID are the same they are equal

The compareTo should make them alphabetical by last name.

Write a driver that makes five Student objects - use each constructor.

Make an ArrayList of Students. Put the 5 Students you created in the ArrayList.

In the main method ask the user to enter a studentID. Pass this int to a static method that will search the ArrayList for this id and return true or false. You will have to pass the ArrayList and the entered studentID to the method.

Check if two students are equal. Sort the ArrayList. Print out all the student info using the toString.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!