Questions
​In terms of static economic analysis, if a customs union results in a large amount of...

​In terms of static economic analysis, if a customs union results in a large amount of trade diversion relative to trade creation, world welfare declines. true or false

The highest stage of economic integration is a monetary union. true or false

In: Economics

correctly list the molecules in order of increasing boiling point (from lowest to highest)? a.)CH3CH2CH2-OH b.)CH3CH2CH2CH3...

correctly list the molecules in order of increasing boiling point (from lowest to highest)?

a.)CH3CH2CH2-OH

b.)CH3CH2CH2CH3

c.)CH3CH2-OH

I know the the answer wold be b,c,a but I don't understand why

In: Chemistry

Predict the fatty acid with the highest melting point. Select one: a. trans 14:1 (7) b....

Predict the fatty acid with the highest melting point.

Select one:

a. trans 14:1 (7)

b. cis 14:2 (7,9)

c. trans 14:2 (7,9)

d. cis 14:3 (7,9,11)

In: Biology

Assuming an inflationary environment where costs are always increasing, which cost flow assumption gives you the...

Assuming an inflationary environment where costs are always increasing, which cost flow assumption gives you the highest Net Income? (answer choices)

A. FIFO

B. Weighted Average

C. Specific Identification

D. LIFO

In: Accounting

2. The participant was measuring his VO2max on a typical running machine. His weight is 64.7kg....

2. The participant was measuring his VO2max on a typical running machine. His weight is 64.7kg. Peak measures are: VO2max(67ml/kg/min). And the highest VO2 is 4.3L/min. Calculate the subject’s absolute and relative O2max scores

In: Anatomy and Physiology

it lists the sources of long-term financing used by companies to finance investment capital, in order...

it lists the sources of long-term financing used by companies to finance investment capital, in order of lowest to highest cost, and explains what is the factor that causes one source of capital to be more or less expensive than other sources.

In: Finance

A 3 kg pendulum bob on a 2 m long string is released with a velocity...

A 3 kg pendulum bob on a 2 m long string is released with a velocity of 2 m/s when the support string makes an angle of 44 degrees with the vertical.  Calculate the tension in the string at the highest position of the bob.

In: Physics

Please write code in java and comment. Thanks. I would appreciate that. Fitness Task: public interface...

Please write code in java and comment. Thanks. I would appreciate that.

Fitness Task:
public interface Fitness

  • public Muscle [ ] muscleTargeted() A method that returns the muscle that is going to be affected by the fitness. Note that the return type of the method is Muscle. A human body has a finite number of muscle parts that can be affected by fitness exercises. Define an enum datatype called Muscle with the follwoing member values Abs,Back,Biceps,Chest,Arms,Glutes,Shoulders,Triceps,Legs,Cardio
  • public String description() a method that returns a short decription of the fitness type.

Anaerobic Task:

(10pts) Anaerobic is a Fitness and we cannot give the actual implementation for the methods muscleTargeted() as we don't know the actual Anaerobic exercise. The descripton() method returns the string Anaerobic means "without oxygen.". Note that Anaerobic is a good candidate to be abstract class.

Define class yoga which are Anaerobic fitness exercises. Use the following table to define the classes. The classes also have:

  • @Override public String description() returns the name of the respective classes.
Exercise Type Muscle affected
Yoga Triceps,Biceps


public class Profile

Assume the weight is in kgs, height in meters and gender is enum data type called Gender. In addition, this class must contain:

  • public Profile(int age, double height, double weight, Gender gender) A constructor which accepts the age,weight, height, and gender.
  • provide getters and setters for height , weight and gender.


