[solved] – Question 93045

Consider the following lines of Python code.

x = [13,4,17,1000]
w = x[1:]
u = x[1:]
y = x
u[0] = 50
y[1] = 40
Which of the following is correct?

x[1] == 40, y[1] == 40, w[0] == 4, u[0] == 50

x[1] == 50, y[1] == 40, w[0] == 50, u[0] == 50

x[1] == 4, y[1] == 40, w[0] == 4, u[0] == 50

x[1] == 40, y[1] == 40, w[0] == 50, u[0] == 50

Expert Answer


[solved] – Question 93049

Give the statement which would enable you to create a rectangle having corners (10,30),(50,30), (10,80), (50,80). The rectangle should be given the name “r1”.

Expert Answer


[solved] – Question 93052

To print a message “What is your name?” the proper command is

Expert Answer


[solved] – Question 93054

How many multiplication operations will be enough for calculating 3^8 ?

Expert Answer


[solved] – Question 93057

What will be printed by the following code?

int x=4;
repeat(4){ x = 2 * x + 3; }
cout << x << endl;

Expert Answer


[solved] – Question 93059

Fill in the blanks in the following code which is intended for drawing 5 circles of radius 50 pixels centered at points (100,100), (150,100), (200,100), (250,100), (300,100).

initCanvas();
double x=100;
repeat(5){
Circle c(x,___,___);
c.imprint();
x = x + ___;
}

Expert Answer


[solved] – Question 9306

Write a program in MATLAB using either function or input statement to test the hypothesis for
one mean vector including the confidence interval calculation using simultaneous T2
intervals and
Bonferroni. You can use any data in the text book in order to make sure that your output is correct.
**Notes:
 For using function or input statement, only three parameters that need to be entered
by users which are the data, hypothesize value and level of significance.
 Please explore and include the following command in your program, size and fprintf.
 For input statement, your output MUST look like this:
Enter data matrix: bankloan
Enter hypothesized values in vector 1xn: [7 50 9]
Enter level of significant: 0.05
The test statistics is : 146.16
The critical value is : 7.86
The decision is to reject null hypothesis
The simultaneous confidence interval is: ( 7.91, 9.22)
The simultaneous confidence interval is: ( 42.97, 50.38)
The simultaneous confidence interval is: ( 9.53, 10.82)
The Bonferroni confidence interval is: ( 8.01, 8.33)
The Bonferroni confidence interval is: ( 43.50, 45.35)
The Bonferroni confidence interval is: ( 9.62, 9.94)
 For function statement, your output MUST look like this:
MV1f(bankloan, [7 50 9], 0.05)
The test statistics is : 146.16
The critical value is : 7.86
The decision is to reject null hypothesis
The simultaneous confidence interval is: ( 7.91, 9.22)
The simultaneous confidence interval is: ( 42.97, 50.38)
The simultaneous confidence interval is: ( 9.53, 10.82)
The Bonferroni confidence interval is: ( 8.01, 8.33)
The Bonferroni confidence interval is: ( 43.50, 45.35)
The Bonferroni confidence interval is: ( 9.62, 9.94)

Expert Answer


[solved] – Question 93061

What will be printed by the following code?

int x=4;
repeat(4){ x = 2 * x + 3; }
cout << x << endl;

Expert Answer


[solved] – Question 93062

1 point
Fill in the blanks in the following code which is intended for drawing 5 circles of radius 50 pixels centered at points (100,100), (150,100), (200,100), (250,100), (300,100).

initCanvas();
double x=100;
repeat(5){
Circle c(x,___,___);
c.imprint();
x = x + ___;
}

Expert Answer


[solved] – Question 93064

Give the statement which would enable you to create a rectangle having corners (10,30),(50,30), (10,80), (50,80). The rectangle should be given the name “r1”.

Expert Answer