Can variable names can have spaces between them?
No.
int my variable; <- not a valid declaration
Java naming conventions say that you should use capital letters to differentiate words in a variable name.
int myVariable; <- valid!
Note that you can use the _ (underscore) character, as well, though some people suggest avoiding this.
int my_variable; <- also valid!
A data Sublanguage is a computer language used to define or manipulate the structure of a relational database management system(DBMS) e.g QBE, SQL.
for each pixel in image
pixel.red = 255 - pixel.red
pixel.green = 255 - pixel.green
pixel.blue = 255 - pixel.blue
Iam not finding any difference between sdlc and rad please explain?
The reason why you might not find differences in the sdlc and rad is because RAD is a more sped-up version of the SDLC. RAD is typically used in small to medium size projects, while the SDLC is generally used for large projects. Another difference is that in the SDLC, one can control the scope creep of the project, whereas that is very limited when one implements RAD because you give it up for faster implementation times. In RAD you have alot of feedback from the user to refine the program more to the aspects of the user, whereas you dont get the same user input in the SDLC. This feedback loop is another reason that RAD is sometimes chosen over the SDLC
How do you solve karnaugh map?
The given expression would be-
F(A,B,C,D)=E(0,2,4,5,6)
where E=Summation
F= Function
A,B,C,D represents binary variables,
Now, for solving this problem, we draw a map with 2m cubes, since here is only 4 binary variables it will be 24 cubes means 16 boxes.
Each row will contain 4 boxes, the numbering of boxes is very important for the solution of the problem,
Numbering for the first block will be- 0,1,3,2
Numbering for the second block will be- 4,5,7,6
Numbering for the third block will be- 12,13,15,14
Numbering for the fourth block will be- 8,9,11,10
The left most and the upper most parts are numbered 00,01,11,10 horizontally as well as vertically
Now, place 1 at all the specified boxes(as per the question i,e;E(0,2,4,5,6,))
See the picture below...
http://sub.allaboutcircuits.com/images14116.png
http://sub.allaboutcircuits.com/images14117.png
Start combining all the adjacent boxes having 1 in it.
Note: all the four corners of the map are adjacent to each other.
http://sub.allaboutcircuits.com/images14118.png
Think it as, when you fold the page it will be together.
When trying to combine the boxes we will first look for 16 boxes all together, whether it can be combined or not(It can only be combined if it is filled with 1).
If not, then we will look for 8 boxes together then 4 the 2 at last 1. No box filled with 1 should remain alone. It must be combined with others, we can use same box to combine a non-combined box.
http://sub.allaboutcircuits.com/images14121.png
http://sub.allaboutcircuits.com/images14124.png
After making all the combinations,
Take anyone of the combination look for it`s rows and column involved in making the combination. take the common variable of column and common variable of row and write it then write + again look for the another combination and repeat the same process for all the combination.
For eg;
From the above example, 2 and 4 can be combined because both are adjacent to each other the value for this combination would be A`CD`.
Try it...
For more clarification mail me at: hussain.ashraf4u@gmail.com
you can download a computer program to minimize k map it is:-
http://www.ziddu.com/downloadlink/15018743/k_map_minimizer.zip.html
What simple machine is inside a projector?
A light bulb and a lens. In combination the form a machine to project an image.
Write an algorithm to insert an item to a given location in sorted array?
To insert a number N into array A at index I:
// Resize A if necessary
If A is too small to add a new element then
resize A
// Right-shift all elements starting from position I
For i = A.length to I
A[i] = A[i - 1]
// Insert new item
A[I] = N
A real example of parallel execution of sequential programs in a multi-core architecture might be the addition of two matrices...
double a[1000,1000];
double b[1000,1000];
double c[1000,1000];
int i, j;
for (i=0; i<1000; i++) for (j=0; j<1000; j++) c[i,j] = a[i,j] + b[i,j];
...Since each of these 1000000 additions are independent of each other, they could easily be dispatched to multiple threads and run on multiple cores...
for (i1=0; i1<1000; i1+=4) for (j1=0; j1<1000; j1+=4) c[i1,j1] = a[i1,j1] + b[i1,j1];
for (i2=1; i2<1000; i2+=4) for (j2=0; j2<1000; j2+=4) c[i2,j2] = a[i2,j2] + b[i2,j2];
for (i3=2; i3<1000; i3+=4) for (j3=0; j3<1000; j3+=4) c[i3,j3] = a[i3,j3] + b[i3,j3];
for (i4=3; i4<1000; i4+=4) for (j4=0; j4<1000; j4+=4) c[i4,j4] = a[i4,j4] + b[i4,j4];
...with each for loop running in its own thread/core. In fact, most modern optimizing compilers, at the higher optimzation levels, is quite capable of doing this on its own, because they analyze the code and break apart things that can run in different threads automatically.
What is the purpose of literals in assembly language?
literals are used to store constant values which are not changed even after program execution
Has your computer been dragging as of late? All of a sudden you can't access certain files or programs - your system keeps crashing. If so, you just may have a malicious program controlling the system from the internal sectors of your computer - you just may have contracted a boot infector, a virus that has compromised thousands of computers.
What is machine language instructions 8b00ac?
It depends on the processor. In the 8086/8088, it means
MOV AX,[BX+SI]
LODSB
In the 8085 it means
ADC E
NOP
XRA H
Neither snippet makes any sense, so it must be from some other processor.
List four system resources that software uses to manage hardware?
IRQ, DMA Channel, I/O Addresses, Memory Addresses
The instruction represented by this code depends entirely on the architecture that you are trying to translate it for.
Who created the Thomas Algorithm . Also known as the Tridiagonal matrix algorithm?
Thomas, L.H. (1949),
Elliptic Problems in Linear Differential Equations over a Network, Watson Sci. Comput. Lab Report, Columbia University, New York
If James Edward Maceo West is alive - where is he?
He is retired from Bell Laboratories and since 2002, has been a member of the faculty at the Whiting School at Johns Hopkins University.
What is the algorithm and flowchart for finding the prime numbers between 1 and 20?
The algorithm is fairly straightforward. For any integer i greater than or equal to zero:
Step 4 is easier to implement by testing all odd divisors from 3 to the square root of i.
How do chemists use artificial chemicals?
They use them in something that does have chemicals or has natural chemical
What are the easy tips to learn programming language?
Well, whatever you do, you'll have to learn. The easiest way to learn some basics is to use a high level programming language such as, Perl, PHP, Ruby, Python etc.. (very long list).
What is Cost benefit concepts of layers in computer architecture and design?
The concept of layers help in reducing the size of transistors. .Every year transistors' number go on increasing in a microprocessor chip. Where does this increase come from?it comes- Chips gets larger and the transistors get more and more smaller. Transistors shrink in size because of their ability to control photo lithography and the technology of process advances.
You can read the whole article here....
http://www.boddunan.com/computers-a-technology/34-Hardware /3844-costbenefit-concept-of-layers-in-architecture-design.html
if the link is invalid wait for sometime like 4-5 hours i have just added it and it will take time to publish
What is the accuracy of supercomputer?
it depends on the software written for the computer its the software that controls the outcome the hardware just processes it
How do you write a shell Program to generate the first 25 prime numbers?
echo enter a range
read rng
echo 2
j=3
while test $j -le $rng
do
i=2
x=`expr $j - 1`
while test $i -le $x
do
if [ `expr $j % $i` -ne 0 ]
then
i=`expr $i + 1`
else
break
fi
done
if [ $i -eq $j ]
then
echo $j
fi
j=`expr $j + 1`
done
Printer ran out of ink will spoil the printer?
Supportly provides technical support services for all types of issues related to your devices, software, apps and functions. Download the Supportly App and register your problem to get 24x7 support and resolution for all your technical issues, just call at us our toll free number +1 866-904-2612.