public class DailyExercise

  • public DailyExercise(ArrayList exerciseList, int duration, double calorieTarget, Profile profile) A constructor which accepts the list of exercises, number of minutes to workout and the amount of calories to be burnt.
  • public DailyExercise(ArrayList exerciseList, Profile profile) A constructor which sets duration to 1 hour and calorieTarget to 500.
  • public void addExercise(Fitness ex) add a new Fitness in the exerciseList.
  • public void removeExercise(Fitness ex) removes an Exercise from the exerciseList.If the exercise does not exist, it will leave the exerciseList unchanged.
  • public void setExerciseList(ArrayList list) A setter method which sets the exerciseList of the DailyExercise.
  • public void setDuration(int duration) A setter method which sets the duration of the DailyExercise.
  • public void setCalorieTarget(double target) A setter method which sets the amount of calorie to be burnt of the DailyExercise.
  • public void setProfile(Profile profile) A setter method which sets the profile of the user.
  • public ArrayList getExerciseList( ) A getter method which returns the exerciseList of the DailyExercise.
  • public int getDuration() A getter method which returns the duration of the DailyExercise.
  • public double getCalorieTarget() A getter method which returns the amount of calorie to be burnt of the DailyExercise.
  • public Profile getProfile() A getter method which returns the profile of the user.
  • public Fitness[] getExercises(Muscle[] targetMuscle) - returns an array of Fitness exercises from the exerciseList that fullfills all the target muscle groups (targetMuscle) the user wants to work on for that specific day. The method will return null if there is no exercise that targets all the muscle groups.

public class WeeklyExercise

  • public WeeklyExercise(ArrayList exerciseList, int days, double weeklyCalorieTarget, Profile profile) A constructor which accepts the list of daily exercises, number of days to workout per week and the amount of calories to be burnt.
  • public WeeklyExercise(ArrayList exerciseList, Profile profile) A constructor which sets number of days to 7 and weeklyCaloryTarget to 3500.
  • public void addExercise(Fitness ex) add a Fitness in the exerciseList.
  • public void removeExercise(Fitness ex) removes a Fitness from the exerciseList.If the fitness does not exist, it will leave the exerciseList unchanged.
  • public void setExerciseList(ArrayList list) . A setter method which sets the exerciseList of the WeeklyExercise.
  • public void setDays(int days) A setter method which sets the number of days the user plans to workout for the week.
  • public void setWeeklyCalorieTarget(double target) A setter method which sets the amount of calorie to be burnt per week.
  • public void setProfile(Profile profile) A setter method which sets the user's profile.
  • public ArrayList getExerciseList( ) A getter method which returns the exerciseList of the WeeklyExercise.
  • public int getDays() A getter method which returns the number of days the user plans to workout per week.
  • public Profile getProfile() A getter method which returns the user's profile.
  • public double getWeeklyCalorieTarget() A getter method which returns the amount of calorie to be burnt for the week.
  • public ArrayListgetWeeklyExercises(Intensity intensity) a method that returns a list of DailyExercises that the user should do in order to meet the targeted calorie loss. The method evenly distributes the calorie loss over the number of days the user plans to workout. This method accepts the intensity of the exercises.
  • public ArrayListgetWeeklyExercises() a method that returns a list of DailyExercises that the user should do in order to meet the targeted calorie loss. Note that the DailyExercise suggessions include the duration (minutes) the user should work out towards the targeted calorie loss.
  • public String targetedCalorieLoss(double targetWeight, int withInDays) this method returns the string that contains a suggestion on how to loss the targeted weight within the specified number of days. . If the target weight is greater than the actual weight of the user, the method throws a TargetWeighException. You need to define a TargetWeightException that extends Java's Exception class and displays the string "Only works to lose weight".

In: Computer Science

A woman who was shopping in Los Angeles had her purse stolen by a young, blonde...

