Questions
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

Create a project called “Favorite Restaurants” that displays 3 of your most favorite restaurants when a...

Create a project called “Favorite Restaurants” that displays 3 of your most favorite restaurants when a button is clicked. The application’s form should contain three labels containing three of your favorite restaurants and two buttons named as “Show” and “Exit”. When it first runs only the buttons should be visible, but the labels should not be. [Hint: setting the “visible” property of a control to “false” makes it invisible until you set the property value to “true”.] Once the “Show” button is pressed, the form should show three restaurants in three separate labels. When “Exit” button is clicked the application should close. The detailed property specifications are as follows
The button that displays favorite activities should be named Its text should be “Show”
The button that closes the application should be named Its text should be “Exit”. Type the following line of code as part of button “Exit” click event Handler.
Me.close()

The form should have three label controls for each of your favorite activities. The labels should be named as lblResOne, lblResTwo and lblResThree. The label’s font property should be set to Times New Roman, bold, 14 point. The label’s Text Align property should be set to Middle Center.
The form’s title bar should read “Favorite Restaurants”
Think about how to make the labels not visible at first and then make them appear when the “Show” button is pressed.

In: Computer Science

Consider this childhood game with two players, A and B. There are 11 lit candles. The...

Consider this childhood game with two players, A and B. There are 11 lit candles. The players take turns blowing out 1, 2, or 3 candles, with A going first. The player that blows out the last candle wins. It is possible to solve this game using backwards induction. The numbers below may help you to organize your thoughts.

1 2 3 4 5 6 7 8 9 10 11

a. In equilibrium, which player wins the game?

b. On this player’s first move, how many candles should they blow out?

c. Pick a number of candles greater than 11 for which the other player would definitely be able to win the game. If no such number of candles exists (i.e. the same player would win for any number of candles 11 or greater), say so.

In: Economics