Questions
USE JAVA Write a static generic method PairUtil.minmax that computes the minimum and maximum elements of...

USE JAVA

Write a static generic method PairUtil.minmax that computes the minimum and maximum elements of an array of type T and returns a pair containing the minimum and maximum value. Require that the array elements implement the Measurable interface of Chapter 10.

In: Computer Science

What is the osmotic pressure, in torr, of a 3.00% solution of NaCl in water when...

What is the osmotic pressure, in torr, of a 3.00% solution of NaCl in water when the temperature of the solution is 45 ºC? Enter your answer scientific notation.

In: Chemistry

reate a class Song with the data members listed below: title: string the name of the...

reate a class Song with the data members listed below:

  • title: string the name of the song. (initialize to empty string)
  • artist: string the name of the artist. (initialize to the empty string)
  • downloads: int the number of times the song has been downloaded. (initialize to 0)

Include the following member functions:

  • default constructor,
  • a constructor with parameters for each data member (in the order given above),
  • getters and setter methods for each data member named in camel-case.  For example, if a class had a data member named myData, the class would require methods named in camel-case: getMyData and setMyData.
  • double grossRevenue(double price): This function should take in a price per download and returns the total revenue for the song (revenue = price * downloads).

You only need to write the class definition and any code that is required for that class (i.e., header and implementation).

NOTE: you must not use the implicit "private" for class data types and methods. Include public or private explicitly.

In: Computer Science

The American Society of PeriAnesthesia Nurses (ASPAN; www.aspan.org) is a national organization serving nurses practicing in...

The American Society of PeriAnesthesia Nurses (ASPAN; www.aspan.org) is a national organization serving nurses practicing in ambulatory surgery, preanesthesia, and postanesthesia care. The organization's membership is listed below.

State/Region Membership
Alabama 102
Arizona 420
Maryland, Delaware, DC 471
Connecticut 177
Florida 432
Georgia 330
Hawaii 84
Maine 51
Minnesota, Dakotas 360
Missouri, Kansas 325
Mississippi 128
Nebraska 77
North Carolina 368
Nevada 121
New Jersey, Bermuda 508
Alaska, Idaho, Montana,Oregon, Washington 716
New York 1,016
Ohio 833
Oklahoma 209
Arkansas 89
Illinois 492
Indiana 332
Iowa 83
Kentucky 236
Louisiana 290
Michigan 413
Massachusetts 540
California 1,173
New Mexico 62
Pennsylvania 443
Rhode Island 43
Colorado 443
South Carolina 281
Texas 1,168
Tennessee 169
Utah 88
Virginia 412
Vermont, New Hampshire 109
Wisconsin 471
West Virginia 77


a. Find the mean, median, and standard deviation of the number of members per component. (Round your answers to 2 decimal places.)

Mean:

Median:

Standard Deviation:

b-1. Find the coefficient of skewness, using the software method. (Round your answer to 2 decimal places.)

Coefficient of skewness:

b-2. What do you conclude about the shape of the distribution of component size?

a. Mild positive skewness

b. Mild negative skewness

c. Determine the first and third quartiles. Do not use the method described by Excel. (Round your answers to 2 decimal places.)

First Quartile:

Third Quartile:

d-1. Are there any outliers?

a. Three

b. One

c. Two

d. Four

e. Zero

d-2. What are the limits for outliers? (Round your answers to the nearest whole number. Negative amounts should be indicated by a minus sign.)

Limits _____ to _____

In: Math

What is profit? There is accounting profit discussed in the textbook: profit = total revenues –...

What is profit? There is accounting profit discussed in the textbook: profit = total revenues – explicit costs Let me relate profit to the factors of production. The three factors of production according to the textbook are land, labor, and capital. Let me add a fourth factor found in many economics textbooks: a return to the entrepreneur! (Entrepreneurs provide two services to society: organize resources and assume risk.) So how does a firm or entrepreneur maximize its profits? The answer is simple: provide society what it wants. (Note: this may be different from what society needs.) Note: Given this perspective, profit is something inherently good, something to be maximized, not feared. Let’s refine our understanding of this concept. Normal profit is that return necessary to attract and maintain entrepreneurial participation in some economic activity. Economic rent is return greater than normal profit.

