Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Have Programming Question? Ask it here!

0 Answer(s)      2 years and 6 months ago
Posted in : UML

Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i * (i + 1);

View Answers

Related Tutorials/Questions & Answers:
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack
c++   Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1
c c++ - Java Beginners
c c++  Write a small record management application for a school...]; String name = f[1]; String c = f[2]; String note = f[3...]; String name = st[1]; String c = st[2]; String note = st[3]; if (id.equals
c++ - JDBC
c++  Can any one given a note on advantages and disadvantages of C
C++ - XML
C++  C++ function declarations for : 1) isEmptyList():boolean {query} - determines whether a list is empty 2) getLengthList():integer {query...) C++ function definitions, using the operations declared above: 7
c++ - AOP
c++  hi friends,i got this question and i need u help. "Two subjects namely computer aided design(subject1)and computer programming(subject2)are to be assessed.a set of marks are available for a class of students.For each
C Tutorials
C Tutorials       In this section we have given large number of tutorials on C programming Language. C programming language is used to develop applications mostly
c - Java Beginners
c  image compression in c/c++ language
c++ - Development process
c++  How to integrate two or more c++ programs. i have one more doubt in c++ to create header file in c++(user defined).please reply immediately
C program - SQL
C program  Write a C program for airport simulation using queue data structures. Please reply me
C program - SQL
C program  Thank You . Write some C programs using pointers . Write some C programs using files. Please reply me .   Hi Friend, Please visit the following link:
c++ - Java Beginners
c++  can i connect c++ with database like in java. do we need any special software for this purpose
C Help - Development process
C Help  Dear sir, I'm developing a program in c using TURBO-C, i want that when my program runs the console window(cmd) should be hidden. program should run in task manager. thnx
c program - IoC
c program  given the string "wordprocessing",write a program to read the string from the terminal and display the same in the following formats: a) word processing b) word processing c) w.p.
C Program - Development process
C Program  C program to find division of two fraction number without...: #include #include #include int main () { int a; int b; int c; int... in the form a/b: "); scanf("%d/%d", &c, &d); nr=a*d; dr=b*c; printf("%d/%d",nr,dr
c program - Java Beginners
c program  1. How to write a program to Add 2 numbers without using int .size should be more than machine size
c programming - Development process
c programming  Hello Sir, can you plz post an answer to these quesions : Write a program in c that prompts the user the name of a file... in c to create a fle, open it, type in some characters and count the number
c postfix - Framework
c postfix  q: write a c program to read apostfix expression store it in array of character then evaluate this expression using eval and get_token...:// Thanks
C program - SQL
C program  write a C program to print multiplication table using pointers.  Hi Friend, Try the following code: #include #include void main() { int i,j; int * pt; clrscr(); printf(" "); printf("\n
c++ - Java Beginners
c++  WHAT IS the use of#include<  Hi Friend, It is a non standard header file that contains clrscr(), getch() functions. clrscr()- It is used to clear the console screen. getch()- This function reads each
C Programing - CVS
C Programing  Write a C Program to display the following menu: Menu 1. Display 2. Copy 3. Append 4. Exit Accept the choice (1-4) from the user, and perform the following tasks: Choice 1: Accept a file name from the user
c++ - IDE Questions
c++  how can i write a simple program in c++ that outputs 399 in words?thank you.  Hi Friend, C program to convert number to words: #include #include char *ch1[]={" "," one"," two"," three"," four"," five
c++ - Java Beginners
c++  2. Use for loops to construct a program that displays a pyramid of Xs on the screen. The pyramid should look like this X XXX XXXXX XXXXXXX XXXXXXXXX except that it should be 20 lines high, instead of the 5 lines shown
c++ - Java Beginners
c++  1. Create the equivalent of a four-function calculator. The program should request the user to enter a number, an operator, and another number..., operator, second number: "; cin<<"%f %c %f", &num1, &ch, &num2 ); cin >
C program - SQL
C program  Thanks!!!!!!!!!! Please reply me some programs for DATA STRUCTURES (LINKED LISTS,ETC)  Hi Friend, Try the following code: # include # include #include struct element *temp; struct
Java vs C
Java vs. C Language In this section we will compare Java and C Programming..., solaris etc. It is not necessary to compile the program for each platform. The C... programming language while c is procedural language Platform independence
cmd in c++/JAVA - Java Beginners
C++ - Design concepts & design patterns
C++  class xClass { public: void func(); void print(); xClass... function print that prints the vii. Write a C++ statement that prints the values of the data members of the object x. viii. Write a C++ statement
C Program Question - Development process
C Program Question  How i can calulate sum of First digit and last digit of Five Numbers. e.g 12345 i want to calculate 1+5=6 how i can calculate in C Program?   Hi Friend, Try the following code
bsearch() function in C
bsearch() function in C Programming Language This section demonstrates the use bsearch() function in C. This searches function the given key in the array...; #include <conio.h> char charr[] = { 'a', 'b', 'c', 'd
C file fseek() function
C file fseek() function This section demonstrates the use of fseek() function in C. This function sets the file position indicator for the stream pointed to by stream or you can say it seeks a specified place within a file and modify
C file fsetpos() function
C file fsetpos() function This section demonstrates the use of fsetpos() function in C. The function fsetpos() is used to set the position of the stream to the location indicated by the information in pos. This information is obtained
iPhone Loops in objective c
iPhone Loops in objective c If you have started learning Objective c... of loop examples, i have discussed about... Do loop in Objective c while loop in objective c for each loop in objective c and for loop objective c 2.0
What is Objective c iPhone?
What is Objective c? Objective c is a standard objected oriented programming language or we can also say that it is an enhanced version of traditional c... is one of them. This language is based on ANSI C language. While going through
Jstl c:when,c:choose,c:otherwise tag in jsp
JSTL c:when,c:choose,c:otherwise TAGS IN JSP In this Section, we will discuss about how to use JSTL tag ' c:when ' in JSP with a simple example. Basically, the choose, when, and otherwise tags are used to construct an "c
help me on jstl- <c:url> - JSP-Servlet
help me on jstl c:url  what is jstl in java
Print Output in C LAnaguage - Development process
Print Output in C LAnaguage  I want to Print Following Output in C Language with Combined For Loops Not Seprate Loops pleaseHelp Me
how to convert Visual c++ to java - Java Beginners
how to convert Visual c++ to java  Hi Sakthi here.. How to convert Visual c++ codings to Java codings.. Does both have any similarity in library files
Sum of diagonal of Matrix in C
C Sum of diagonal of Matrix In this section, you will learn how to determine the sum of both the diagonal of 3X3 matrix. For this, we have declared an array of integers and using the for loops, we have determined the sum of both
Jstl c:if tag in jsp
JSTL c:if TAG IN JSP In this Section, we will discuss about how to use JSTL tag ' c:if ' in JSP with a simple example. The "c:if" tag... statements. Syntax: <c:if test="${  condition }>  
C Language - Design concepts & design patterns
C Language  What is meant by %u in printf statement in c? for example,%d means integer value,like that what is %u?  Hi Friend, %u is used to print an unsigned integer. Unsigned integers are non-negative numbers
Difference between C++ and Java - Java Interview Questions
Difference between C++ and Java  Basic difference between C... was derived from C++ but still there is big difference between these two... definition in C++, but there is no closing semicolon. 3. Forward reference
C Program to Print Stras - Development process
C Program to Print Stras  How I can Print Following Output using Two For loops in C Language? * * * * * * * * * * * * * * * *  Hi Friend, Try the following: #include #include void main(){ int i=0
Main function parameter in C language - Ajax
Main function parameter in C language  Please let me know how... of fgetpos(): #include #include int main () { FILE * pFile; int c...==NULL) perror ("Error opening file"); else { c = fgetc (pFile
Objective-C program with multiple parameter
Objective-C program with multiple parameter       Objective-C enables programmer to use method... method for more than one parameter -(int) sum: (int) a andb: (int) b andc:(int)c
C language-qsort and bsearch function - Ajax
C language-qsort and bsearch function  Explain qsort and bsearch...() #include #include #include #include char alpha[] = {'a','b','c...); if(p) printf(" %c is in alphabet\n", *p); else printf("is not in alphabet\n
C Program to Print Pascal Triangle - Development process
C Program to Print Pascal Triangle  I want C Program to Print Pascal Triangle.  Hi Friend, Try the following code: #include #include void main(){ int a[15][15],i,j,rows,num=25,k; printf("\n enter
Array Implementation in C
Array Implementation in C Code: #include<stdio.h> #include<conio.h... are : \n"); display(size,5); } void read(int c[],int i) { int j; for(j=0;j<i;j++) scanf("%d",&c[j]); fflush(stdin
NSString in objective c
NSString in objective c In this series of Iphone application development... and objects...that are used in objective C. NSString is one of them. Brief Introduction... NSObject(Objective c) and represent the set of character or character strings
iPhone Do loop in Objective c
iPhone Do loop in Objective c As you know, the concept of loop is almost same in objective c programming. So, here in this tutorial of "Do loop in Objective c... type for objective c programming. We are also using the same.  Once you