Questions
During our morning commute we encounter two traffic lights which are distant from one another and...

During our morning commute we encounter two traffic lights which are distant from one another and may be assumed to operate independently. There is a 50% chance that we will have to stop at the first of the lights, and there is a 30% chance that we’ll be stopped by the second light. Find the probability that we are stopped by at least one of the lights

In: Statistics and Probability

1. A ball hanging from the ceiling by a string swings in a circle. If the...

1. A ball hanging from the ceiling by a string swings in a circle. If the radius of the circle it traces is 2 meters and its distance from the ceiling is 5 meters, what is the velocity of the ball?

2. Assuming an iced over road (no friction), if a car is going 25 m/s around a curve in the road of radius 75 meters, what is the perfect angle to bank the road so that the car stays on the road?

3. A block starts at rest and slides down a 3 meter long incline plane at 30 degrees in 3 seconds. Calculate the coefficient of kinetic friction between the block and the incline plane. Hint: use kinematics to find the acceleration, then use a force diagram to solve for the coefficient of kinetic friction.

4. A block of mass 10kg slides on an incline plane of 30 degrees while attached to a second mass of 2kg by a rope. The rope runs through a pulley and the second mass is hanging from the top of the ramp (as the problem we worked in class). Define the positive direction such that the first mass slides down the ramp. The coefficient of kinetic friction between the first mass and the incline plane is 0.1. Calculate the acceleration of the two mass system.  

5. A block slides down an incline plane of 20 degrees. The coefficient of kinetic friction between the block and incline is 0.25. Calculate the resulting acceleration.

In: Physics

Work & Rest is an all inclusive hotel operating as a monopoly in a mid-sized community....

Work & Rest is an all inclusive hotel operating as a monopoly in a mid-sized community. The manager estimates that the hotel's total costs are described by the equation C = 0.05Q2 + 10Q + 15000, where Q is the number or persons serviced and P is the price paid per person. Although it is located in a mid-sized community, it is close to a major highway that runs along the east coast. Often times, travelers would use the services of Work & Rest as a stop in their commute between two major citys. As such, the market demand for its service is described by the equation P = 160 - 0.2Q.

1. Given the current market conditions, Work & Rest's profit-maximizing quantity is ___________ and the price charged per person is__________  ( 4 points)

Consider that after a series of reports from special interest groups, the local government decides to regulate Work & Rest by using the optimal pricing policy.

2. Given the successful implementation of the government's policy, Work & Rest's profit-maximizing quantity is__________  (2 points)

3. Given the successful implementation of the government's policy, what is Work & Rest's profit at its profit maximizing quantity_____________?  (4 points)I

4. If the policy remains in place, and there are no further external shocks to the market, is it likely that West & Rest will continue to operate and provide service? (In the space provided enter will or will not)

In the long run, West & Rest _______________ continue to provide service in this mid-sized community. (2 points)

In: Economics

Work & Rest is an all inclusive hotel operating as a monopoly in a mid-sized community....

Work & Rest is an all inclusive hotel operating as a monopoly in a mid-sized community. The manager estimates that the hotel's total costs are described by the equation C = 0.1Q2 + 20Q + 5000, where Q is the number or persons serviced and P is the price paid per person. Although it is located in a mid-sized community, it is close to a major highway that runs along the east coast. Often times, travelers would use the services of Work & Rest as a stop in their commute between two major citys. As such, the market demand for its service is described by the equation P = 170 - 0.2Q.

1. Given the current market conditions, Work & Rest's profit-maximizing quantity is  and the price charged per person is  ( 4 points)

Consider that after a series of reports from special interest groups, the local government decides to regulate Work & Rest by using the optimal pricing policy.

2. Given the successful implementation of the government's policy, Work & Rest's profit-maximizing quantity is  (2 points)

3. Given the successful implementation of the government's policy, what is Work & Rest's profit at its profit maximizing quantity?  (4 points)I

4. If the policy remains in place, and there are no further external shocks to the market, is it likely that West & Rest will continue to operate and provide service? (In the space provided enter will or will not)

In the long run, West & Rest  continue to provide service in this mid-sized community

In: Economics

