Questions
Myrtle Air Express decided to offer direct service from Cleveland to Myrtle Beach. Management must decide...

Myrtle Air Express decided to offer direct service from Cleveland to Myrtle Beach. Management must decide between a full-price service using the company’s new fleet of jet aircraft and a discount service using smaller capacity commuter planes. It is clear that the best choice depends on the market reaction to the service Myrtle Air offers. Management developed estimates of the contribution to profit for each type of service based upon two possible levels of demand for service to Myrtle Beach: strong and weak. The following table shows the estimated quarterly profits (in thousands of dollars):

Demand for Service
Service Strong Weak
Full price $1440 -$530
Discount $1050 $480
  1. What is the decision to be made, what is the chance event, and what is the consequence for this problem?

    The input in the box below will not be graded, but may be reviewed and considered by your instructor.



    How many decision alternatives are there?

    Number of decision alternatives =

    How many outcomes are there for the chance event?

    Number of outcomes =
  2. If nothing is known about the probabilities of the chance outcomes, what is the recommended decision using the optimistic, conservative and minimax regret approaches?
    Optimistic approach Full price service
    Conservative approach Discount service
    Minimax regret approach Discount service
  3. Suppose that management of Myrtle Air Express believes that the probability of strong demand is 0.7 and the probability of weak demand is 0.3. Use the expected value approach to determine an optimal decision.

    Optimal Decision : Discount service
  4. Suppose that the probability of strong demand is 0.8 and the probability of weak demand is 0.2. What is the optimal decision using the expected value approach?

    Optimal Decision : Full price service
  5. Determine the range of demand probabilities for which each of the decision alternatives has the largest expected value. If required, round your answer to four decimal places.

    Discount service  is the best choice if probability of strong demand is less than or equal to . For values of  greater than , the full price service is the best  choice.

In: Operations Management

Discuss how the size of details of an object that can be detected with electromagnetic waves...

Discuss how the size of details of an object that can be detected with electromagnetic waves is related to the wavelength of the EM wave, by comparing details observable with two different types (for example, radar and visible light or infrared and X-rays).  Would an individual atom be observable by the human eye using a powerful optical microscope (one that uses visible light)? Why don

In: Physics

Which of the following statements about the effective nuclear charge (Zeff) is correct? a. Zeff increases...

Which of the following statements about the effective nuclear charge (Zeff) is correct?

a.

Zeff increases across a period and is relatively constant down a group.

b.

Zeff decreases across a period and increases down a group.

c.

Zeff increases with the size of the atom.

d.

Zeff increases as the value of the principal quantum number increases.

e.

Zeff is greater for hydrogen than for any other element.

In: Chemistry

The following data lists the ages of a random selection of actresses when they won an...

The following data lists the ages of a random selection of actresses when they won an award in the category of Best​ Actress, along with the ages of actors when they won in the category of Best Actor. The ages are matched according to the year that the awards were presented. Complete parts​ (a) and​ (b) below.

Actress (years) 31   25   29   31   35   25   25   42   30   32

Actor (years)    56   40   39   34   29   37   52   35   34   44

a. Use the sample data with a 0.01 significance level to test the claim that for the population of ages of Best Actresses and Best​ Actors, the differences have a mean less than 0​ (indicating that the Best Actresses are generally younger than Best​ Actors).

In this​ example, μd is the mean value of the differences d for the population of all pairs of​ data, where each individual difference d is defined as the​ actress's age minus the​ actor's age. What are the null and alternative hypotheses for the hypothesis​ test?

H0​: μd (1) _____ , _____ years

H1​: μd (2) _____ , _____ years

​(Type integers or decimals. Do not​ round.)

(1) >

<

=

(2) <

=

>

Identify the test statistic.

t= _____ ​(Round to two decimal places as​ needed.)

Identify the​ P-value.

​P-value=_____ ​(Round to three decimal places as​ needed.)

What is the conclusion based on the hypothesis​ test?

