Write an array-returning method that takes a two-d array

Assignment Help Data Structure & Algorithms
Reference no: EM131270081

1) Write an array-returning method that takes a two-dimensional array of ints as a parameter and returns a two-dimensional array of chars, assigning a letter grade corresponding to the integer grade (A if 90 or above, ..., F if less than 60). Include code to test your method.

2) Write a class (and a client class to test it) that encapsulates statistics for summer job salaries for a group of people over several years. Your only instance variable should be a two-dimensional array of values representing salaries. Dimension 1 represents the people and dimension 2 represents the year of the summer job. Your constructor can simply take two integers representing the number of people and the number of years, then randomly generate the salaries and fill the array. You should include the following methods:

a method returning the index of the person having made the most money over the years

a method returning the year when the highest salary was earned

a method returning the total amount of money made by all the people over the years

The language for this question is JAVA.

Reference no: EM131270081

Questions Cloud

Appropriate ad-as model : Your task is to devise and implement measures that will reduce structural unemployment and alleviate poverty in your country. Critically discuss the two measures and illustrate why you think they will be effective by making use of an appropriate A..
Discuss the effect of the area bounded : Discuss the effect of the area bounded by y = x and the Lorenz curve getting smaller relative to the equitable distribution of income.
Sentences to emphasize the positive : To avoid the loss of your credit rating, please remit payment within 10 days. Hint: think about rephrasing. Research tells us that people are far more likely to act when things are phrased positively. Rather than talking about losing a credit rating…..
Annual operating cash flows : For model Two, the machinery would cost €2,200,000, have a useful economic life of five years and a disposable value of €150,000 at any time after initial installation.
Write an array-returning method that takes a two-d array : Write an array-returning method that takes a two-dimensional array of ints as a parameter and returns a two-dimensional array of chars, assigning a letter grade corresponding to the integer grade (A if 90 or above, ..., F if less than 60).
Create your own unique while-end repetition structure : Create your own unique While-End repetition structure. You decide the theme. You should provide both the pseudocode and the flowchart of your example.
Critical to an organization overall strategic plan : Identify a key area where the human resource department is critical to an organization's overall strategic plan. Discuss how HR impacts that area. Discuss where an organization can see positive/negative results from HR's involvement in that area.
When does a corporation need a board of directors : Why has strategic management become so important to today’s corporations? Why are strategic decisions different from other kinds of decisions? When does a corporation need a board of directors?
Corporate culture of euron contribute to its bankruptcy : How did the Corporate Culture of Euron Contribute to its bankruptcy? Did Enron's bankers, auditors, and attorneys contribute to Euron's demise? if so how?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Separate inventory database

A 20-year old corporation, SewWorld, comprised of 6-locations in three states, sells sewing machines, sewing related software, and accessories. Each store sells between 3-5 different brands of sewing equipments.

  What is a linear implementation

What is a linear implementation? What kind of implementation of the ADT table is appropriate for retrieval-dominated applications, if the maximum size of the table is known? Why

  Produce a driver program and the information-retrieval

All words in structure are printed at the terminal in alphabetical order together with their frequency counts

  Algoithm to select to describe intrinsically recursive

Algoithms you select so you can describe and assess them. Write challenges did you face in process? How did you go about resolving them?

  Refresh address counter

A microcomputer memory is built from 64K X 1 DRAM, with DRAM cell array organized into 256 rows. Each row requires being refreshed at least once every four ms, strictly on a periodic basis.

  Which actions would be inappropriate for program to take

If the user types an invalid value into a TextBox and moves focus to another TextBox, which of the following actions would be inappropriate for the program to take?

  Write a pseudocode for a recursive version of binary search

Write a pseudocode for a recursive version of binary search

  Write an algorithm that computes the depth-first search

Write an algorithm that computes the depth-first search in­ terval labeling scheme (see Subsection 4.4. 2) for an arbitrary connected net­ work. Can it be done in O(N) time units? Can it be done using O(N) messages?

  Data-hiding techniques

Suppose you are the Chief Security Officer for a financial institution. Someone on your information security staff has informed you that recent Web content filters have shown an end user who has been visiting sites dedicated to alternate data stre..

  Explaining elementary operations used in algorithm

How many elementary operations are used in algorithm given below? The elementary operations are comparison operations (such as > and

  Create a graph showing best average and worst case

Create a graph showing best, average, and worst case T scores for your code in number 3 above for n = powers of 2 from 21 to 216. If there are any results you cannot provide be specific as to the reason. You can modify the best/worst by modifying ..

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