Response:

In: Economics

Explain what types of financial and management goals Medi-Supply might have as the company moves forward...

Explain what types of financial and management goals Medi-Supply might have as the company moves forward to look for investors. (75–150 words, or 1–2 paragraphs)

In: Finance

The wavelength of the four Balmer series lines for hydrogen are found to be 410.1, 434.3,...

The wavelength of the four Balmer series lines for hydrogen are found to be 410.1, 434.3, 486.6, and 655.9 nm. What average percentage difference is found between these wavelength numbers and those predicted?

In: Physics

In C++, create two vectors, one a vector of ints and one a vector of strings....

In C++, create two vectors, one a vector of ints and one a vector of strings. The user will fill each one with data, and then your program will display the values.

  1. Copy the template file /home/cs165new/check10a.cpp to your working directory.
  2. For this assignment, in order to focus our practice on the syntax of the vectors, you can put all of your code in main.
  3. Create and display a vector of ints as follows:
    1. Create a vector of ints.
    2. Prompt the user for ints until they enter 0, and store them in your vector.
    3. Loop through all the numbers in the vector and display each one.
    4. When you loop through, make sure to use the size of your vector in your condition (not a separate integer from above).
  4. Create and display a vector of strings as follows:
    1. Create a vector of strings.
    2. Prompt the user for strings until they enter "quit", and store them in your vector.
    3. Loop through all the strings in the vector and display each one.
    4. When you loop through, make sure to use the size of your vector in your condition (not a separate integer from above).
  5. You do not have to use iterators for this assignment (but you are welcome to if you would like). It can be done using the [] operator.

Sample Output

The following is an example of output for this program:

Enter int: 3

Enter int: 12

Enter int: 4

Enter int: 0

Your list is:

3

12

4

Enter string: The

Enter string: quick

Enter string: brown

Enter string: fox

Enter string: jumps

Enter string: over

Enter string: the

Enter string: lazy

Enter string: dog

Enter string: quit

Your list is:

The

quick

brown

fox

jumps

over

the

lazy

dog

In: Computer Science

Can I get detailed explanation about the following topics Keyword Queries Boolean Queries Phrase Queries Proximity...

Can I get detailed explanation about the following topics

Keyword Queries

Boolean Queries

Phrase Queries

Proximity Queries

Natural Language Queries

Wildcard Queries

Rather than the solution for Chapter 27, proplem 18RQ in Fundamentals of database system (6th Edition) and also provide me with examples

Regards

In: Computer Science

A speeding car is traveling along a straight road with a constant speed of 100 km/hour....

A speeding car is traveling along a straight road with a constant speed of 100 km/hour. It passes a police car. The officer starts 5.00 s after the speeder passes. The police car accelerates uniformly (i.e., at a constant acceleration) for 10.0 s, at the end of which its speed is 120 km/hour. After that, the police car moves with the constant speed of 120 km/hour till it reaches the speeding car.

How far ahead of the police car is the speeding car when the police car stops accelerating? How long after it stops accelerating does the police car reach the speeding car?

In: Physics

To what extent can the transmedia storytelling approach be used for marketing non entertainment products? What...

To what extent can the transmedia storytelling approach be used for marketing non entertainment products? What contextual factors would determine the applicability and effectiveness of this approach?

In: Operations Management

If 1) the expected return for Litchfield Design stock is 10.66 percent; 2) the dividend is...

If 1) the expected return for Litchfield Design stock is 10.66 percent; 2) the dividend is expected to be 2.99 dollars in 2 year(s), 4.4 dollars in 4 years, and 8.08 dollars in 8 years; and 3) after the dividend is paid in 8 years, the dividend is expected to grow by 3.04 percent per year forever, then what is the current price of the stock?  If no expected dividend is mentioned for a given year, assume the expected dividend is $0 for that year.

In: Finance

using java. using eclipse. write a program that asks to enter 3 real numbers using GUI....