Since the​ P-value is (3) _____ the significance​ level, (4) _____ the null hypothesis. There (5)_____ sufficient evidence to support the claim that actresses are generally younger when they won the award than actors.

(3) less than or equal to

greater than

(4) reject

fail to reject

(5) is

is not

b. Construct the confidence interval that could be used for the hypothesis test described in part​ (a). What feature of the confidence interval leads to the same conclusion reached in part​ (a)?

The confidence interval is _____ ​year(s)<μd< _____ ​year(s).

​(Round to one decimal place as​ needed.)

What feature of the confidence interval leads to the same conclusion reached in part​ (a)?

Since the confidence interval contains (6) _____ (7) _____ the null hypothesis.

(6) zero,

only negative numbers,

only positive numbers,

(7) reject

fail to reject

In: Math

Matrix Multiplication with Threads - C/C++ **Please read entire question before answering** **Please don't copy /...

Matrix Multiplication with Threads - C/C++

**Please read entire question before answering**
**Please don't copy / paste code**

In this assignment you will use the Pthreads library to write a program that multiplies two square arrays and compare the difference between the imperative and parallel implementations of this algorithm.

Use the matrix mulltiplication algorithm.

Write a program that contains three functions:

(1) A function that has an integer as a parameter and returns a pointer to square array of integers (i.e. both dimensions should be equal). The function should allocate storage from the heap and randomly fill that dynamically allocated array.

(2) A function that uses the algorithm described above to compute the matrix square of an array. It should be passed a pointer to an array of integers and an integer defining the dimensions of the array. It should return a pointer to the array containing the product.

(3) A function that uses pthreads to compute the matrix square of an array. This function should have the same parameters and return values of the previous function

The main() function in your program needs to use these functions to compute the square of matrices with 100, 500, 1000, 5000, and 10000 integers
Assume that the values used for the size of these square arrays will always be even.

My suggestion is to think about dividing each array into smaller and smaller pieces until you reach some reasonably small size. At that point multiply the matrices using the iterative algorithm.

In: Computer Science

The following trial balance was extracted from the books of Big Bamboo Limited on December 31,...

The following trial balance was extracted from the books of Big Bamboo Limited on December 31, 2020               

                                           Big Bamboo Ltd

Trial Balance as at January 1, 2020

Motor vehicle at cost

10,600

Provision for depreciation on Motor Vehicle

2,120

Building at cost

90,000

Provision for depreciation on Buildings

1,800

Stock at January 1, 2020

53,000

Carriage inwards

500

Debtors

50,130

Returns Inwards

6,000

Returns Outwards

5,560

Bad debt provision

1,100

Cash

3,200

Creditors

30,350

Bank overdraft

15,500

Sales

600,000

Purchases

440,000

Wages

93,200

Insurance

54,100

Discount received

8,300

Drawings

14,000

Capital

150,000

814,730

814,730

Additional Information:

1.      Stock at December 31, 2020 $80,000

2.      Payment of $10,100 for insurance relates to the first quarter of 2021.

3.      Wages owing $4,800

4.      Provision for bad debt is to be increased to $1,500

5.      Depreciation on fixed assets:

-          Motor vehicles 10% on cost

-          Buildings 15 % on the reducing balance method

Required:

Prepare for Big Bamboo Limited:

(a)    An income statement for the year ended December 31, 2020                      

(b)   A statement of financial position as at December 31, 2020                          

In: Accounting

Construct the Dual and solve the Dual by the graphical method. Minimize Z = 1x1 +...

Construct the Dual and solve the Dual by the graphical method.

Minimize Z = 1x1 + 2x2 + 3x3

Subject to:

0x1 + 6x2 + 2x3 >= J

3x1 + 2x3 + 5x3 >= K

x1, x2, and x3 >= 0

constant resources:

J = 25

K = 24

Please do on paper...

In: Operations Management

The best laboratory vacuum has a pressure of about 1.00 x 10-18 atm, or 1.01 x...

The best laboratory vacuum has a pressure of about 1.00 x 10-18 atm, or 1.01 x 10-13 Pa. How many gas molecules are in 8.57 cm3 in such a vacuum at 298 K?

In: Physics

2. A pharmacy is using X bar and R charts to record the time it takes...

2. A pharmacy is using X bar and R charts to record the time it takes to fill a prescription after the customer has turned in or called in the prescription. Each day, the pharmacy records the times it takes to fill six prescriptions. During a 30-day period, the hospital obtained the following values: X double bar = 20 minutes; R bar = 4 minutes. The upper and lower specifications are 23 minutes and 13 minutes respectively. What is the value of Cp, to two decimal places?

In: Math

Create a program that asks the user for two positive integers. If the user's input for...

Create a program that asks the user for two positive integers. If the user's input for either integer is not positive (less than or equal to 0), re-prompt the user until a positive integer is input. You may assume that all inputs will be integers.

Print out a list, ascending from 1, of all divisors common to both integers. Then, print out a message stating whether or not the numbers are "relatively prime" numbers. Two positive integers are considered relatively prime if, and only if, the only common divisor they have is 1.

For example, if the user inputs 8 and 12 the output should be:

Common divisors of 8 and 12:

1

2

4

8 and 12 are not relatively prime.

If the user inputs 8 and 9, on the other hand, the output should be:

Common divisors of 8 and 9:

1

8 and 9 are relatively prime.

Starter Code:-

import java.util.Scanner;

public class RelativelyPrime {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in); //Scanner to get user input
  
//TODO
//Complete the program
  
}
}

In: Computer Science

Differentiate between centralized and distributed generation system.

  1. Differentiate between centralized and distributed generation system.

In: Electrical Engineering

The purpose of this assignment is to build the business calculator using supporting files built inTopics...

The purpose of this assignment is to build the business calculator using supporting files built inTopics 4 and 5.Create a Java application file named RPN.java containing a main method by using the ForthStack.java and associated files from Topic 5.The application should have one text box for numeric data entry, one text box for numeric display, one text box for error display, and buttons labeled "+", "-", "*", "/","dup", "2dup", "clr", "pop" and "push." The actions of the controls should be as follows.oThe text box for numeric display should display the top element of the stack, or blank if the stack is empty.oThe text box for numeric data entry should allow the user to type in a valid numeric value.oThe text box for error display should display an error message from the previous operation (if any), or be blank if the last operation was successful.oThe buttons labeled "+", "-", "*", "/", "dup", "2dup", "clr", and pop should invoke the corresponding methods in ForthStack; "pop" should remove and discard the top item on the stack, and "push" should push the numeric value in the numeric data entry box onto the stack and clear the numeric data entry box.oAll button operations should update the display of the top of the stack.The size of the stack used should be four, no more or less, in order to standardize testing.After thoroughly testing the program, submit the AbstractStack.java, ArrayStack.java,Forth.java, ForthStack.java, TestForthStack.java, and RPN.java

STACK CODE:

ArrayStack.java

import java.util.Arrays;

public class ArrayStack extends AbstractStack {
//Attributes
private double[] array;
private int size;
private int num;
  
//Default constructor
public ArrayStack() {
array = new double[3];
size = 3;
num = 0;
}
  
//Parametrized Constructor
public ArrayStack(int a){
array = new double[a];
size = a;
num = 0;
}
  
//Insert a new element
public void push(double a){
if (num < size) {
array[num] = a;
num++;
System.out.println("Success");
}
else {
throw new ArrayIndexOutOfBoundsException("Failure! Stack is full");
}
}
  
//Take out last inserted value
public double pop(){
if (num > 0){
num--;
return array[num];
}
else {
throw new ArrayIndexOutOfBoundsException("Stack is empty");
}
}
//Check stack empty or not
public boolean isEmpty(){
return (num == 0);
}
//Get top element from stack
public double peek() {
return peek(num-1);
}
//Get specified index element
public double peek(int n){
try
{
if (num > 0){
if (n < 0 || n >= num)
return -1;
else
return array[n];
}
else{
System.out.println("Stack is empty");
return -1;
}
}catch(Exception e ){
e.printStackTrace();
}
return 0;
}
//Number of elements in stack
public int count(){
return num;
}
public void clear() {
size=0;;
num=0;
}
  
}

public class FourthStack extends ArrayStack implements Fourth{
//Parameterized constructor
public FourthStack(int sz) {
super(sz);
}

@Override
//Pop 2 elements from stack and add values
//Push into stack
public void add() {
if(super.count()<2) {
throw new ArrayIndexOutOfBoundsException("Not enough elements to pop");
}
else {
super.push(super.pop()+super.pop());
}
}

@Override
//Pop 2 elements from stack and subtract second from first
//Push into stack
public void sub() {
if(super.count()<2) {
throw new ArrayIndexOutOfBoundsException("Not enough elements to pop");
}
else {
super.push(super.pop()-super.pop());
}
}

@Override
//Pop 2 elements from stack and multiply values
//Push into stack
public void mul() {
if(super.count()<2) {
throw new ArrayIndexOutOfBoundsException("Not enough elements to pop");
}
else {
super.push(super.pop()*super.pop());
}
}

@Override
//Pop 2 elements from stack and divide second from first values
//Push into stack
public void div() {
if(super.count()<2) {
throw new ArrayIndexOutOfBoundsException("Not enough elements to pop");
}
else {
super.push(super.pop()/super.pop());
}
}

@Override
//peek an element and make duplicate
//Push into stack
public void dup() {
if(super.count()<1) {
throw new ArrayIndexOutOfBoundsException("Not enough elements to pop");
}
else {
super.push(super.peek());
}
  
}

//Peek 2 elements from stack and make their duplicate
//Push into stack in same order
@Override
public void twoDup() {
if(super.count()<2) {
throw new ArrayIndexOutOfBoundsException("Not enough elements to pop");
}
else {
double first=super.peek();
double second=super.peek(super.count()-2);
super.push(second);
super.push(first);
}
}

}

import java.util.Scanner;
/**
* Test implemented functions
* @author deept
*
*/
public class TestFourthStack {
public static void main(String [] args){
//Variables for input
int choice;
int pek;
double val,poped;
boolean empty;
//Keyboard read
Scanner sc =new Scanner(System.in);
FourthStack as = new FourthStack(20);
//Loop until exit
while(true){
//User choices
System.out.println("1. Enter a Value in stack");
System.out.println("2. Pop a Value");
System.out.println("3. Check If array is Empty");
System.out.println("4. Peek Function");
System.out.println("5. Clear Stack");
System.out.println("6. Add Function");
System.out.println("7. Sub Function");
System.out.println("8. Mul Function");
System.out.println("9. Div Function");
System.out.println("10. Dup Function");
System.out.println("11. TwoDup Function");
System.out.println("0. Exit\n");
choice = sc.nextInt();
//Execute each choice
switch(choice){
case 1:
System.out.print("Enter a value To push : ");
val = sc.nextDouble();
as.push(val);
break;
case 2:
poped = as.pop();
System.out.println("Popped : "+poped);
break;
case 3:
empty = as.isEmpty();
System.out.println("Empty ? "+empty);
break;
case 4:
poped = as.peek();
if(poped != -1)
System.out.println("Peeked Value : "+poped);
else
System.out.println("Oops it was not a valid index this place is empty");
break;
case 5:
as.clear();
break;
case 6:
as.add();
break;
case 7:
as.sub();
break;
case 8:
as.mul();
break;
case 9:
as.div();
break;
case 10:
as.dup();
break;
case 11:
as.twoDup();
break;
case 0:
System.exit(0);
}
}
}
}

/*
* Pure abstract class without implementation
*/
public abstract class AbstractStack {
public abstract void push(double item);
public abstract double pop();
public abstract boolean isEmpty();
public abstract double peek();
public abstract void clear();
}


/*
* Interface to generate sum additional functions using stack
*/
public interface Fourth {
public void add();
public void sub();
public void mul();
public void div();
public void dup();
public void twoDup();
}

I PROVIDED THE FIVE PREVIOUS STACKS THAT I USED ON MY PREVIOUS WORK... LET ME KNOW IF THERE'S ANYTHING ELSE


Everything should be attached as requested, and i emailed you all the attachments

In: Computer Science

Fill in the blank for this common use of the for loop in processing each character...

Fill in the blank for this common use of the for loop in processing each character of a string.

for _____________________________________________________

{

    char ch = str.charAt(i);

    // process ch

}

Insert the missing statement in the following code fragment prompting the user to enter a positive number.

    double value;

    do

    {

    System.out.print("Please enter a positive number: ");

    value = in.nextDouble();

    }

    _____________________________________

The following for loop is executed how many times?

for (x = 0; x <= 10; x++)     

Consider the following for loop:

for (i = 0; i < str.length(); i++)

{ ... }

and the corresponding while loop:

i = 0;

while __________________________________

{

    . . .

    i++;

}

Fill in the blank for the while loop condition that is equivalent to the given for loop?

Write a for loop that is equivalent to the given while loop.

i = 1;

while (i <= 5)

{

    . . .

    i++;

}

In: Computer Science

Real Fruit Juice: A 32 ounce can of a popular fruit drink claims to contain 20%...

Real Fruit Juice: A 32 ounce can of a popular fruit drink claims to contain 20% real fruit juice. Since this is a 32 ounce can, they are actually claiming that the can contains 6.4 ounces of real fruit juice. The consumer protection agency samples 56 such cans of this fruit drink. Of these, the mean volume of fruit juice is 6.36 with standard deviation of 0.21. Test the claim that the mean amount of real fruit juice in all 32 ounce cans is 6.4 ounces. Test this claim at the 0.05 significance level.

(a) What type of test is this?

This is a two-tailed test.

This is a left-tailed test.    

This is a right-tailed test.


(b) What is the test statistic? Round your answer to 2 decimal places.
t-x= 2

(c) Use software to get the P-value of the test statistic. Round to 4 decimal places.
P-value = 3

(d) What is the conclusion regarding the null hypothesis?

reject H0

fail to reject H0    


(e) Choose the appropriate concluding statement.

There is enough data to justify rejection of the claim that the mean amount of real fruit juice in all 32 ounce cans is 6.4 ounces.

There is not enough data to justify rejection of the claim that the mean amount of real fruit juice in all 32 ounce cans is 6.4 ounces.

We have proven that the mean amount of real fruit juice in all 32 ounce cans is 6.4 ounces.

We have proven that the mean amount of real fruit juice in all 32 ounce cans is not 6.4 ounces

In: Math

A 100g ball is tied to a string so that the center its mass hangs 60...

A 100g ball is tied to a string so that the center its mass hangs 60 cm below the point where the string is tied to a support rod. The ball is pulled aside to a 70° angle with vertical and released. As the string approaches vertical, it encounters a peg at a distance x below the support rod. The string then bends around the peg. If the position of the peg is low enough, the ball will move in a circle wrapping the string around the peg. a. Draw a FBD for the ball. Starting from the definition of work W=F d cos, demonstrate and explain the work done by each of the force on your FBD. b. What is the work done by nonconservative force? What can you say about the total mechanical energy for the ball as it swing and rotate around the support rod and peg. c. What is the smallest value of x for which the ball will move in a circle wrapping the string around the peg? Note: to answer the last question c, first explain what happen to the mechanical energy, gravitational potential energy, kinetic energy, speed, and centripetal force of the ball as you decrease x. Then predict what will happen to the mechanical energy, gravitational potential energy, kinetic energy, speed, and centripetal force when x reaches its minimum value. Set up a mathematical equation that satisfy the condition for minimum x and solve it based on the conditions provided.

In: Physics