Postingan

Menampilkan postingan dari Desember, 2013

Top 5 Websites To Compile & Run Programs Online || Online Compilers

Gambar
As a  programmer , till now you have compiled your program on any  software  in offline mode. Have you experience to compile and run your program online.There are many  online compilers  are available to compile and run programs of different languages like C, C++ or python.No you do not need to download and install a heavy software or compiler for programming, as you can do it online. I have collected a list of  5 best websites  which allows you to write, compile and run a program online. So, now enjoy  online programming  by visiting Websites To Compile & Run Programs Online . 1.  codepad.org Codepad.org  is an online compiler and collaboration tool.This site allows you to write and run code and provide a URL of code which you can share via email and chat. This online compiler is compatible with C, C++, Perl, PHP ,Ruby and many more.You can select any  programming language  to compile program. 2. ideone.com This is be...

Top IT Certification Programs For Beginners in 2014

Gambar
In order to boost and improve your professional life in  information technology  Field, getting certifications in various programs help a lot. Having certifications not only leave a good impression when you move toward interview also improve your skills in Field and develop your confidence level.Before moving towards any institution to get certifications you must choose a program which fulfill the today's needs or which will beneficial in your  IT  Field. So, Today I am sharing with you  top best IT certifications programs in 2014 . If your are beginner and have an interest towards getting certifications in 2014 then look at Top IT Certification Programs For Beginners in 2014.May these programs groom your future.These  IT certifications programs  helps you to get high pay and high rank in any IT feild in 2014. 1. CCNP or Cisco Certified Network Professional The  CCNP  or Cisco certified network professional is a certification program related ...

C# Program using Functions and loops

C# Program using Functions Program Statement: Write a function which takes one value as parameter and display the sum of digits in the value. e.g. if user has passed 125 then function will print 1+2+5 = 7 Solution: class _sum { long n, i, sum = 0; public void add(long n) { for (i = n; i != 0; i = i / 10) { sum = sum + i % 10; } Console.WriteLine("\n\t\tSum of digits is : {0}", sum); } public void input() { Console.Write("\n\t\tEnter desired digit : "); n = Convert.ToInt64(System.Console.ReadLine()); add(n); } }

C# Program using Two argument passing function

C# Program using Two argument passing function Program Statement: Write a function which takes two values n1 and n2 as arguments and multiply the n1 by itself n2 times i.e. calculate n1n2 and then return the result to main function which will display the result. Solution : class power_fun { double x; public power_fun() { x = 1; } double power(int a,int b) { for (int i = 1; i <= b; i++) { x = x * a; } return x; } static void Main(string[] args) { power_fun p = new power_fun(); int n1, n2; double result; Console.Write("Enter 1st Value: "); n1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter 2nd Value: "); n2 = Convert.ToInt32(Console.ReadLine()); result= p.power(n1, n2); Console.Write...

Top 5 Biggest and Popular Programming Contests

Gambar
Top 5 Biggest and Popular Programming Contests Do or Die this is one of amazing and my favorite Quote which enough to change someone life and make history. Contests have same behavior like this sentence because you have to beat others and make your history with own hands here today I have discussed on Programming Contests. If you are programmer then you must familiar with programming contests and there are many programming contest held on national and international level but here in this post have only listed Top 5 World’s biggest international programming contests which held by most popular IT Companies like Google, Microsoft, IBM and many more. These Contests consists of Computer Science Old and new languages like C/C++/C#, JAVA, PHP etc and see the people’s skills. The basic aim of these programming contests to find talented programmer over the Globe and see how fast they solve problem in given time duration. Below is the list of Top 5 International Programming Contests with their...

C# Program to Print half Diamond shapes using numbers

C# Program to Print half Diamond shapes using numbers 1 to 10 Program Statement: Write a program to produce the following output:              1           2   3         4   5   6        7  8  9  10 Solution: static void Main(string[] args) { int i,j,k=1; for (i = 1; i <= 4; i++) { for (j = 4; j >= 1; j--) { if (j > i) Console.Write(" "); else Console.Write(" " + k++ + " "); } Console.WriteLine(); Console.WriteLine(); } Console.ReadLine(); }

C# Program to display the different series output on the screen

