Question: In JAVA: Create a Dating Application that contains: A class called datingApp which contains the main method. which contains an Array with 5 datingProfile objects

In JAVA:

Create a Dating Application that contains:

A class called datingApp

which contains the main method.

which contains an Array with 5 datingProfile objects

Asks the user which profile they would like to see.

calls a grabInfo method

calls a method to write txt file.

A class called datingProfile

Each datingProfile must have a:

grabInfo() method that holds dating information of each datingProfile (name, phone number, favorite color, heigh, a random favorite numbert).

calcHot() method that asigns each datingProfile a random score from 0 to 10.

A method that selects the top 3 datingProfile random scores and writes thier information to a "winners.txt" file.

Winners must be displayed from highest score to lowest score.

DATING PROFILE EXAMPLE:

computer display: "Who would you like to view?"

user input:"Paul"

Computer diplay:

Name: Paul

Height: 5'6

Favorite Color: Green

Phone Number- 88889999888

Hot Tomaly score : 10.

Check text File

-----------------------------------------------

//Text File

The winners are:

Name: Paul

Height: 5'6

Favorite Color: Green

Phone Number- 88889999888

Hot Tomaly score : 10.

Name: Greg

Height: 5'9

Favorite Color: Blue

Phone Number- 7773336622

Hot Tomaly score : 9.

Name: Tim

Height: 5'5

Favorite Color: Red

Phone Number- 333555266677

Hot Tomaly score : 8.

MUST:

-Use Arrays

-Use Encapsulation

-Contain Constructors

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!