What do you use the range argument for in the SUMIF function?
There are potentially two ranges. You have the range that you want to do your checking on, the criteria, and the range you want to sum. That can be the same as the first range, like if it was numbers. So if you had a list of numbers and you only wanted to add the ones that were over 50 from that list, the range you were checking and the range you were summing from would be the same and the second reference to a range can be left out:
=SUMIF(A2:A20,">50")
If you had a list of days for a few weeks with numbers in the column beside them and you only wanted to add the numbers beside a particular day, say Monday, then the range you are checking and the range you were adding would be different, in this case the days are in column A and numbers in column B:
=SUMIF(A2:A20,"Monday",B2:B20)
How do you implement Dijkstra's algorithm in c language?
/* Dijkstra's Algorithm in C */
/* Source: w w w . c o d e w i t h c . c o m / d i j k s t r a s - a l g o r i t h m - i n - c
#include<stdio.h>
#include<conio.h>
#include<process.h>
#include<string.h>
#include<math.h>
#define IN 99
#define N 6
int dijkstra(int cost[][N], int source, int target);
int main()
{
int cost[N][N],i,j,w,ch,co;
int source, target,x,y;
printf("\t The Shortest Path Algorithm ( DIJKSTRA'S ALGORITHM in C \n\n");
for(i=1;i< N;i++)
for(j=1;j< N;j++)
cost[i][j] = IN;
for(x=1;x< N;x++)
{
for(y=x+1;y< N;y++)
{
printf("Enter the weight of the path between nodes %d and %d: ",x,y);
scanf("%d",&w);
cost [x][y] = cost[y][x] = w;
}
printf("\n");
}
printf("\nEnter the source:");
scanf("%d", &source);
printf("\nEnter the target");
scanf("%d", &target);
co = dijsktra(cost,source,target);
printf("\nThe Shortest Path: %d",co);
}
int dijsktra(int cost[][N],int source,int target)
{
int dist[N],prev[N],selected[N]={0},i,m,min,start,d,j;
char path[N];
for(i=1;i< N;i++)
{
dist[i] = IN;
prev[i] = -1;
}
start = source;
selected[start]=1;
dist[start] = 0;
while(selected[target] ==0)
{
min = IN;
m = 0;
for(i=1;i< N;i++)
{
d = dist[start] +cost[start][i];
if(d< dist[i]&&selected[i]==0)
{
dist[i] = d;
prev[i] = start;
}
if(min>dist[i] && selected[i]==0)
{
min = dist[i];
m = i;
}
}
start = m;
selected[start] = 1;
}
start = target;
j = 0;
while(start != -1)
{
path[j++] = start+65;
start = prev[start];
}
path[j]='\0';
strrev(path);
printf("%s", path);
return dist[target];
}
What is the meaning of LS in programming?
Such short abbreviations normally mean several things. One meaning of "ls" is the command used in UNIX and Linux to show a list of files. This is basically the equivalent of the DOS/windows "dir" command.
How do you draw parallelogram in gw basic by using DRAW statement?
10 cls
20 screen 2
30 DRAW "E40, R80, G40, L80"
40 end
Can you reinstall a program if you already have it on your computer and if so will it do anything?
Yes you can re-install programs that are already on your computer. What happens depends on the installer. A good installer will automatically switch to maintenance mode if the version you are installing is the same as the one that is already installed -- allowing you to modify the installation (add or remove components). If there is no maintenance mode it should simply repair the installation if anything is missing, or let you know the software is already installed. If the versions are different, the installer should offer to remove the existing installation if it is older, or alert you if it is newer (typically you have to manually uninstall newer versions before installing older versions). A bad installer will simply install over the existing installation regardless, however the complexity of the software will determine if this is a good thing or not.
An odometer is a device for measuring the distance traveled by a vehicle. By binary we mean two.
What is a hidden game in a computer program called?
If it is obvious and easy to find/start it is called a "mini game"
If it is hidden and/or requires secret key combinations or something like that it is called an "easter egg"
What is the basic cocept of RDMBS?
RBMBS stands for "relational database management systems" A very basic concept is: a system for collectingpieces of information about a person or entity or even a product that allows for a sensible and or logical presentation at will, different forms or structure for a particular purpose. For example a telephone directory of names and individuals listing is a relational database. The phone directory like the white pages that we normally use is one form ofa database.Another form of the same database thatis used by an emergency agency or police department, (the so called reverse directory) is a database of the sameinformation but listed with the number first instead of the name of the person.
Did linker converts source program into machine code?
How do you select pivot in quick sort?
quick sort has a best case time complexity of O(nlogn) and worst case time complexity of 0(n^2).
the best case occurs when the pivot element choosen as the center or close to the center element of the list.the time complexity can be derived for this case as:
t(n)=2*t(n/2)+n.
whereas the worst case time complexity for quick sort happens when the pivot element is towards the end of the list.the time complexity for this can be derived using the recurrence eqn:
t(n)=t(n-1)+n
#include<iostream.h> #include<stdlib.h> #include<conio.h> struct poly { int coeff; int x; int y; int z; struct poly * next; }; class polynomial { private : poly *head; public: polynomial():head(NULL) { } void getdata(); void display(); void insert(poly *prv,poly *curr,poly *p); polynomial operator + (polynomial ); }; polynomial polynomial :: operator +(polynomial px2) { polynomial px; poly *t1,*t2,*t3,*last; t1 = head; t2 = px2.head; px.head = NULL; while(t1 != NULL && t2 != NULL) { t3 = new poly; t3->next = NULL; if(t1->x t2->z) { t3->coeff = t1->coeff + t2->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; t2 = t2->next; } elseif(t1->x > t2->x) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->x < t2->x) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } elseif(t1->y > t2->y) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->y < t2->y) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } elseif(t1->z > t2->z) { t3->coeff = t1->coeff; t3->x = t1->x; t3->y = t1->y; t3->z = t1->z; t1 = t1->next; } elseif(t1->z < t2->z) { t3->coeff = t2->coeff; t3->x = t2->x; t3->y = t2->y; t3->z = t2->z; t2 = t2->next; } if(px.head == NULL) px.head = t3; else last->next = t3; last = t3; } if(t1 == NULL) t3->next = t2; else t3->next = t1; return px; } void polynomial :: insert(poly *prv,poly *curr,poly *node) { if(node->x curr->z) { curr->coeff += node->coeff; delete node; } elseif((node->x > curr->x) (node->x curr->y && node->z > curr->z)) { node->next = curr; prv->next = node; } else { prv = curr; curr = curr->next; if(curr == NULL) { prv->next = node; node->next = NULL; return; } insert(prv,curr,node); } return; } void polynomial :: getdata() { int tempcoeff; poly *node; while(1) { cout << endl << "Coefficient : "; cin >> tempcoeff; if (tempcoeff==0) break; node = new poly; node->coeff = tempcoeff; cout << endl << "Power of X : "; cin >> node->x; cout << endl << "Power of Y : "; cin >> node->y; cout << endl << "Power of Z : "; cin >> node->z; if(head == NULL) { node->next = NULL; head = node; } elseif(node->x head->z) { head->coeff += node->coeff; delete node; } elseif((node->x > head->x) (node->x head->y && node->z > head->z)) { node->next = head; head = node; } elseif (head->next == NULL) { head->next = node; node->next = NULL; } else insert(head,head->next,node); } } void polynomial :: display() { poly *temp; temp = head; cout << endl << "Polynomial :: "; while(temp != NULL) { if(temp->coeff < 0) cout << " - "; cout << abs(temp->coeff); if(temp->x != 0) cout << "x^" << temp->x; if(temp->y != 0) cout << "y^" << temp->y; if(temp->z != 0) cout << "z^" << temp->z; if(temp->next->coeff > 0) cout << " + "; temp = temp->next; } cout << " = 0"; } void main() { polynomial px1,px2,px3; clrscr(); px1.getdata(); px2.getdata(); px3 = px1 + px2; px1.display(); px2.display(); px3.display(); getch(); }
Why is it sometimes necessary to install a program on a computer before the computer recognize it?
Some programs must "register" with the operating system, which is generally achieved through installation. Programs that do not require installation are often called "standalone programs", some of which may perform any required registration activities upon the first execution. However, registration often requires elevated privileges, particularly if the program must register itself with the local machine rather than just the current user, thus registration is best performed during a separate installation process.
How do you make something you are printing print bigger?
This depends on what you are trying to print. For example, to print a Word document larger, you can increase the font size. To print a larger image of something, you can resize the image in a visual editing program before printing.
The word hacker means different things to different people, and it is used as a compliment in many circles. Hacker usually refers to someone who enjoys taking things apart to see how they work inside, or has an intimate knowledge of computers or other networks or systems.
The people you are probably thinking of that maliciously damage computer systems are known as crackers or script kiddies. Sensationalist news stories and Hollywood movies have twisted the word into something completely different than its original meaning.
Many hackers are activists who proudly support freedom of speech, civil rights and removal of censorship. There is even a word coined for Hacker Activism: "Hacktivism"
Using vector to add objects and display their member variables?
import java.util.Vector; suppose-:::: test t=new test(); /**this is how we add elements to vector*/ Vector v=new Vector(); v.addElements(t);
What is software formal transformation model?
As far as i see, this "formal transformation" model only exists on the CAPE (Caribbean Advanced Profiency Examination) Syllabus under SDLCs and nowhere else... Good luck finding info on this. I have been searching for 2 years.
How can send IM in a network using command prompt?
"msg" command might help. It pops up a message box on the users PC. C:/> msg <user_name> "Hello" "msg" command might help. It pops up a message box on the users PC. C:/> msg <user_name> "Hello"
What is the difference between insertion sort and selection sort?
Both bubble sort and selection sort are in-place sorts, which means they require no additional space to sort. Both are O(n).
Both also share worst/average case time complexities of O(n2). Selection sort also has O(n2) for a best case scenario, while an intelligent bubble sort implementation will have O(n) for a best case (already sorted) scenario.
Note that while looking at the numbers above seem to show that bubble sort has a slight edge over selection sort, in practice you should choose selection over bubble. It will very nearly always perform better in real-time tests.
There are many different instructions and registers in the 8086/8088. The question is too broad. Please ask a more specific question. Alternatively, you can consult a good book, such as "The 8086/8088 Primer", Second Edition, Stephan P. Morse, Hayden Book Company, or any of a wide variety of other books.
backgrounder with silent install
Which computer should i go with to learn IT and Programming?
If you plan to follow a course of lessons, then that will almost certainly say what software you need and that will dictate the hardware required.
If you're planning to "self-teach" - nothing wrong with that! - then I'd start with what you have and what you want to achieve. If you already have a PC with at least 4GB RAM and an I3 processor (or better) then you could start with Microsoft's Visual Studio Community products which are free and are stripped down versions of the full Visual Studio (VS) software that Microsoft themselves use to write software. There are many books published about using VS.
Note that the hardware requirements Microsoft specify for VS are quite low; in practise development machines should be the faster the better and also benefit from at least two screens - it makes debugging applications much easier to have one screen running the application and the other running Visual Studio.
What is the Difference between modular programming and structured programming?
Event driven programming is just that, the code does not get executed until an event happens. A good example is a visual basic program, when you click on a button, the code for the button gets executed, but in any other case that code is never touched by the program.
Structured programming is different, A DOS programming environment called QBasic is a great example of this. You write a program and it goes through every single line of code before either looping back to the beginning or exiting. when it gets to the end, it checks to see if a variable contains a certain value, if it does it exits, otherwise it loops.
Hope this helps, and my definitions of each are accurate.
What does BtnShow.EnabledFalse mean?
BtnShow is the (user-defined) name of an object. The prefix "Btn" implies the object is a button and it presumably has the caption "Show". All objects have an Enabled property which can be set to true or false. If true, the button object will respond to mouse-clicks and other events (such as keyboard events). If false, the button object will be disabled (visually, it will be appear greyed-out) and becomes unresponsive.
Clicking a "Show" button will typically reveal another object (such as another form). The "Show" button becomes redundant at that point thus it makes sense to disable it by setting Enabledto false whenever it is clicked.
Obviously, the button needs to be re-enabled when the other object is subsequently hidden or closed by the user, thus you will need to set up an event handler for the other object's close event (such as FormClosed if the other object is a form). The event handler simply needs to set the button's Enabledproperty back to true.