Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a complete Java program that inputs the Cleveland Browns Roster into an appropriate data structure and produces a sorted list of the roster based

Write a complete Java program that inputs the Cleveland Browns Roster into an appropriate data structure and produces a sorted list of the roster based on user's input. Ask the user if they want the data sorted by first name, last name, player number, age, weight, or College.

Use the scanner class to input the data

Use an array to hold the data (assume a MAX size of 100)

Sort the data on demand with a selection sort for "string" data (i.e., if the user decides to sort by first name, last name, or College) and with a bubble sort for integer data (player number, age or weight)

Algorithm Requirements (50%)

Used 2 different sort

Use 1 compare function

User selection of what to sort on

Java Mechanics Requirements (25%)

Read from file using Scanner, correctly detecting eof,

Communication Requirements (25%)

Removed default documentation

Name is commented

Meaningful variable, object, and method names or documentation of variable names

Menu of options easy to read

Clear directions for user

image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

Describe a typical interpersonal skills training program

Answered: 1 week ago