[solved] – Question 9308
I having 2 tables client and group. Between them many to many HABTM relationship exist, which i already define using simple join table.
I having a problem with the Active record query interface . I have to write code for adding client to group and whenever i select any group display all the clients related to this group.
Expert Answer
[solved] – Question 93107
C++ has no built-in data type that allows us to manipulate complex numbers. Construct a data type, complex Type, that can be used to process complex numbers. Overload the stream insertion and stream extraction operators for easy input and output. We will also overload the operators + and * to perform addition and multiplication of complex numbers. If x and y are complex numbers, we can evaluate expressions such as x + y and x * y.
Expert Answer
[solved] – Question 93113
a c++ program that implements a linked list as an abstract data type
Expert Answer
[solved] – Question 9320
How to make link between crc generator code and error-detecting code so that it can run smoothly?
For reference, my crc generator code is-
% The program generates CRC code for any given input message stream &
% generator polynomial
%msg=[1 1 1 0 0 0 1 1 ]
msg=input(‘Input Message sequence :’);
%poly=[1 1 0 0 1 1]
poly=input(‘Input Generator Polynomial :’);
[M N]=size(poly);
mseg=[msg zeros(1,N-1)];
[q r]=deconv(mseg,poly);
r=abs(r);
for i=1:length(r)
a=r(i);
if ( mod(a,2)== 0 )
r(i)=0;
else
r(i)=1;
end
end
crc=r(length(msg)+1:end)
frame = bitor(mseg,r)
Expert Answer
[solved] – Question 93229
How the carry bit act as an extension to the arithmetic and logic unit (ALU)? Explain briefly with examples?
Expert Answer
[solved] – Question 93230
What flags represent in computer architecture? Explain at least four flags briefly with examples?
Expert Answer
[solved] – Question 93234
What is the difference between displacement, relative, base-register and index addressing schemes? Explain briefly with examples?
Expert Answer
[solved] – Question 93271
Design an ISA whose characteristics are:
1. 16 different operations
2. 12 bit address (PC, MAR etc)
3. 16 bit data registers
4. 16 bit IR
Q1. What will be the instruction size?
Q2. Opcode size?
Q3. Operand size?
Q4. Number of locations in memory?
Q5. Memory data size?
Expert Answer
[solved] – Question 93273
What is the value of pairs after the following assignment?
pairs = [ (x,y) for x in range(3,0,-1) for y in range(2,0,-1) if (x+y)%3 == 0 ]
Expert Answer

