Write a generic method that will return the maximum

Assignment Help Computer Engineering
Reference no: EM132137091

Write the Java source code necessary to build a solution for the problem below:You have just taken a new "Teach for America" job in a very rural, impoverished neighborhood.

The school system does not provide you with any tools. You decide to write a new gradebook program.

You need your new gradebook to allow you to sort the students by NAME or by highest grade on a test so that you can fill out all of the many district reports on your students' progress.

Remembering that sometimes Java lets you write one method and use it many times, you decide to write a generic method that will return the maximum and minimum element in a two-dimensional array (your gradebook, NAME, SCORE).

Test the program using an array of random integers and again using an array of random names.

In order to do the comparison of names you need to understand the Java Character encoding scheme (Links to an external site.).
You should check this site to understand which character is bigger ("A" or "Z") and then work from there.

Print the array sorted by SCORE, then use it again and print the array sorted by NAME.

Reference no: EM132137091

Questions Cloud

Financial health of the companies : Based on your review of the financial statements of Company A and B, suggest a key insight about the financial health of the companies.
Determine the enterprise value of company : 1) Assume that Company A wants to take-over Company B. Determine the enterprise Value of company B? Can Company A affo
Explain the positive effects of stereotypes on intercultural : They provide a shorthand way of dealing with differences and allowing us to categorize how people think about things and interact with our world.
What is the amount of the next annual dividend : What is the amount of the next annual dividend if the dividends are increasing by 3.8 percent annually?
Write a generic method that will return the maximum : The school system does not provide you with any tools. You decide to write a new gradebook program.
Determine pg current : a. Determine PG's current (before increasing its debt-to-equity ratio) Asset return (rA) b. Determine PG's WACC (rWACC) after PG raises its debt-to-equity rati
What is the value of stock today : The required return is 10.8 percent. What is the value of this stock today?
Develop an expression for the controller output : At steady-state, the output of a PID controller is 10mA. When the process is upset, the set-point signal increases at a rate of 0.4 mA/min.
Determine the internal rate of return for a project : Determine the internal rate of return for a project that costs -$149,500 and would yield after-tax cash flows of $23,000 the first year

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why do some distributed systems use two-level naming

Why do some distributed systems use two-level naming? Why do stateless servers have to include a file offset in each request?

  Write an application that extends jframe

Write an application that extends JFrame and that displays a yellow smiling face on the screen. save file as JSmileFace.java

  What is the relationship between treesort and quicksort?

What is the relationship between treesort and quicksort? What causes removal from a search tree to be more difficult than insertion into a search tree.

  Discuss how you prepare your team for court testimony

Ethics responsibilities you follow and require in your team's performance

  What is the value of x

Assume that a vector processor operates 20 times faster on vector code than scalar code. If only x% of the program is vectorizable, what is the value of x.

  What are the contents of the a register after the execution

What are the contents of the A register after the execution of this instruction? XXXX=XXX XXXXXXXX XXXXXX== and XXXX=XX= XXXXXXXX XXXXXX==.

  What are the advantages of using erp

As an IT manager, discuss how your company will use Enterprise Resource Planning (ERP) to integrate the various functions of an entity.

  Write an application that presents three buttons and a label

Write an application that presents three buttons and a label. Label the buttons Add, Subtract and Multiply respectively. Display a numeric value (initially 1).

  Create a test driver that exercises this new feature

Without using a TreeIterator, create a new method called total that takes an no arguments and determines that the sum of all the elements stored in the BinarySearchTree. Create a test driver that exercises this new feature, prints the tree and the ..

  What is needed to interface to the lcd

The pin numbers in thedefinition of LcdDriver are critical and are based on the traces from the schematic.

  Describe the flow of data through your network

Describe the flow of data through your network, and explain how your network design provides multiple layers of security. The Internet cloud, generically, to represent your network's interface to the Internet.

  Describe one hardware component in detail

Describe one hardware component that are essential to YOU as a consumer. Provide three options (brand, style, etc.) for the component.

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