using java. using eclipse. write a program that asks to enter 3 real numbers using GUI. print the sum if all 3 numbers are positive, print the product of the 2 positive numbers if one is negative, use one nested if statement. all output should be to dialog and the console. ...... So i have most of this program done, i just cant figure out how to get the product of the 2 positve numbers to print to the console and dialog. Here is what I have so far.... i know the if and else if statements are correct, i just dont know how to get the if and else if to print to console and dialog correctly for the product.

import java.util.Scanner;
import javax.swing.JOptionPane;
public class Project3 {
public static float getFloat(){
  String s = JOptionPane.showInputDialog("Enter a real number");
  return Float.parseFloat(s);
}

public static void main(String[] args) {
  float x = getFloat();
  float y = getFloat();
  float z = getFloat();
  // if all three are positive print the sum
  if(x>0 && y>0 && z>0) System.out.printf("Sum:%8.2f\n", (x+y+z));
  //if two of the three are positive print the product
  else if((x>0 && y>0 && z<0)||(x>0 && y<0 && z>0)||(x<0 && y>0 && z>0));
  System.out.printf("Product:%8.2f",((x*y)||(x*z)||(y*z)));
  
  
  JOptionPane.showMessageDialog(null, "Sum:"+(x+y+z)+"\nProduct:"+((x*y)||(x*z)||(y*z)));
  
  
  Scanner scan=new Scanner(System.in);
  System.out.println("\nEnter 2 real numbers");
  // if both are negative print the quotient
  float a = scan.nextFloat();
  float b = scan.nextFloat();
  if(a<0 && b<0) System.out.printf("Quotient:%8.2f", (a/b));
  JOptionPane.showMessageDialog(null, "Quotient:"+(a/b));
  
  
  System.exit(0);
}

}

In: Computer Science

*I JUST WANT A GENERAL WALKTHROUGH OF HOW TO DO THIS. PSEUDOCODE IS FINE. THANK-YOU. THIS...

*I JUST WANT A GENERAL WALKTHROUGH OF HOW TO DO THIS. PSEUDOCODE IS FINE. THANK-YOU. THIS IS IN C THE PROGRAMMING LANGUAGE.*

The program will require the following structure:

struct _data {                                 

   char *name;

   long number;

};

The program will require command line arguments:

int main(int argv, char **argc) {

       

Where argv is the number of arguments and argc is an array

holding the arguments (each is a string). Your program must catch

any case where no command line arguement was provided and print

a warning message (see below).

You MUST include/use the following functions, defined as follows:

int SCAN(FILE *(*stream)) - this function will open the file/stream

and return an integer indicating how many lines there are. Note that

I need to pass stream, which is a pointer, by reference. So I am

passing this as a pointer to a pointer.

struct _data *LOAD(FILE *stream, int size) - this function will

rewind file, create the dynamic array (of size), and read in the

data, populating the _data struct dynamic array. Note that stream

is passed by value this time. The function then returns the populated

array of struct.

void SEARCH(struct _data *BlackBox, char *name, int size) - this function

will get the dynamic array of struct passed to it, the name we are looking

for, and the size of the array. This function will then search the dynamic

array for the name. See below for examples.

void FREE(struct _data *BlackBox, int size) - this function will free up

all of the dynamic memory we allocated. Take note of the number of times

malloc/calloc were called, as you need to free that same number.

Finally, the data file will be called hw5.data and will be formatted as:

ron 7774013

jon 7774014

tom 7774015

won 7774016

HINTS:

------

Functions that will make things much easier:

getline()

feof()

strtok()

atoi()

SAMPLE RUNS:

------------

Case 1 - No command line argument provided.

[yourname@chef junk]$ ./CS230-5

*******************************************

* You must include a name to search for. *

*******************************************

Case 2 - Provided name is NOT in the list.

[yourname@chef junk]$ ./CS230-5 joe

*******************************************

The name was NOT found.

*******************************************

Case 3 - Provided name is in the list.

*******************************************

The name was found at the 2 entry.

*******************************************

In: Computer Science

What are some advantages and disadvantages of collaborating on a development project?

What are some advantages and disadvantages of collaborating on a development project?

In: Operations Management