Questions
1. For school counselors: A teenage boy has had a sudden drop in grades, totally out...

1. For school counselors: A teenage boy has had a sudden drop in grades, totally out of character. When you see him for your first session what would be some of the questions you would ask him in your initial assessment? What might you look for?

2. An elderly man comes in for therapy 4 months after his wife died. He says he is there because his family is making him. How would you differentiate between normal grieving and major depression. What questions would you ask and what do you look for?

3. What is there to learn for the legacy of loss and traumatic experience (such as Jews in holocaust, being a veteran) and how it plays a role in a persons life? What cues do we look for in a persons history to see if they did experience it?

4. How is family intervention and family therapy beneficial and how did family therapy evolve from the intrapsychic psychoanalytic and psychodynamic models?

In: Psychology

Below is a school problem of mine. WHAT I KNOW AND HAVE DONE. i have three...

Below is a school problem of mine.
WHAT I KNOW AND HAVE DONE.
i have three variables for input
n for nunber of wnemies
k for fight capacity

an arraylist set to the size of n because it only needs to be as large as the number of enemies coming.

and x which is just the time stamps that will go into the arraylist.

i also have tHe array sorted from least to greatest because it doesnt matter what order they enter the times at but the time of the oppenets matters.

HELP NEEDED HERE.
I need help on how to handle the conditions of the program.
i know that it takes 1000secs to defeat an enemy. if an enemy appears and it is before 1000secs and less than an avengers capacity i need to add an avenger.
im having trouble on how to implent this into my program.


After many sacrifices and multiple time-heists, our beloved Avengers, finally managed to reverse

Thanos’ snap and bring everyone back to Earth. Now, only the final battle remains. Thanos’

army is huge and unpredictable, and the Avengers need to know when they will be attacking.

Luckily through Dr. Strange’s time travelling skills, he has seen the future and knows the arrival

time for each enemy. It is your job to find out how many avengers are needed to fight off

Thanos’ army.

Please make sure you are using an ArrayList<Integer> in this assignment. This is a requirement.
he timestamps are in chronological order. i.e. they will be entered by the user in increasing order.
To simplify this problem, we will make the following assumptions.

1) Every avenger can fight off equal number of enemies at once.

2) Each enemy takes 1000 seconds to defeat.

3) Multiple enemies may arrive at the same time.

Inputs

Your program will take the following inputs.

N: The total number of enemies to defeat.

K : the number of enemies each avenger can handle at once.

A list of N numbers, representing timestamps (in seconds).

Output

Your program should output the MINIMUM number of avengers needed to fight off Thanos’

army.

Sample Cases

Test Run 1

Input

Enter number of enemies (N) : 2

Enter fighting capacity of each avenger(K) : 1

Enter time of arrival for each enemy

300

1500

Output

1 avenger(s) are needed to fight off the army

Explanation: Avenger 1 starts fighting at t=300, defeats the first enemy at t=1300, can thus fight

the next enemy at t=1500. No additional avengers needed.

Test Run 2

Input

Enter number of enemies (N) : 3

Enter fighting capacity of each avenger(K) : 2

Enter time of arrival for each enemy

500

510

1499

Output

2 avenger(s) are needed to fight off the army

Explanation: Avenger 1 starts fighting at t=500, at t=510, 2nd enemy arrives, A1 can handle 2

enemies at once (see value of K), so still just 1 avenger needed. Next enemy arrives at t=499,

which is less than (500+1000), which means A1 is still fighting off 2 enemies at t=1499. Hence a

2nd avenger is needed, to deal with the last enemy. So minimum number = 2

Test Run 3

Input

Enter number of enemies (N) : 14

Enter fighting capacity of each avenger(K) : 3

Enter time of arrival for each enemy

100

200

345

980

1123

1242

1466

1777

1900

2000

2000

2001

2500

3000

Output

3 avenger(s) are needed to fight off the army

Explanation for Test Run 3 (A1 , A2 , A3 represents each avenger)

earliest

100

A1

earliest

100 200

A1 A1

earliest

100 200 345

A1 A1 A1

earliest

100 200 345 980

A1 A1 A1 A2

earliest

