Questions
A developer of a subdivision wants to preserve the open space and natural habitat that runs...

A developer of a subdivision wants to preserve the open space and natural habitat that runs along the back portion of a series of large lots in the proposed subdivision.   He is debating whether to use restrictive covenants to accomplish this or to create a habitat easement on the same space. What are the pros and cons of each choice?

In: Finance

JAVA: This is my code, but when it runs, for the "Average Score" output, it only...

JAVA: This is my code, but when it runs, for the "Average Score" output, it only gives me NaN. How can I fix that?

import java.util.Scanner;

public class prog4 {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);

String name;
double score;
double minScore = 0;
double maxScore = 0;
int numberOfRecords = 0;
double sum = 0;
double average = sum / numberOfRecords;

System.out.printf("%-15s %-15s %-15s\n", "Student#", "Name", "Score");
  
       while (reader.hasNext()) {
name = reader.next();
score = reader.nextDouble();
sum += score;
System.out.printf("%8d%12s %16.2f\n", numberOfRecords + 1, name, score);
if (numberOfRecords == 0) {
minScore = score;
} else if (minScore > score) {
minScore = score;
}
if (maxScore < score) {
maxScore = score;
}
numberOfRecords += 1;
}

System.out.println("Number of Records: " + numberOfRecords);
System.out.printf("Max Score: %.2f\n", maxScore);
System.out.printf("Min Score: %.2f\n", minScore);
System.out.printf("Average Scores: %.2f\n", average);

}

}

In: Computer Science

A local gym is looking in to purchasing more exercise equipment and runs a survey to...

A local gym is looking in to purchasing more exercise equipment and runs a survey to find out the preference in exercise equipment amongst their members. They categorize the members based on how frequently they use the gym each month – the results are below. Run an independence test at the 0.01 level of significance.

Free Weights

Weight Machines

Endurance Machines

Aerobics Equipment

0-10 Uses

12

17

25

13

11-30 Uses

20

18

9

9

31+ Uses

26

12

11

9

Enter the P-Value

In: Statistics and Probability

The risk of HIV: The risk of HIV runs high in North America. In the at-risk...

The risk of HIV:

The risk of HIV runs high in North America. In the at-risk population, about 1 in 30 people are HIV carriers, while in general population (people who are not at risk), 1 in 300 are. The at-risk population is 2% in total in North America. Doctors have developed a test for HIV and suppose that it correctly identifies carriers 95% of the time, while it correctly identifies the disease-free only 90%. As the test detects HIV only, you can assume that it is conditionally independent of being at risk, given carrier or not-carrier status.

a. If a random person is sampled, what is the probability that he/she is a carrier?

b. Given that a person has a positive test result and is not in the at-risk population, what is the probability that he/she is a carrier?

In: Math

14. An engine runs at a constant load at a speed of 480 r.p.m. The crank...

14. An engine runs at a constant load at a speed of 480 r.p.m. The crank effort diagram is drawn to a scale
1 mm = 200 N-m torque and 1 mm = 3.6º crank angle. The areas of the diagram above and below the
mean torque line in sq mm are in the following order:
+ 110, – 132, + 153, – 166, + 197, – 162
Design the flywheel if the total fluctuation of speed is not to exceed 10 r.p.m. and the centrifugal stress
in the rim is not to exceed 5 MPa. You may assume that the rim breadth is approximately 2.5 times the
rim thickness and 90% of the moment of inertia is due to the rim. The density of the material of the
flywheel is 7250 kg/m3.
Make a sketch of the flywheel giving the dimensions of the rim, the mean diameter of the rim and
other estimated dimensions of spokes, hub etc

In: Mechanical Engineering