Carbohydrates are the main sources of fuel for the body. They’re broken down into glucose, which...

Carbohydrates are the main sources of fuel for the body. They’re broken down into glucose, which
is “burned” as fuel for the body.
i. What is expected to occur when the body’s supply of glucose runs out?
ii. Would insulin or glucagon be of any importance in this regard? Explain your answer.
iii. As a nurse on duty, a patient is brought to the emergency ward with symptoms of weakness,
dizziness, headache and slight disorientation. The patient has a history of diabetes. Give a
step by step description of what you will do to take care of this patient. What would you
say was the problem with this patient? Is there any remedy to salvage the patient’s
situation?
iv. What are some of the physical presentations of long-term complications of diabetes?
(Mention and explain any two)
v. A postpartum woman has just been told that her new born is G6PD positive. What advice
would you give as her nurse on how to take care of this child?

2. (a) If a person is deficient in Vitamin B6, what is the consequence? How does this deficiency affect
amino acid metabolism?
(b) Briefly describe and explain what happens when there is a defect in phenylalanine metabolism.
(c) A patient presents with symptoms of blurred vision, tremors, and has difficulty speaking. Lab
tests reveal increased levels of ammonia and upon further questioning, you find out that he is an
alcoholic. What is wrong with this patient, and how will you as a nurse manage him?

In: Nursing

Larkspur Inc. offers boat tours around the City Reservoir. The company has signed a lease for...

Larkspur Inc. offers boat tours around the City Reservoir. The company has signed a lease for a tour boat with an expected lifespan of six years, no estimated salvage value, and cost the leasing company $207,000. The terms of the lease are as follows:

The lease term begins on January 1, 2019, and runs for 3 years.
The lease requires payments of $51,900 each January 1, starting on January 1, 2019, and each payment includes $5,100 for maintenance and insurance costs.
At the end of the initial lease term, the lease can be renewed for another two years at Larkspur’s option for only $29,000 per year, including $2,000 for maintenance and insurance costs. The normal rental cost of a similar used boat is $33,500 per year. Larkspur expects to renew the lease for the second term.
At the end of the lease term, the boat is to be returned to the lessor.
The lessor’s implied interest rate is 6%, and Larkspur uses straight-line depreciation for similar equipment. Larkspur’s year-end is May 31.

Assuming that Larkspur follows ASPE, identify how Larkspur should classify this lease.

Lease should be considered as____________

Assuming that Larkspur follows IFRS and the new leases standard IFRS 16, identify the circumstances under which the lease would result in a right-of use asset capitalized on Larkspur’s statement of financial position.

In: Accounting

Using the template given in ParallelMergeSort.c write the functions to divide the original array into equal...

Using the template given in ParallelMergeSort.c write the functions to divide the original array into equal fractions given the number of threads and perform Parallel MergeSort pThreads. Your algorithm should work for 2 threads.

ParallelMergeSort.c

#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>

#define SIZE 100

int array[SIZE];

void fillArrayWithRandomNumbers(int arr[SIZE]) {
for(int i = 0; i<SIZE; i++) array[i] = rand()%100;
}

void printArray(int arr[SIZE]) {
for(int i = 0; i<SIZE; i++) printf("%5d", arr[i]);
printf("\n");
}

typedef struct StartEndIndexes {
int start;
int end;
} StartEndIndexes;

// Runs mergesort on the array segment described in the argument. Spawns two threads to mergesort each half
// of the array segment, and then merges the results.
void* mergeSort(void* args) {

// Please fill this out!
return NULL;
}

int main() {
srand(time(0));
StartEndIndexes sei;
sei.start = 0;
sei.end = SIZE - 1;
  
// 1. Fill array with random numbers.
fillArrayWithRandomNumbers(array);
  
// 2. Print the array.
printf("Unsorted array: ");
printArray(array);
  
// 3. Create a 2 threads for merge sort.
  
// 4. Wait for mergesort to finish.
  

// 5. Print the sorted array.
printf("Sorted array: ");
printArray(array);
}

Pease fill out bolded sections!

In: Computer Science