1123 200 345 980

A1 A1 A1 A2

earliest

1123 1242 345 980

A1 A1 A1 A2

earliest

1123 1242 1466 980

A1 A1 A1 A2

earliest

1123 1242 1466 1777

A1 A1 A1 A2

earliest

1123 1242 1466 1777 1900

A1 A1 A1 A2 A2

earliest

1123 1242 1466 1777 1900 2000

A1 A1 A1 A2 A2 A2

earliest

1123 1242 1466 1777 1900 2000 2000

A1 A1 A1 A2 A2 A2 A3

earliest

1123 1242 1466 1777 1900 2000 2000 2001

A1 A1 A1 A2 A2 A2 A3 A3

earliest

2500 1242 1466 1777 1900 2000 2000 2001

A1 A1 A1 A2 A2 A2 A3 A3

earliest

2500 3000 1466 1777 1900 2000 2000 2001

A1 A1 A1 A2 A2 A2 A3 A3

Approach

1) Each timestamp represents the time at which an enemy arrives.

2) You can represent the above data structure using an arraylist.

ArrayList<Integer> arr = new ArrayList<Integer>();

3) Every time you encounter a timestamp, you first check to see if 1000 secs has passed

since the earliest timestamp in your list. If yes, then the corresponding avenger has fought

off the earliest enemy in your list and has a ”slot open” to now fight the current enemy.

4) If 1000 secs have NOT passed since the earliest, then do one of the following

a. If the latest avenger is capable of simultaneously fighting more enemies than he is

currently fighting, then assign the current enemy to one of the “empty slots”

b. If all avengers are at full capacity, then introduce a new avenger, increment

minimum number of avengers needed by 1

In: Computer Science

Activities, predecessors and duration for a School Building Project Activity Description Immediate predecessor Duration (days) A...

Activities, predecessors and duration for a School Building Project

Activity

Description

Immediate predecessor

Duration (days)

A

Clear Site and mobilize labour and equipment

None

5

B

Excavate foundation

A

15

C

Procure materials (sand, cement, chippings etc.)

A

10

D

Pour foundation concrete

B, C

5

E

Mould sandcrete blocks (substructure)

C

5

F

Construct substructure block work

D, E

15

G

Construct superstructure block work

F, H

30

H

Make doors and window frames

I

10

I

Procure and preserve roof timber

C

10

J

Roofing, plastering and painting

G, I

25

K

Fabricate roof trusses

I

15

L

Mould sandcrete blocks (superstructure)

C

10

  1. Draw the network diagram.
  2. What is the critical path of the above project?
  3. Calculate the total and free floats for the activities.

In: Civil Engineering

2 Program 1 - Special Values Patrick Star wasted a lot of time in Boating School...

2 Program 1 - Special Values

Patrick Star wasted a lot of time in Boating School instead of signing up for his Spanish Class. Unfortunately for him, Spanish 101 is now full, and the only other class that will suit his schedule is Advanced Math. Patrick is determined not to let this defeat him. He will make his way up the stairs of learning one way or another. However, it’s been a while since Average Everyday Math, and he is somewhat behind. Patrick is going to put his programming class (he took that last term) to good use and write programs to do his homework. For the rest of this homework, you are Patrick Star, trying to outwit the math teacher.

For this program, we define a new term called Special Value. The Special Value of a number is the product of a random number between 15 and 25 (inclusive) and the difference between the number and its reverse.

1

For example, the Special Value of 1234 could be 55566 ( 18 * ( | 4321 - 1234 | ) ).
In this program, you are required to find the sum of the special values of a set of numbers. Make

sure you conform to the following requirements.

  1. Write a function called reverse that takes a number as a parameter and returns the reversed number. (20 points)

  2. Write a function called value that accepts a number as a parameter, calculates the special value of that number, and returns it. This function should call the reverse function. (12 points)

  3. In the main function, accept a seed for the Random Number Generator from the user, and use it to set up the RNG. (3 points)

  4. Then, accept a series of numbers from the user. Stop if the number entered is 0. Use the value function to find the special value of each of the numbers as they are entered, and calculate their sum. Finally, print the sum. (10 points)

  5. Make sure you add comments to explain your logic. (5 points)

