How is this method coded in Java?
int[] sortBubble(int[][] view)
sortBubble performs a bubble sort on a view (a referential view of the master set of posts). sortBubble returns an array of profile information as detailed in the Data Structures section above. You may implement additional functions to support this sorting operation; however, take care that the profile information is accurately maintained and accounted for over any subsequent function calls.
/// Sorts (shallow) a set of references to posts in descending order
/// subject to the differential between ups and downs using bubble
/// sort
/// @param view A shallow copy of a set of posts
/// @return an array of profile information of 3 buckets with the
/// respective buckets containing a count of 0: allocations,
/// 1:comparisons, and 2: swaps
public static int[] sortBubble(int[][] view) {
// profile[0:allocs, 1:comparisons, 2:swaps]
int[] profile = new int[3];
// TODO : Implement Here
return profile;
}
Posts Data:
0001 505361 236677
0002 629710 727941
0003 414780 842861
0004 702957 401854
0005 862865 315572
0006 930013 609421
0007 326101 220500
0008 732457 404837
0009 878259 411163
0010 227645 638470
In: Computer Science
A minority representation group accuses a major bank of racial discrimination in its recent hires for financial analysts. Exactly
16%
of all applications were from minority members, and exactly
14%
of the
2100
open positions were filled by members of the minority.
p
, wherep
is the proportion of minority member applications in a random sample of2100
that is drawn from all applications.p
.P≤p0.14
, which is the probability that there will be14%
or fewer minority member applications in a random sample of2100
drawn from all applications. Round your answer to four decimal places.In: Math
Explain the relationship between spirituality, religion and social work practice
In: Psychology
1)Which one of the following integration management processes is responsible for implementing process improvement activities?
A.Direct and Manage Project Work
B. Monitor and Control Project Work
C.Develop Project Charter
D Perform Integrated Change Control
2.Which of the following statements is false about the Executing
Process Group?
A.The process group usually takes the most time
and resources.
B.The processes in this process group measure and analyze the process and performance of the project, ensure that the plan is working, identify any areas in which changes to
the plan are required, and initiate the corresponding changes.
C.Corrective actions, preventative actions, and defect repairs are implemented in the process group.
DThis process group consists of processes to complete the work defined in the project management plan and ultimately satisfies the project specifications and objectives.
3) You identified all people who would be impacted by the project and documented relevant information regarding their interests, expectation, involvement, and influence on the
project success in a stakeholder register. The stakeholder register will not be used as an input to which of the following processes?
A.Collect Requirement and Identify Risks
B.Plan Risk Management and Plan Resource Management
C.Plan Quality Management and Plan Communications Management
D.Develop Project Charter and Perform Integrated Change Control
4,You are in the process of evaluating and monitoring overall stakeholder relationships and ensuring stakeholders' appropriate engagement in the project by adjusting plans and
strategies as required. The Work Performance Data that is an input to this Monitor Stakeholder Engagement process usually comes from:
A.Validate Scope
BPerform Integrated Change
C.Monitor and Control Project Work
D.Direct and Manage Project Work
In: Operations Management
Problem #1: On a certain island, there is a population of snakes, foxes, hawks and mice. Their populations at time t are given by s(t), f (t), h(t), and m(t) respectively. The populations grow at rates given by the differential equations
s′ = 21/8 s − f − 7/8 h − 1/8 m
f ′ = 5/8 s + f − 7/8 h − 1/8 m
h′ = 5/8 s + 0 f + 1/8 h − 1/8 m
m′ = 65/4 s − 5 f − 31/4 h − 5/4 m
Putting the four populations into a vector y(t) = [s(t) f (t) h(t) m(t)]T, this system can be written as y′ = Ay. Find the eigenvectors and eigenvalues of A. Label the eigenvectors x1 through x4 in order from largest eigenvalue to smallest (the smallest being negative). Scale each eigenvector so that its first component is 1. When you have done so, identify the eigenvector whose fourth component is the largest. What is that largest fourth component? Problem #1: 14 Problem #1 Attempt #1 Attempt #2 Attempt #3 Your Answer: 14 Your Mark: 0/3✘ 3/3 ✔
Problem #2: Continuing from the system of differential equations from Problem 1, each eigenvector represents a grouping of animals that changes with simple exponential growth or decay. The exponential rate of growth or decay is given by the corresponding eigenvalue. Because the matrix A is invertible and diagonalizable, any initial values for the animal population can be written as a combination of these four special groupings that each grow exponentially by their eigenvalue. Consider the initial population y(0) = [18 11 4 102]T. Solve for constants c1 through c4 in order to write y(0) = c1 x1 + c2 x2 + c3 x3 + c4 x4 where x1 through x4 are the eigenvectors as detailed in Problem 1 (i.e., the eigenvectors in order, and scaled so that the first component is 1). Enter the values of c1, c2, c3, and c4, separated with commas.
Problem #2: Problem #2 Attempt #1 Attempt #2 Attempt #3 Your Answer:
Problem #3: Based on the system of differential equations from Problem 1, with the initial population from problem 2, find the function for the population of hawks, h(t).
In: Advanced Math
How do you observe atomic gas, ionized gas, ongoing star formation, and accelerated charged particles?
In: Physics
A pension fund manager is considering three mutual funds. The
first is a stock fund, the second is a long-term government and
corporate bond fund, and the third is a T-bill money market fund
that yields a sure rate of 3.0%. The probability distributions of
the risky funds are:
Expected Return | Standard Deviation | |||
Stock fund (S) | 12 | % | 41 | % |
Bond fund (B) | 5 | % | 30 | % |
The correlation between the fund returns is .0667.
Suppose now that your portfolio must yield an expected return of 9%
and be efficient, that is, on the best feasible CAL.
a. What is the standard deviation of your
portfolio? (Do not round intermediate calculations. Round
your answer to 2 decimal places.)
b-1. What is the proportion invested in the T-bill fund? (Do not round intermediate calculations. Round your answer to 2 decimal places.)
b-2. What is the proportion invested in each of
the two risky funds? (Do not round intermediate
calculations. Round your answers to 2 decimal places.)
In: Finance
1. Given a two-tailed test with test statistic a = 1.62 and n = 0.10, find the the p-value and determine if we reject or fail to reject ho. Say why
2. In a recent survey of parents at Clairmont Elementary, 51 out of 75 parents supported including sign language as a part of the elementary school curriculum. In a survey of Minnesota elementary schools, it was published that 56% of parents support including sign language in elementary school curriculum. At a 5% level of significance, are Clairmont Elementary’s results the same as the state percentage? Conduct a seven-step hypothesis test.
In: Math
A waiter takes an order at a table, and then enters it online via one of the six terminals located in the restaurant dining room. The order is routed to a printer in the appropriate preparation area: the cold item printer if it is a salad, the hot-item printer if it is a hot sandwich or the bar printer if it is a drink. A customer’s meal check-listing (bill) the items ordered and the respective prices are automatically generated. This ordering system eliminates the old three-carbon-copy guest check system as well as any problems caused by a waiter’s handwriting. When the kitchen runs out of a food item, the cooks send out an ‘out of stock’ message, which will be displayed on the dining room terminals when waiters try to order that item. This gives the waiters faster feedback, enabling them to give better service to the customers. Other system features aid management in the planning and control of their restaurant business. The system provides up-to-the-minute information on the food items ordered and breaks out percentages showing sales of each item versus total sales. This helps management plan menus according to customers’ tastes. The system also compares the weekly sales totals versus food costs, allowing planning for tighter cost controls. In addition, whenever an order is voided, the reasons for the void are keyed in. This may help later in management decisions, especially if the voids consistently related to food or service. Acceptance of the system by the 3employees is exceptionally high since the waiters and waitresses were involved in the selection and design process. All potential users were asked to give their impressions and ideas about the various systems available before one was chosen.
Please identify the business rules, the entity relationship diagram and the potential database tables, using common sense and the information provided in this case (20 points with 5 points for legend).
In the light of the system, describe the decisions to be made in the area of strategic planning, managerial control and operational control? What information would you require to make such decisions? (10 points)
what would make the system a more complete MIS rather than just doing transaction processing? (10 points)
Please do not copy and paste the other answer to this question from chegg which are NOT correct or thought out!
In: Operations Management
According to the buyer resolution theory, a purchase is made only after the client has made five buying decisions.
What are they and how does this help the salesperson to assist the client?
Successful salespeople have also adopted a product strategy that involves the discovery of buying motives that influence the purchase decision. Distinguish between the emotional and rational buying motives of a client.
Please discuss these items in detail
In: Finance
The important factor when considering your audience is determining what they need from your communication. How do we determine needs?
Discover ways in which we can determine the information that a targeted audience needs from our communications.
In: Psychology
1. compile and try to run broken.c
2. use the gdb debugger to try to find where the seg fault occurs
3. after a bit of detective work with the use of gdb, answer the questions in the file questions.txt
4. fix the error(s) in broken.c
****broken.c*****
/* This program creates an array containing 10 integers
and then at the bottom checks to see if the number 11
is in the array.
Note: the program contains a bug that only shows up when
it is run.
*/
#include <stdio.h>
#include <stdlib.h>
int main( void ) {
int i = 0, count = 0, search = 1, found = 0;
int number = 5;
int table[10];
table[0] = number;
printf( "table[%i]: %i\n", count, table[count] );
count = 1;
while( count < 10 ) {
table[count] = number++ * 2;
printf( "table[%i]: %i\n", count, table[count] );
count++;
}
while( search = 1 ) {
if( table[i++] == 11 ) {
search = 0;
found = i - 1;
}
if( count == i ) {
search = 0;
}
}
if( found )
printf( "The number 11 is in the table at location: %d\n", found
);
else
printf( "The number 11 is not in the table.\n" );
return 0;
}
questions.txt regarding broken.c
--------
broken.c
--------
2) What line in broken.c did the program seg fault on?
3) What was the value of the variable "count" at the time of the
seg fault?
4) What was the value of the variable "i" at the time of the seg
fault?
5) What was the value of the variable "search" at the time of the
seg fault?
6) What are the values in the "table" array?
7) what do you think the bug is?
In: Computer Science
Describe and exemplify questionnaires prepared by renowned authors to detect learning behaviors along with the analysis of preferred (representational) cognitive models of the college students
In: Psychology
Webster Chemical Company produces mastics and caulking for the construction industry. The product is blended in large mixers and then pumped into tubes and capped. Management is concerned about whether the filling process for tubes of caulking is in statistical control. The process should be centered on 8 ounces per tube. Several samples of eight tubes were taken, each tube was weighed, and the weights in Table 3.3 were obtained.
Assume that only six samples are sufficient and develop the control charts for the mean and the range.
Plot the observations on the control chart and comment on your findings.
TUBE NUMBER | ||||||||
---|---|---|---|---|---|---|---|---|
Sample | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
1 | 7.98 | 8.34 | 8.02 | 7.94 | 8.44 | 7.68 | 7.81 | 8.11 |
2 | 8.33 | 8.22 | 8.08 | 8.51 | 8.41 | 8.28 | 8.09 | 8.16 |
3 | 7.89 | 7.77 | 7.91 | 8.04 | 8.00 | 7.89 | 7.93 | 8.09 |
4 | 8.24 | 8.18 | 7.83 | 8.05 | 7.90 | 8.16 | 7.97 | 8.07 |
5 | 7.87 | 8.13 | 7.92 | 7.99 | 8.10 | 7.81 | 8.14 | 7.88 |
6 | 8.13 | 8.14 | 8.11 | 8.13 | 8.14 | 8.12 | 8.13 | 8.14 |
In: Operations Management
Write nursing care plan one from any renal diagnoses , one from any GI diagnoses and one from musculoskeletal diagnoses
In: Nursing