C# Program to display the different series output on the screen Program Statement: Write a program which display the following output on the screen. 1 2 3 4 5 1 4 9 16 25 1 8 27 64 125 Solution: static void Main(string[] args) { for (int i = 1; i <= 5; i++) Console.Write(i+" "); Console.WriteLine(); for (int i = 1; i <= 5; i++) Console.Write(i * i+" "); Console.WriteLine(); for (int i = 1; i <= 5; i++) Console.Write(i * i * i+" "); Console.ReadLine(); }

C# Program to Print Triangle in Square

C# Program to Print Triangle in Square Program Statement: Write a program which display the following output on the screen. ####$#### ###$#$### ##$###$## #$#####$# $#######$ Solution: class shape { int x, y; public void sh() { Console.WriteLine(); for (x = 1; x <= 5; x++) { for (y = 1; y <= 5 - x; y++) { Console.Write("#"); } Console.Write("$"); for (y = 2; y <= x * 2 - 1; y++) { Console.Write("#"); } Console.Write("\b$"); for (y = 1; y <= 5 - x; y++) { Console.Write("#"); } Console.WriteLine("\n"); } } }

C# Program to Print Triangles

C# Program to Print Triangles Program Statement: Write a program to produce the following output: A B C D E F G F E D C B A A B C D E F     F E D C B A A B C D E           E D C B A A B C D                 D C B A A B C                        C B A A B                               B A A                                      A Solution: static void Main(string[] args) { int a, x, n = 71, o = 70, y = 1, c; for (x = 1; x <= 7; x++) { for (a = 65; a <= n; a++) { Console.Write(Convert.ToChar(a)); } if (x == 2) o = 70; for (c = ...

program to Print Sum of factorial Series in C#

C# program to Print Sum of factorial Series Program Statement: Write a program to display the sum of the following series. 2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)! Solution: public class factorial { int n; public void ser() { double f, sum = 2, res = 1, up = 2; Console.WriteLine("\n\t\tSeries = 2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!"); Console.WriteLine(); Console.Write("\n\t\tEnter ending point : "); n = Convert.ToInt16(Console.ReadLine()); for (int i = 2; i <= n; i++) { if (i % 2 == 1) { f = 1; for (int x = i; x > 0; x--) { f = f * x; } up = up + 2; res = up / f; sum = sum + res; } } Console.WriteLine("\n\t\tSum : {0}\n", sum); Consol...

Program to print sum of factorial of Odd series in C#

C# Program to print sum of factorial of Odd series Program Statement: Write a program to display the sum of the following series i.e. sum of the factorial of odd series 1! + 3! + 5! + 7! + 9! + . . . + n! Solution: static void Main(string[] args) { int i, j, f,last, sum = 0; Console.WriteLine("Enter Last value:"); last = Convert.ToInt32(Console.ReadLine()); i = 1; while (i <= last) { f = 1; j = i; while (j >= 1) { f = f * j; j--; } sum = sum + f; Console.WriteLine("factorial of " +i+"="+f); i = i + 2; } Console.WriteLine("sum of all factorial = " + sum); Console.ReadLine(); }

program to print sum of series in C# using loops

C# program to print sum of series Program Statement: Write a program to display the sum of the following series using loop . 1*x + 2*x2 + 3*x3 + 4*x4 + 5*x5 + … + n*xn Solution: static void Main(string[] args) { int j, n = 1, x, lastn, sum = 0, prod = 1; Console.WriteLine("Enter last digit:"); lastn=Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter value of x:"); x = Convert.ToInt32(Console.ReadLine()); for (j = 1; j <= lastn; j++) { n = n * x; prod = n * j; sum = sum + prod; } Console.WriteLine("Sum of Series 1*x + 2*x2 + 3*x3 + 4*x4 + 5*x5 + … + n*xn when n=: " + n +" and x= "+ x+ "sum= "+ sum); Console.ReadLine(); }