2.1 Sample Run

Please note that the final answer depends on the random number generated at each function call, and you might get a different answer.

Enter the seed for the random number generator: 75361
Enter the numbers (0 to stop):
123
603
957
63
4567
62576
19
0
The sum of the special values is 99468

In: Computer Science

what are racial boundaries and why they form among school-age children and adolescents. In what ways...

  1. what are racial boundaries and why they form among school-age children and adolescents. In what ways can racial boundaries be challenged

  2. what impacts do parents have on children's prejudicial attitudes or lack thereof. examples of what research indicate about the transmission of prejudice from parents to children.

  3. how young children's perceptions of differences typically develop, and ways that parents, teachers, or other caregivers can help promote multicultural sensitivity in children.

Submit this assignment by Sunday of this week.

In: Psychology

I played high school football and I knew I was in real good shape and had...

I played high school football and I knew I was in real good shape and had a lot of muscle. After high school, my football days were over. My freshman year in college took some adjustment, even more so being away from home and all my buddies. I wasn’t exercising and gained 12 pounds that year. At 192 pounds, I still thought I was in pretty good shape. My sophomore year I stopped at the school’s annual health and fitness fair during the fall semester. There I had my body fat checked. It turned out to be 26.5 percent. I always thought I was pretty fit, and I wasn’t happy to be rated “overweight.” That one body fat test motivated me to enroll in the fitness and wellness course. In class, I learned how to set up a good aerobic and strength-training exercise program and eat better, and I learned about the value of increasing daily physical activity. At the end of the semester I had lost only 8 pounds, but I was pleasantly surprised to find that I had also gained 7 pounds of lean body mass (in essence, I lost 15 pounds of body fat) and my body fat decreased to 19.6 percent.

Critical Thinking Questions

1. List three factors that probably contributed to David’s weight gain.

2. Why might it be the case that some people who never had to worry about their weight in high school end up struggling with their weight in college (or later adulthood)?

3. Receiving the results of a fitness test or a body composition assessment that show that you are not where you would like to be can be a motivator for change. What other motivators have you experienced that made you decide to get healthier or achieve better fitness?

4. In addition to planned exercise, such as jogging or working out at a gym, what are some ways that you can incorporate more physical activity into your daily life?

In: Biology

Consider the following newsvendor environment with sales season in August (school year start). We are now...

Consider the following newsvendor environment with sales season in August (school year start). We are now in late-April and the best forecast for demand in August is that it is normally distributed with a mean of 4000 units and a standard deviation of 1000. We can buy now from a Chinese supplier at 6 $ per unit. Lead time for this order is 3 months, so an order placed now will be delivered before August. The item sells for 12 $ per unit. Inventory left over at end of August has to be discounted with a salvage value 2 $ per unit.

1.How many units do you buy now from China (only one order is placed)? If the Chinese supplier’s variable cost per unit is 50 cents, calculate the Chinese supplier’s profit for your order quantity. Do you expect to make more or less profit than the Chinese supplier? Explain.

2. Suppose in late June we will get to know the demand for August perfectly (our major customers place early orders); this is the demand forecast update. In late June, we can buy from a quicker but more expensive local supplier. The unit cost is 8 $ per unit and the lead time for orders is one month (so delivery is by late July, before the August selling season). In this case, how many units do you buy now from the Chinese supplier (knowing you can buy again later from the local supplier)? Explain your logic.

In: Operations Management

(a) Your daughter has expressed a wish to attend university when she finishes school in five...

(a) Your daughter has expressed a wish to attend university when she finishes school in five (5) years. You anticipate the cost will be $60,000 at the time she commences university. If your financial institution is offering you 4% pa (compounded monthly), how much do you need to deposit in your account each month in order to save the required amount before your daughter commences university?

(b) You have been offered the opportunity to purchase a start up company building electric cars for the Australian market called Green Motors P/L. Your initial investment is $22,000,000.
The term of the project is 5 years. The project has an expected rate of return of 10% pa. All expected cash flows for the project are below and you have an expected rate of return of 10%
pa.

