Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Madlibs Here are the input files examples Tarzan Sample Output to screen Please type a adjective:happy Please type a plural-noun:roosters Please type a noun:dog Please

Madlibs

Here are the input files examples Tarzan

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.

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 .

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

When drawing a thread, the end of thread is marked...

Answered: 1 week ago