C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number Program Statement: Write a program to display the sum of the following series i.e. sum of the factorial of odd series multiply with x where power of x is square of corresponding number. X1*1! + X9*3! + X25*5! + X49*7! + X81*9! + . . . + Xn2*n! Solution: class _power { long n, f, x, sum = 0; public long power(long a, long b) { long res = 1; for (int i = 1; i <= b; i++) res = res * a; return res; } public void cal() { Console.WriteLine("\n\t\tSeries X^1*1! + X^9*3 +...+X^n2*n! \n"); Console.Write("\n\t\tEnter value of x : "); x = Convert.ToInt32(Console.ReadLine()); Console.Write("\n\t\tEnter ending point : "); n = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i <= n; ...

C# program to print Factorial of all Prime numbers in csharp

C# program to print Factorial of all Prime numbers Program Statement: Write a program using loop which takes one value n from user and show the factorial of all prime numbers which are less then n. e.g. if n = 10 then program will print the factorial of 2,3,5,7. Solution: public class fop { int x, a, b, p, fac=1; public void fact() { Console.WriteLine("\n\t\tShow factorial of primes less than n\n"); Console.Write("\n\t\tEnter ending point : "); x = Convert.ToInt32(Console.ReadLine()); for (a = 2; a < x; a++) { p = 1; for (b = 2; b < a; b++) { if (a % b == 0) { p = 0; } } if (p == 1) { fac = 1; for (int c = 1; c <= a; c++) { fac = fac * c;} Console.Write(...

C# Program to print Rectangle $

C# Program to print Rectangle $ Program Statement: Write a program using for loop which prints the following output on the screen. $$$$$$$$$$$ $                $ $                $ $                $ $$$$$$$$$$$ Solution: static void Main(string[] args) { for (int i = 1; i <= 11; i++) Console.Write("$"); Console.WriteLine(); Console.WriteLine(); for (int i = 1; i <= 3; i++) Console.WriteLine("$ $\n"); for (int i = 1; i <= 11; i++) Console.Write("$"); Console.ReadLine(); }

Program to Print Armstrong numbers in C#

C# Program to Print out all Armstrong numbers between 1 and 500 Program Statement: Write a program to print out all Armstrong numbers between 1 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number. For example, 153 = (1 * 1 * 1) + (5 * 5 * 5) + (3 * 3 * 3) Solution: public class armstrong { int x, a, res, sum = 0; public void find() { Console.WriteLine("\nAll Armstrong Numbers between 1 and 500 \n"); for (x = 1; x <= 500; x++) { a = x; while (a != 0) { res = a % 10; a = a / 10; sum = sum + (res * res * res); } if (x == sum) Console.Write(" {0} ", x); sum = 0; } Console.WriteLine("\n"); } }

Is Running A Gaming Blog A Waste Of Time - Is It So?

Gambar
Hello folks!.. Today i have jumped in with a very exciting discussion about “ Is Running a Gaming Blog Really a Waste of Time ". Have you wondered to launch a gaming blog where you can provide free games and software’s ? Have you ever thought to earn with gaming niche blogs?. Well we will discuss about this very interesting and hot discussion. Running a gaming blog where you can provide free games and software’s is really an easy job in blogging compared to others, yet there are some undetermined things of which we will have to take care. I have seen a hundred of gaming blogs; moreover they are earning a handsome amount. Though not many of us will successful in launching a gaming blog. Let’s get in deep by understanding each fact separately. Read out them carefully so as to build a successful blog and start earning a good avenue. 1//  What Facts Should Be Understood Before Getting Started. If truth be told, Google doesn't like blogs providing free and cracked games and softwar...

C# Program to Print different Shapes | Triangle | half triangle

C# Program to Print different Shapes Program Statement: Write a program using for loop which prints the following output on the screen. * *** ***** ******* ********* *********** Solution: static void Main(string[] args) { for (int i = 0; i <= 10; i=i+2) { for (int j = 0; j <= i; j++) { Console.Write("*"); } Console.WriteLine(); } Console.ReadLine(); }

C# Program to Print shapes diamond | half diamond

C# Program to Print shapes Program Statement: Write a program using for loop which prints the following output on the screen. * ** *** **** *** ** * Solution: static void Main(string[] args) { for (int i = 0; i <= 3; i++) { for (int j = 0; j <= i; j++) { Console.Write("*"); } Console.WriteLine(); } for (int i = 3; i >0; i--) { for (int j = 0; j <= i-1; j++) { Console.Write("*"); } Console.WriteLine(); } Console.ReadLine();}

C# Program to check entered value is character, integer or special symbol

C# Program to check entered value is character, integer or special symbol Program Statement: Write a program which takes one value from user and check whether the entered value is character, integer or special symbol. Solution: static void Main(string[] args) { char value; int a; Console.WriteLine("Enter value to check Character, integer or special symbols "); value = Convert.ToChar(Console.ReadLine()); a=(int)value; if (a >= 65 && a <= 90 || a >= 97 && a <= 122) Console.WriteLine("Entered Value is Character"); else if(a>=48 && a<=57) Console.WriteLine("Entered Value is Integer"); else if(a>=0 && a<=47 || a>=58&&a<=64 || a>=91&&a<=96 || a>=123&&a<=127) Console.WriteLine("Entered Value is Special Symbols...

C# Program to check number is prime or composite

C# Program to check entered number is prime or composite  Program Statement: Write a program that takes an integer as an input from user and prints if it is a prime or composite number. Solution: static void Main(string[] args) { int num, i; Console.WriteLine("Enter the number to check number is prime or composite"); num=Convert.ToInt32(Console.ReadLine()); i = 2; while (i <= num - 1) { if (num % i == 0) { Console.WriteLine("composite number: "+num); break; } i++; } if (i == num) Console.WriteLine("prime number: " + num); Console.ReadLine(); }

C# Program to Print Fibonacci series

C# Program to Print Fibonacci series Program Statement: Write a program which prints the Fibonacci series using loop. 1 1 2 3 5 8 13 21 34 … Solution : public class _fib { int f = 0, s = 1, n, fib = 0; public void _show() { Console.WriteLine("\n\t\tPrint fibonacci series 0 1 1 2 3 5 8 13 ...\n\n"); Console.Write("\n\t\tEnter range of terms of fibonacci series : "); n = Convert.ToInt32(Console.ReadLine()); Console.Write("\n\t\tFirst {0} terms are : ", n); for (int x = 0; x < n; x++) { if (x <= 1) { fib = x; } else { fib = f + s; f = s; s = fib; } Console.Write("{0} ", fib); } Console.WriteLine("\n"); } }

C# Program to Print ASCII Values Using do-while Loop

C# Program to Print ASCII Values Using do-while Loop Program Statement: Write a program to print all the ASCII values and their equivalent characters using a do-while loop. The ASCII values vary from 10 to 255. Solution: static void Main(string[] args) { int i = 0; Console.WriteLine("ASCII character"); do { Console.WriteLine(i+" "+(char)i); i++; } while (i <= 255); Console.ReadLine(); }

C# Program to count total characters entered by users

C# Program to Print Entering Characters from users and then Count Total entering characters  Program Statement: Write a program which takes characters from user until user press ENTER and then program will show the number of words with length greater than or equal to 5. Solution: public class length { int count1 = 0, count2 = 0; public void check() { Console.Write("\n\t\tEnter string : "); string ch = Console.ReadLine(); for (int x = 0; x < ch.Length; x++) { if (ch[x] == ' ') { count1++; if (x >= 5) { count2++; } } } Console.WriteLine("\n\t\tNumber of words with length greater than or equal to 5 : {0}", count2); Console.WriteLine(); } }

Professional C# 2008

Gambar
Professional C# 2008  If we were to describe the C# language and its associated environment, the .NET Framework, as the most important new technology for developers for many years, we would not be exaggerating. .NET is designed to provide a new environment within which you can develop almost any application to run on Windows, whereas C# is a new programming language that has been designed specifically to work with .NET. This Book Wrox Professional C# 2008 is best for learning C# and below its Content list. Chapter 1: .NET Architecture Chapter 2: C# Basics Chapter 3: Objects and Types Chapter 4: Inheritance Chapter 5: Arrays Chapter 6: Operators and Casts Chapter 7: Delegates and Events Chapter 8: Strings and Regular Expressions Chapter 9: Generics Chapter 10: Collections Chapter 11: Language Integrated Query Chapter 12: Memory Management and Pointers Chapter 13: Reflection Chapter 14: Errors and Exceptions Chapter 15: Visual Studio 2008 Chapter 16: Deployment Chapter 17: As...

The British classification marking STRAP

Gambar
(Updated: November 26, 2014) Most of the documents leaked by Edward Snowden are from the American signals intelligence agency NSA , but there are also quite a number from their British counterpart GCHQ . Documents from both countries are classified as TOP SECRET and often have additional markings to further restrict their dissemination. Where on American documents we see markings like COMINT (Communications Intelligence) and NOFORN (No Foreign Nationals), the British have the mysterious term STRAP followed by a number. Information about American classification and dissemination markings can rather easily be found on the internet (see also The US classification system on this weblog), but there are hardly any details about the British classification system. But luckily, there's one source available which describes STRAP and other British classification practices in detail: the extensive Defence Manual of Security from 2001. Chapter 17 (page 1131-1135) of Volume 1 gives an overview...

How to get Whatsapp free for 10 years.

Gambar
How to get Whats app free for 10 years. As we Know that over 20 million people registered on  whats app  and the growth is increasing day by day with the passage of time.Whats app is one of the most popular messenger in the world because of its key features and reliability. But the main problem is that how to get whats app premium for free.So here is the trick for you to get free whats app for 10 years. Gadgets you needed : A. Iphone / Ipad   B. Your own Android phone Also Read:How to get verify your payza account for all countries. How to extend your whatsapp membership: 1. Register your Android WhatsApp phone number on WhatsApp for iPhone (doesn't need to change the sim card, just register the number only). 2. Enter 3 digit SMS code sent to your sim card and enter it on WhatsApp for iPhone. 3. Re install whatsapp for Android , then register your number that already registered in iPhone and you will get 10 years license. Feel free to share your experience...

Its Pros and Disadvantages Android OS

Gambar
Android The use of smart phone operating system Android either 2.2, Windows Phone 7, Symbian 3, iOS 4, BlackBerry 6 today it could not be stopped, with its advanced features will increasingly make users feel more pampered so would facilitate the different activities such as listening to music, watch videos, check email, chat, browsing, facebook or twitter and other virtual activities. Now because of the increasing number of emerging brands and types of smart phones, the following comparison of Advantages and Disadvantages on several types of smartphones using the Android 2.2 operating system, Windows Phone 7, Symbian 3, iOS 4, BlackBerry 6. Might be able to help sort smartphones choose what is appropriate and able to meet your needs. Pros : Android relatively flexible system. Users can combine Apps, Folders, and other sam Widgets and download one other interfaces on the Android market. Info bar it useful for the user, for example to determine the application (app) enabled. The browser ...

Power Pocket - Charge a Cell Phone with a Hot Body

Gambar
power pocket Powerbank with the human body, Berkshire reported that the community will be present in the latest technology so that you can make your cell phone battery charge by using human body heat which is then transferred into electricity waterwheel. This was disclosed by one of the mobile network operators in the UK, namely Vodafone. Vodafone revealed this month in mid-June 2013, that the technology is called the Power Pocket . The technology that makes the human body heat into electrical energy changes with technology called thermocouples. Is it? Thermocouples are shaped pair of thermoelectric materials that are so small and flexible. These thermocouples serves to capture the heat of the human body. Thermocouples are then printed and attached to your shirt or pants pockets. Professor of electronic systems at the University of Southampton is named Stephen Beeby stated that "One side of the bag to the other side of the cold and heat. When your body produces heat through the b...

Uninformed Searching Algorithms in Artificial Intelligence || how to apply Uninformed Searching Algorithms

Gambar
Uninformed Searching Algorithms in Artificial Intelligence Searching: Man has ability to find things and best solutions for satisfying own desires but one thing which we never realized and that is our searching power to find anything which is most useful and helpful for us. Whenever we face any problem we do search for best solution. As when we search we got lot of options to solve our problems but we select best one and most of the people says the actual problem arise when we have lot of options and select best one but in Artificial Intelligence Different Searching Algorithms help us to select best choice from many and AI major use in Searching Algorithms. The main theme of this assignment also based on Searching Algorithms of AI. There are four major characteristics to analyze Searching strategy on which base we can say our searching algorithm is best and we got our solution in most efficient manner. Below is the four major characteristics to analyze Searching strategy Completeness...