pa.
End of year    Cash flow ($mil)
1 1.8
2 3.0
3 6.5
4 8.4

5 12.3

(i) Based on your required rate of return would you purchase this investment? Present all calculations to support your answer. (2.5 marks)
(ii) Would you change your opinion from (i) if the expected rate of return rose to 15%? Present all calculations to support your answer. (2.5 marks)

In: Finance

Discussion Topic Josh has been slightly overweight since grade school, but, as he progressed into the...

Discussion Topic

Josh has been slightly overweight since grade school, but, as he progressed into the junior high years, his weight grew worse; by the time he graduated high school, he was considered obese. At 20 years of age, Josh has been diagnosed as prediabetic with metabolic syndrome. He has come to the dietitian’s clinic for a consultation.

“I get really discouraged,” Josh says. “It’s not like I never have will power, and at times I have starved myself for days and spent long afternoons on the treadmill while watching TV. But then I get so hungry that once I start eating I can’t stop. At other times, I work hard at dieting and exercise for so long, but I’m so big that I can’t see any difference. Of course, the stares when I go out in public are depressing, and then I just give up and think, ‘What’s the use? I can’t ever escape my own body,’ and then I give up and turn to comfort food. It’s very discouraging. I feel like I’m living inside my own personal prison.”

On further intake, the nutrition nurse learns that Josh has very tense relationships with his four older brothers, who have sometimes bullied him. “Even when we get along, they make jokes about my size,” he says.

Josh reveals that when he was small, he was not overweight, but he was also not very athletic like his older brothers. He felt separated from them by the fact that he had no interest in or talent for the athletics his brothers constantly engaged in at home.

“Plus I was just a lot younger, and when they’d tease me, I’d cry and my mom would comfort me with treats. As I got heavier when I was older, they’d criticize me for everything I put in my mouth, and if I didn’t eat, they’d sometimes try to be supportive, sometimes indifferent, and at other times, my second oldest brother would say, ‘I know as soon as we’re not looking you’re gonna binge, aren’t you.” It wasn’t my intent, but then when he’d say that, I’d be so angry, I’d do it. The more I did it, the more they harassed me, and it turned to anger on their part as I started to get fat. It just sort of skyrocketed from there. I hate this. I feel so trapped by my own compulsions.”

The text says, “Health is the merging and balancing of physical, intellectual, emotional, social, spiritual dimensions, and environmental dimensions.”

a. Food, of course, is in the physical health dimension, but how might other dimensions be affecting Josh’s food choices?

b.  One of the reasons Josh has often “failed” in the past is that he “starves” himself for long periods and then binges out of intense hunger pangs. The nurse starts to discuss healthy snacking strategies, but he says, “Stop right there. Snacks have been my whole problem. Running to treats out of depression. No, snacks are what make people fat. They make me fat. I want a diet that limits me to three meals a day, or maybe even just two.” How might the nurse counsel Josh?

In: Biology

Unemployment among high school graduates is quite high due to a recession. City Community College is...

Unemployment among high school graduates is quite high due to a recession. City Community College is considering a new program to help young people get the training they need to be more employable. The college has collaborated with the municipal hospital to build a nurse's aide program, a 1 - year program that would lead to immediate employment. Initial financial analysis indicates that the total fixed cot of the program will be $200,000, which includes the cost of a 1-year rental of the facilities plus utilities, insurance, and administrative costs The variable cost and step cost together are $10,000 per student, which pays for facility salary, student lunches, and teaching materials and textbooks. The state kicks in $5000 per student, and the tuition based on market analysis is $6000. Given that the nurse's aide program has never been offered in the region before and will be under financial pressure due to current funding cuts, the college's board of trustees would like to know how many students will need to be enrolled for the program to break even. The board also wants to know what other options it will have to mitigate these financial issues if the expected enrollment is below the breakeven point, given the high profile of the program at a time when employment and economic recovery are critical.

Consider two possibilities: (1) Funding is limited to $100,000, or (2) with the benefit of efficiencies, variable, and step costs can be reduced to $9,500. You are required to do a financial analysis of the proposed program. Please provide a spreadsheet solution and a written explanation of your approach.

In: Finance