A woman who was shopping in Los Angeles had her purse stolen by a young, blonde female who was wearing a ponytail. The blonde female got into a yellow car that was driven by a man with a mustache and a beard. The police located a blonde female named Janet who wore her hair in a ponytail and had a male friend who had a mustache and beard and also drove a yellow car. Based on this evidence the police arrested the two suspects. Because there were no eyewitnesses and no real evidence, the prosecution used probability to make its case against the defendants. The probabilities listed below were presented by the prosecution for the known characteristics of the thieves. Characteristic Probability Yellow car 1/10 Man with mustache 1/4 Woman with ponytail 1/10 Woman with blonde hair 1/3 Man with beard 1/10 Interracial couple in a car 1/1000

(a) Assuming that the characteristics listed above are independent of each other, what is the probability that a randomly selected couple has all these characteristics? That is what is, calculate the probability: P( “yellow car” and “man w/ mustache, beard and … “interracial couple in car”)?

(b) Based on the above result would you convict the defendant? Explain thoroughly.

(c) Now let n represent the number of couples in the Los Angeles area who could have committed the crime. Let p represent the probability that a randomly selected couple has all 6 characteristics listed in the table. Assuming that the random variable X follows the binomial probability function, we have: ?(?) = ?(?,?) ∙ ? ? ∙ (1 − ?) ?−? , ? = 0, 1, 2, … ? Note: Use the calculator link http://stattrek.com/online-calculator/binomial.aspx Assuming there are n = 50,000 couples in the Los Angeles area, what is the probability that more than one of them has the characteristics listed in the table? ?(? > 1) =

(d) Does this result cause you to change your mind regarding the defendant’s guilt? Explain.

(e) The probability that more than one couple has these characteristics assuming there is at least one couple is given by the formula below and each is evaluated with the binomial formula from (c). ?( ? > 1 ∣ ? ≥ 1 ) = ?(? > 1) ?(? ≥1) = (f) Do you think the couple should be convicted “beyond all reasonable doubt” based on the answer from part (e)? Explain why or why not.

In: Statistics and Probability

One of the large photocopiers used by a printing company has a number of special functions...

One of the large photocopiers used by a printing company has a number of special functions unique to that particular model. This photocopier generally performs well but, because of the complexity of its design and the frequency of usage, it occasionally breaks down. The department has kept records of the number of breakdowns per month over the last fifty months. The data is summarized in the table below:
  

Number of Breakdowns

Probability

0

0.12

1

0.32

2

0.24

3

0.20

4

0.08

5

0.04

  
The cost of a repair depends mainly on the time taken, the level of expertise required and the cost of any spare parts. There are four levels of repair. The cost per repair for each level and probabilities for different levels of repair are shown in table below:

  

Repair Category

Repair Cost

Probability

1

$35

0.50

2

$75

0.30

3

$150

0.16

4

$350

0.04


Based on the probabilities given in the two tables and using the random number streams given below, simulate for each of 12 consecutive months the number of breakdowns and the repair cost of each breakdown. Note that for each month you must compute both the number of breakdowns, the repair cost for each breakdown (if any) and the total monthly repair cost as well as the total annual repair cost to answer the following questions.

  
Use the following random numbers in order (from left to right) for the simulation of number of breakdowns per month:

  

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

0.13

0.21

0.08

0.09

0.89

0.26

0.65

0.28

0.97

0.24

0.10

0.90


  
Use the following random numbers in order (from left to right, first row first - as you need them) for the simulation of repair cost for each breakdown.

  

0.19

0.39

0.07

0.42

0.65

0.61

0.85

0.40

0.75

0.73

0.16

0.64

0.38

0.05

0.91

0.97

0.24

0.01

0.27

0.69

0.18

0.06

0.53

0.97


On which month, the largest number of repairs occurred?
  

A.

September

B.

July

C.

May

D.

December

E.

October

What was the total monthly repair cost in May?

A.

$75

B.

$300

C.

$140

D.

$220

E.

$35

What is the annual total cost of repairs in this 12-month simulation?   
a) $1845 b) $1485 c) $1570 d) $2250 e) $1480

A.

$1845

B.

$1480

C.

$1485

D.

$2250

E.

$1570

In: Statistics and Probability