**A crate with a mass of 45 kg is suspended from a massless rope that runs...

  1. **A crate with a mass of 45 kg is suspended from a massless rope that runs vertically upward over a light pulley. The other end of the rope is connected to a 35 kg crate, which lies on a tabletop. The coefficients of the kinetic friction and the static friction between the crate and the surface are 0.3 and 0.5 respectively. An applied force, F, pulls the 35 kg crate to the right.

  1. In the first case, the applied force is just sufficient to keep the crates from sliding. Draw clearly labeled free-body diagrams for each crates including all forces drawn to scale.
  2. How much force would need to be applied in this first case?
  3. In the second case, the 35 kg crate is sliding to the right with a constant velocity. Draw clearly labeled free-body diagrams for each crate including all forces drawn to scale.
  4. How much force would need to be applied in this second case?
  5. In the third case, the 35 kg crate moves to the right at a constant acceleration of 0.5 m/s2. Draw clearly labeled free-body diagrams for each crates including all forces drawn to scale. In this instance, draw the direction of acceleration next to each diagram.
  6. How much force would need to be applied in the third case.

In: Physics

Viewing the return rate of lost letters as a measure of social responsibility in neighborhoods, a...

Viewing the return rate of lost letters as a measure of social responsibility in neighborhoods, a social psychologist intentionally ‘loses’ self-addressed, stamped envelopes near mailboxes. Furthermore, to determine whether social responsibility, as inferred from the mailed return rates, varies with the type of neighborhood, lost letters are scattered throughout three different neighborhoods: downtown, suburbia, and a college campus.

Letters are ‘lost’ in each of the three types of neighborhoods according to procedures that control for possible contaminating factors, such as the density of pedestrian traffic and mailbox accessibility. (Ordinarily, the social psychologist would probably scatter equal numbers of letters among the three neighborhoods, but to maximize the generality of the current example, we will assume that a total of 200 letters were scattered as follows: 60 downtown, 70 in suburbia, and 70 on campus.) Each letter is cross classified on the basis of the type of neighborhood where it was lost and whether or not it was returned. For instance, of the 60 letters lost downtown, 39 were returned, while of the 70 letters lost in suburbia, 40 were not returned. When observations are cross classified according to two qualitative variables, as with the lost letter study, the test is a two-variable test. Answer the following.

A) Defined null and alternative hypothesis?

B) Obtain all expected frequencies from table of observed frequencies?

C) Find test statistic value?

D) Identify degrees of freedom?

E) Find the chi-squared value?

F) What is the conclusion?

In: Statistics and Probability

A block of mass M_2 = 6.0 kg is initially at rest on a level table

A block of mass M_2 = 6.0 kg is initially at rest on a level table. A string of negligible mass is connected to M_2, runs over a friction less pulley, of 2.0 kg mass and 0.1m radius and is attached to a hanging mass M_1 =5.0 kg 3m above the ground as shown in the figure A. The system was released and the velocity of M_1 was 2.7 m/s when it was 2.0 m above the ground as shown in figure B. Calculate: 

The initial total energy of the system (at A). 

The translational kinetic energy of the two masses at B. 

The rotational kinetic energy of the pulley at B. 

The system total energy at B.(add the potential energy of M_1) 

The work done by friction between M_2 and the table.

image.png

In: Physics

Question 5 includes two of the DISCUSSION QUESTIONS from chapters 10-13 in the Baumol and Blinder...

Question 5 includes two of the DISCUSSION QUESTIONS from chapters 10-13 in the Baumol and Blinder text book.

            a. What is fractional reserve banking, and why is it the key to bank profits? Why   

                 does fractional reserve banking give bankers discretion over how large the

                 money supply will be? Why does it make banks potentially vulnerable to runs?

b. From 2003 to 2011, the federal government’s budget deficit rose sharply

                because of tax cuts and increased spending. If the Federal Reserve wanted to

                maintain the same level of aggregate demand in the face of large increases in

                the budget deficit, what should it have done? What would you expect to happen

                to interest rates?

In: Economics

Write a program that performs the following two tasks: Reads an arithmetic expression in an infix...

Write a program that performs the following two tasks:

  1. Reads an arithmetic expression in an infix form, stores it in a queue (infix queue) and converts it to a postfix form (saved in a postfix queue).
  2. Evaluates the postfix expression.

Use the algorithms described in class/ lecture notes. Use linked lists to implement the Queue and Stack ADTs. Using Java built-in classes will result in 0 points. You must use your own Stack and Queue classes (my code is a good starting point). Submit the code + example runs to validate your code. Submit UML chart to show the program design.

TO ANSWERER: Please give a clear, complete, and detailed program in Java. Thank you!

In: Computer Science