Implement comparators to support sorting

Assignment Help Programming Languages
Reference no: EM13333892

Extend Project 1 to use advanced data structures and support sorting on various keys.

The project will be graded according the criteria for the final project - see below.

Elaboration:

1. Use the Map class to support efficient instantiation linking of the classes used in Project 1.

2. Implement comparators to support sorting:

o creatures by (added fields) name, age, height, and weight
o OR creatures by existing fields empathy, fear and carrying capacity
o treasures by weight and value.

3. Extend the GUI from Project 1 to allow the user to:
o sort by the comparators defined in part 2.

4. Again, the GUI elements should be distinct from the other classes in the program.

Reference no: EM13333892

Questions Cloud

Determine what bid price should be submitted : Dahlia Enterprises needs someone to supply it with 129,000 cartons of machine screws per year to support its manufacturing needs over the next five years, and you've decided to bid on the contract.
Explain how employee involvement potentially results : Senior management at Candoo Graphics has numerous administrative and client problems. In the past, the company assigned one person (typically a senior executive or department manager) to solve each problem alone.
Make science and its constant revising work even better : Why you think scientists probably want to leave what they do open to revision. What are the hard-and-fast rules of science? Are there any? With so few firm rules, how does science avoid becoming fiction? What might make science and its constant revis..
Determine how large will the last payment be : Six years from today you need $10,000. You plan to deposit $1,600 annually, with the first payment to be made a year from today, in an account that pays a 7% effective annual rate.
Implement comparators to support sorting : Extend Project 1 to use advanced data structures and support sorting on various keys.
What are some of the operations management practices : What are some of the operations management practices that can help bring manufacturing back to the U.S? How can a focus on quality improve manufacturing?
Determine her final speed at the top : A 60-kg skier with an initial speed of 16 m/s coasts up a 2.50-m high rise, Find her final speed at the top in m/s, given that the coefficient of friction between her skis and the snow is 0.08
Determine what apr rate should you charge your customers : As a jewelry store manager, you want to offer credit, with interest on outstanding balances paid monthly. To carry receivables, you must borrow funds from your bank at a nominal 6%, monthly compounding.
What is the frequency of these waves : Under normal conditions, humans radiate electromagnetic waves with a wavelength of about 9.0 microns. What is the frequency of these waves

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program to enter number of packages purchased

Write a program that asks the user to enter the number of packages purchased.The program should then display the amount of the discount.

  Write pseudocode

Write pseudocode that represents the abstract functions of the enqueue and dequeue operations. Define and explain any supplementary information needed by your pseudocode.

  Create pseudocode for program to accept insurance data

Create a pseudocode for a program to accept insurance policy holder data, including a policy number, customer last name, customer first name, age, premium due month, day, and year,

  Write a program that generates all the factors of a number

Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3.

  Explain some ways tables can be used on web page

Tables are one of the most useful page layout tools available to web designers. Explain some ways tables can be used on a web page. Elaborate on other ways to achieve the same look.

  Program to compute total price of items before tax

Program is to compute total price of items before tax and then tax payable on those items. Tax payable is computed by applying tax rate percentage to total price.

  Writing program of long term parking

Write an enitre program about the long term parking, and calculate the parking total fare.

  Dishtinguish antigone and what you know of theban saga

How would you dishtinguish Antigone, and what you know of Theban saga, to Oresteia, and what you know of story of Mycenaean saga?

  Implement a program that processes an input file

Implement a program that processes an input file by changing every occurrence of an old string into a new string. (e.g., the usage is: chstr.pl file oldstring newstring, chstr.pl is your program name, file, oldstring and newstring are parameters ..

  Create program in visual studio-produce summary of ammounts

Create the program in Visual Studio, C#, 3.5 .Net that will produce the summary of amounts due for Pat's Auto Repair Shop. Display splash screen first.

  Write program which asks user for number of bolts

Write C++ program which asks user for number of bolts and number of nuts in their purchase and then computes and prints out total cost.

  Create two global varibles to declare an empty array

Need to create two global varibles. The first currentTab, which will reference the current menu tab being dispalyed with a initial value of null, the second variable is maxZ which will store the z-index and it's initial value is 1.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd