Questions
Student Name and ID no. _________________________________________________________ Write the journal entries in the given table for below...

Student Name and ID no. _________________________________________________________

Write the journal entries in the given table for below transactions of Clean Corporation during June 2020.

1

Provided services to customers on account for $650.

2

Purchased a building using 10 year Note Payable for $200,000.

3

Paid salaries to employees, $2,600.

4

Received payment from customers to whom service was given in transaction 1

5

Paid $400 dividends to shareholders.

Answer

Accounts

Debit

Credit

1

2

3

4

5

In: Accounting

Given the following subsets of R: A = R\Q = {x ∈ R|x not in Q}...

Given the following subsets of R:

A = R\Q = {x ∈ R|x not in Q}

B = {1, 2, 3, 4}

C = (0, 1]

D = (0, 1] ∪ [2, 3) ∪ (4, 5] ∪ [6, 7] ∪ {8}

(a) Find the set of limit points for each subset when considered as subsets of RU (usual topology on R).

(b) Find the set of limit points for each subset when considered as subsets of RRR (right-ray topology on R).

In: Advanced Math

The following time series shows the sales of a particular product over the past 12 months....

The following time series shows the sales of a particular product over the past 12 months. 1) Use the Naïve forecast method to get the forecasts for Month 2-12. Calculate the MAE, MSE, and MAPE. ----Details are required as in the lecture. Month Sales 1 120 2 112 3 119 4 112 5 99 6 120 7 125 8 118 9 114 10 108 11 115 12 117 2 2) Use the 3-month moving average forecast method to get the forecasts for Month 4-12. Calculate the MAE, MSE, and MAPE. ---Details are required. Month Sales 1 120 2 112 3 119 4 112 5 99 6 120 7 125 8 118 9 114 10 108 11 115 12 117 3) Which approach do you think is better? Why?

In: Operations Management

Find the probability that in a family of 4 children there willbea) At least...

Find the probability that in a family of 4 children there will be

a) At least 1 girl

b) At least 1 boy and at least 1 girl

c) Out of 1500 families with 3 children each how many would you expect to have 1 or 2 girls.

Assume that the probability of a female birth is 1/2.

In: Statistics and Probability

(a) Show that B {[2, 3, 0,1],[1, 1, 1,1]} is a maximal linearly independent subset of...

(a) Show that B {[2, 3, 0,1],[1, 1, 1,1]} is a maximal linearly independent subset of S {[1, 4, 1,2],[1, 1, 1,1],[3, 2,1, 0],[2, 3, 0,1]}.

(b) Calculate dim(span(S)).

(c) Does span(S) R4? Why or why not?

In: Math

With all the fad diets advertised on TV, a researcher wanted to know if there was...

With all the fad diets advertised on TV, a researcher wanted to know if there was a significant difference in weight loss depending on which new fad diet you were on. Over the course of 2 weeks, a total of 12 male volunteers who weighed the same and had similar lifestyles were broken up into 3 groups: Diet 1, Diet 2, and Diet 3. Conduct an ANOVA on the following table with alpha = 0.5 to determine if at least one of the diets has significantly different weight loss compared to the other two. Diet 1 -1 5 3 4 Diet 2-13 12 8 3 Diet 3-6 2 1 2 1. What are the null and alternative hypotheses? What is the critical value? (Round to 4 decimal places) a. 3.8853 b. 3.9823 c. 4.2565 d. 3.5874

In: Statistics and Probability

A forensic audit firm has five audit jobs remaining at a point in time. The audits...

A forensic audit firm has five audit jobs remaining at a point in time. The audits are labeled as jobs 1, 2, 3, 4 and 5. The respective audit times (in days) and the remaining days before the due date are given in the table below. Audit job Time required Due (at the end of) day

Audit job

Time required

Due (at the end of) day

1

10

60

2

28

45

3

30

30

4

1

32

5

2

31

a) Determine the job sequence using each of these priority rules: (1) CR, (2) SPT and (3) EDD b) Determine the performance of each rule using (1) average flow time, (2) average days late, and 3) average work in progress c) Apply the appropriate method to determine the sequence which will minimize the total number of late jobs

In: Operations Management

Question 2. Design a 16-1 MUX using any number of lower MUXs, such as 8-1 or...

Question 2.

Design a 16-1 MUX using any number of lower MUXs, such as 8-1 or 4-1 only. No other gates are allowed.

In: Computer Science

Select all the answers that apply to modular design: 1. A module may not refer to...

Select all the answers that apply to modular design:

1.

A module may not refer to other modules.

2.

Modular design is an important part of procedural programming.

3.

Modular design identifies the components of a program that can be developed independently.

4.

Each module consists of a set of logical constructs that are related to one another.

/////////////////////

Place the following parts of a function header into their correct order:

      -       1.       2.       3.       4.       5.      

closing parenthesis


      -       1.       2.       3.       4.       5.      

return type


      -       1.       2.       3.       4.       5.      

type parameters


      -       1.       2.       3.       4.       5.      

opening parenthesis


      -       1.       2.       3.       4.       5.      

identifier

//////////////////////////////

Select all of the following statements that are true about function coupling.

It is preferable that each module complete it's own calculations and does not pass control to another module.

A module that receives a value and returns the tax owing on that value using a sliding scale is highly coupled.

The less information that passes between the module and the other modules the better the design.

A module that receives 2 dates and returns the number of days between the dates is highly coupled.

Coupling describes the degree of interrelatedness of a module with other modules.

//////////////////////////////////////////

A function that does not return anything must declare the return type as void and is not required to have a return statement, however it is considered a best practice to include "return;" as the last line anyway.

True

False

/////////////////////////////////////////

Consider the following code:

#include<stdio.h>

void addTwo(int* param1, int* param2)
{
    *param1 -= 2;
    *param2 += 3;
    return;
}

int main(void)
{
    int arg1 = 5, arg2 = 7;
    addTwo(&arg1, &arg2);
    printf("arg1 = %d and arg2 = %d\n", arg1, arg2);
    return 0;
}

Select all of the following answers which are true:

1.

This call would cause a run time error:

addTwo(arg1, arg2);

2.

addTwo(&arg1, &arg2);
//outputs "arg1 = 3 and arg2 = 10"

3.

addTwo(&arg1, &arg2);
//outputs "arg1 = 10 and arg2 = 3"

4.

The ability to pass pointers to functions allows us to code functions that can change 2 or more variables when the function is executed.

/////////////////////////////////////////////////////////

Consider this C program:

#include<stdio.h>

void addOne(int *in)
{
    *in += 1;
    return;
}

int main(void)
{
    int arg1 = 4;
    addOne(&arg1);
    printf("The value stored in arg1 is %d\n", arg1);
    return 0;
}

Select from the following answers all that are true:

1.

addOne(&arg1);

When this function call executes the address of arg1 is stored inside the pointer named in.

2.

*in += 1;

Adds 1 to the value stored at the address held inside the pointer in.

3.

printf("The value stored in arg1 is %d\n", arg1);
//outputs "The value stored in arg1 is 5"

4.

When the function addOne() finishes execution the statement return; is required to return control to main()

5.

When the function addOne runs, the pointer variable in stores a copy of the value stored in arg1.

//////////////////////////////////////////////////////////

The following tasks could be performed in one cohesive module:

  • receives a date
  • calculates the fuel required to drive from Toronto to Montreal
  • returns the square root of an imaginary number

True

False

///////////////////////////////////////////

Consider the following code:

#include<stdio.h>

int addThese(int arg1, int arg2)
{
    return arg1 + arg2;
}

int main(void)
{
    int sum1 = 2, sum2 = 3, answer = 0;
    answer = addThese(sum1, sum2);
    printf("%d\n", answer);
    return 0;
}

Select all of the following statements which are true.

arg1 and arg2 are parameters

sum1 and sum2 are arguments

sum1 and sum2 are parameters

arg1 and arg2 are arguments

/////////////////////////////////////

We can access the data in a variable through either the variable name or by dereferencing its address.

True

False

////////////////////////////////////////

Consider this code snippet:

int x = 0;
int *p = &x;
*p = 79567;

After this code snippet runs the address of x is set to 79567.

True

False

/////////////////////////////////////

A function that does not receive any data when called has no parameters and must use the term void in the parameter list.

True

False

//////////////////////////////////////////////////////////////////

Order the following statements so they represent the correct order of operation of the following program:

#include<stdio.h>

int main(void)
{
    printf( "Hello world!\n");
    return 0;
}

      -       1.       2.       3.       4.      

the printf function outputs "Hello world!" followed by a new line


      -       1.       2.       3.       4.      

main() returns control to the OS, with value zero(0)


      -       1.       2.       3.       4.      

printf() returns control to main()


      -       1.       2.       3.       4.      

main() transfers control to printf()

///////////////////////////////////////////////////////////////////////////////////

The following tasks could be performed in one cohesive module:

  • receive a floating point value
  • calculate the GST (VAT) owing on the value received
  • total the received value and the tax
  • return the total

True

False

///////////////////////////////////////////////////////

Every variable in a C program has a unique address.

True

False

////////////////////////////////////////////////////////////////

A pointer variable is not strongly typed, which means that the address of a floating point variable may be stored in an int type pointer.

True

False

In: Computer Science

Given a random variable X following normal distribution with mean of -3 and standard deviation of...

Given a random variable X following normal distribution with mean of -3 and standard deviation of 4. Then random variable Y=0.4X+5 is also normal.

(1)Find the distribution of Y, i.e. μy,σy

(2)Find the probabilities P(−4<X<0),P(−1<Y<0)

(3)Find the probabilities P(−4<X¯<0),P(3<Y¯<4)

(4)Find the 53th percentile of the distribution of X

In: Statistics and Probability