Create a Guess the Number game. Python randomly chooses a secret four-digit number (with no repeating...

Create a Guess the Number game.

  • Python randomly chooses a secret four-digit number (with no repeating digits) and asks the user to guess it.
  • The user has up to ten attempts to guess the number. After each guess, Python gives the user two clues (until the user either guesses the number correctly or runs out of attempts):
    • The number of digit(s) in the user’s guess that is (are) both correct and in the right position.
    • The number of digit(s) in the user’s guess that is (are) correct but in the wrong position.
      • For example, say the secret number is 0123.
        • If the user’s guess is 4567, the clues will be:
          • Right digit and position: 0
          • Right digit but wrong position: 0
        • If the user’s guess is 1023, the clues will be:
          • Right digit and position: 2
          • Right digit but wrong position: 2
  • If the user guesses the correct number within his/her ten attempts, the game will finish.
  • If the user fails to guess the correct number within his/her ten attempts, the number will be shown and the game will finish.
  • When the game finishes (i.e., whether the user guesses the correct number or fails to do so in ten attempts), Python asks the user whether he/she wants to continue playing.
    • If the user enters “Y” he/she will play another round. If the user enters “N” the game will end
  • PLEASE USE LOW-LEVEL PYTHON LANGUAGE SUCH AS WHILE LOOP OR IF ELSE ARGUMENTS, TRY NOT TO MAKE IT TOO ADVANCED

In: Computer Science

Using the template given in ParallelMergeSort.c write the functions to divide the original array into equal...

Using the template given in ParallelMergeSort.c write the functions to divide the original array into equal fractions given the number of threads and perform Parallel MergeSort pThreads. Your algorithm should work for 2 threads.

ParallelMergeSort.c

#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>

#define SIZE 100

int array[SIZE];

void fillArrayWithRandomNumbers(int arr[SIZE]) {
for(int i = 0; i<SIZE; i++) array[i] = rand()%100;
}

void printArray(int arr[SIZE]) {
for(int i = 0; i<SIZE; i++) printf("%5d", arr[i]);
printf("\n");
}

typedef struct StartEndIndexes {
int start;
int end;
} StartEndIndexes;

// Runs mergesort on the array segment described in the
// argument. Spawns two threads to mergesort each half
// of the array segment, and then merges the results.
void* mergeSort(void* args) {
return NULL;
}

int main() {
srand(time(0));
StartEndIndexes sei;
sei.start = 0;
sei.end = SIZE - 1;
  
// 1. Fill array with random numbers.
fillArrayWithRandomNumbers(array);
  
// 2. Print the array.
printf("Unsorted array: ");
printArray(array);
  
// 3. Create a 2 threads for merge sort.
  
// 4. Wait for mergesort to finish.
  
// 5. Print the sorted array.
printf("Sorted array: ");
printArray(array);
}

Makefile

mergeSort: ParallelMergeSort.c
   gcc -std=c99 -pthread -o ParallelMergeSort ParallelMergeSort.c -I.

In: Computer Science

The Travel Luggage Company “LugPro” designs and manufactures several different styles of soft- and hardcover luggage,...

The Travel Luggage Company “LugPro” designs and manufactures several different styles of soft- and hardcover luggage, briefcases, hanging bags, and purses. Their best-selling item is a line of hardcover luggage called the Trotter. It is produced in a basic five-stage assembly process that can accommodate several different outer coverings and colors. The assembly process includes constructing a heavy-duty plastic and metal frame; attaching the outer covering; joining the top and bottom and attaching the hinge mechanism; attaching the latches, lock, and handle; and doing the finishing work, including the luggage lining. Several hundred new pieces of luggage of particular shape and color are initiated through the assembly process each week in the company’s two factories. Travel Luggage Company also runs its own logistics operations to serve their customers in their 200 outlets all around Middle East.

1- Answer shortly  the following questions: (6 Marks, 1.5 Marks each)

a) Name three main functions, which are found in every organization, in Travel Luggage Company.

b) What constitutes operations in Travel Luggage Company? Name at least three activities?

c) Describe the inputs and outputs of Travel Luggage Company’s manufacturing operations.

d) Name and explain at least three differences between Travel Luggage Company’s operations and a bank’s operations?

In: Operations Management