1. Let T = {(1, 2), (1, 3), (2, 5), (3, 6), (4, 7)}. T :...
1. Let T = {(1, 2), (1, 3), (2, 5), (3, 6), (4, 7)}. T : X ->
Y. X = {1, 2, 3, 4}, Y = {1, 2, 3, 4, 5, 6, 7}
a) Explain why T is or is not a function.
b) What is the domain of T?
c) What is the range of T?
d) Explain why T is or is not one-to one?
Let ? = 〈?, ?|? 4 = ? 6 = ?, ?? = ??〉. Let
?:...
Let ? = 〈?, ?|? 4 = ? 6 = ?, ?? = ??〉. Let
?: ℤ4 × ℤ6 → ? by ?(c,d) = ? c?
d for all c ∈ {0,1,2,3} and d∈ {0, 1, 2, 3, 4, 5}.
prove that ? is a homomorphism and if ? is an isomorphism
Question 2.
Explain preprocessor directives in
C.
Describe Error and pragma directives and
write code snippets....
Question 2.
Explain preprocessor directives in
C.
Describe Error and pragma directives and
write code snippets.
Describe define, and undef, directives.
Write the code which shows if constant “VALUE” is not defined
then define it and replace its value to 5 on runtime. Display the
value of x.
int x = VALUE;
For 6-7, convert the C code to equivalent MARIE code. You may
reference literal values using...
For 6-7, convert the C code to equivalent MARIE code. You may
reference literal values using an immediate datum mode as in #1, or
assume the value is in a variable of the same name (e.g., one).
6) scanf(“%d”, &x);
z=0;
for(i=0;i<x;i++)
scanf(“%d”, &y);
if(y==0) z++;
}
printf(“%d”, z);
Using R and the data in the table below, perform the regression
of D on C...
Using R and the data in the table below, perform the regression
of D on C (i.e., report the regression equation).
Hint: The code to enter the vectors C and D into R is: C <-
c(3, 6, 8, 9, 1, 3) D <- c(2, 7, 5, 4, 0, 4)
C
D
3
2
6
7
8
5
9
4
1
0
3
4
You must figure out how to obtain the regression equation from
R. Enter the code below...