Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts
Saturday, December 31, 2016
Top 5 Websites To Compile & Run Programs Online || Online Compilers
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 best online compiler as well as debugger to debug programs.Just you need to paste source code and click on "RUN". You can make your code private as well as public to share with others. This online compile support more than 40 programming languages like JAVA, Go, Bash,Assembler,Perl 6,SQ L etc.You can choose any language in which you want to run your program.3. compilr.com
Compilr is online editor and sand box to write your code.This online compiler is suitable with all browsers like Firefox , Chrome mobile devices and tablet.This compiler is available in 14 different themes. To start programming you have to to do free signup.4. compileonline.com
This is another best online compiler to write ,compile and run a program. This compiler has extra features like web technologies (j-query,vi Editor,Live script,HTML etc) text formatting (Tex,MathML, ASCII) and support more than 50 programming languages.5. onlinecompiler.net
This is limited online compiler just support 6 programming languages like C,C++, JAVA,BASIC, PASCAL and FORTRAN. This allows you to save your source code.This compiler is compatible with Window and Linux operating systems.
Labels:
compiler,
programming
Thursday, December 29, 2016
Top 5 Biggest and Popular Programming Contests
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 website links so more info you can get by visiting these sites.
1. Google Code Jam
If we are talking about Programming Competition then how’s it possible Google name not included So Google is on Top in the list of Top 5 Biggest Programming Contests. Google began this Programming Contests in 2003 with Google Code Jam name. It is an international programming competition and its organized in order to identify top engineering talent for potential employment at Google. Google Code Jam consists of a set of algorithmic problems which participant must be solved in a given amount of time. In this competition not any single programming language specified so the competitors can use any programming language and development environment to obtain their best and optimal solutions.
ACM-ICPC or just ICPC stands for International Collegiate Programming Contest which is sponsored by IBM. This annual programming contest among the universities of the world and there best student participate.
One of the oldest programming competition is ICFP and it is an international programming competition. ICFP programming contest held annually around June or July since 1998. Its results announced at the International Conference on Functional Programming. Teams size depend on competitors and any they can also used any programming language. The most important about ICFP programming competition is no entry fee and Participants have 72 hours to complete then submit their entry over the Internet.
Without included Microsoft in list of Top 5 biggest programming competition would never complete. Imagine Cup is an annual programming contest that is sponsored and hosted by Microsoft Corp. This competition brings young technologists over the Globe to help resolve some of the world's toughest challenges. This programming competition comprises five major technology competitions which including Software Design, and four other challenges that also annually updated.
One of the most amazing and best international programming competition is Internet Problem Solving Contest. This contest held as online programming competition for teams of up to three people. This contest conducted annually May since 1999. This programming contest is organized by the students and faculty members of Mathematics, Physics and Informatics of Comenius University in Bratislava, Slovakia. This competition also consists of a set of algorithmic problems which must be solved in a specific amount of time.
Labels:
Information,
programming
Wednesday, December 28, 2016
C# Program to Print Triangles
C# Program to Print Triangles
Program Statement:
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:
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 = 2; c < y; c++)
Console.Write(" ");
for (a = o; a >= 65; a--)
Console.Write((char)a);
Console.WriteLine();
n--;
o--;
y = y + 2;
}
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
Saturday, December 24, 2016
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");
else
Console.WriteLine("Invlaid input :(");
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
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();
}
Labels:
Csharp,
programming,
programs
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");
}
}
Labels:
Csharp,
programming,
programs
Professional C# 2008
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: Assemblies
Chapter 18: Tracing and Events
Chapter 19: Threading and Synchronization
Chapter 20: Security
Chapter 21: Localization
Chapter 22: Transactions
Chapter 23: Windows Services
Chapter 24: Interoperability
Chapter 25: Manipulating Files and the Registry
Chapter 26: Data Access
Chapter 27: LINQ to SQL
Chapter 28: Manipulating XML
Chapter 29: LINQ to XML
Chapter 30: .NET Programming with SQL Server
Chapter 31: Windows Forms
Chapter 32: Data Binding
Chapter 33: Graphics with GDI+
Chapter 34: Windows Presentation Foundation
Chapter 35: Advanced WPF
Chapter 36: Add-Ins
Chapter 37: ASP.NET Pages
Chapter 38: ASP.NET Development
Chapter 39: ASP.NET AJAX
Chapter 40: Visual Studio Tools for Office
Chapter 41: Accessing the Internet
Chapter 42: Windows Communication Foundation
Chapter 43: Windows Workflow Foundation
Chapter 44: Enterprise Services
Chapter 45: Message Queuing
Chapter 46: Directory Services
Chapter 47: Peer-to-Peer Networking
Chapter 48: Syndication
Labels:
Books,
programming
Wednesday, December 7, 2016
C# Program to Print ASCII values and characters using a while loop
C# Program to Print ASCII values and their equivalent characters using a while loop
Problem Statement:
Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255.
Solution:
static void Main(string[] args)
{
int i=0;
Console.WriteLine("ASCII Char");
while (i <= 255)
{
Console.WriteLine(i+" "+(char)i);
i++;
}
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
Monday, December 5, 2016
C# program to print nth iteration using loops
C# program to print 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 . . . nth iteration
Problem Statement:
Write a program using loop which prints the following output.
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 . . . nth iteration
Solution:
static void Main(string[] args)
{
int i, j, num;
Console.WriteLine("Enter value of num:");
num = Convert.ToInt32(Console.ReadLine());
for (i = 1; i <= num; i++)
{
for (j = 1; j <= i; j++)
Console.Write(i + " ");
}
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
Sunday, December 4, 2016
C# Simple Loop Program example to print characters
Simple Loop Problem to Print A B D H P
Problem Statement:
Write a program using for loop which prints the following output. (You have to find a pattern to print alphabetics in this order)
A B D H P
Solution:
static void Main(string[] args)
{
int i,j,ch=0,n;
Console.Write("A ");
for (i = 1; i <= 4; i++)
{
n = 1;
for (j = 1; j <= i; j++)
{
n = n * 2;
ch = 64 + n;
}
Console.Write((char)ch + " ");
}
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
Saturday, December 3, 2016
C# program to Check leap Year Using Conditional Statement
C# program to Check Year is leap or not Using Conditional Statement
Program Statement:
Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not.
Solution:
static void Main(string[] args)
{
int year;
Console.WriteLine("Enter Year");
year = Convert.ToInt32(Console.ReadLine());
Console.WriteLine( year % 4 == 0 ? "Entered year is leap" : "Not leap year");
Console.ReadLine();}
Labels:
Csharp,
programming,
programs
Friday, December 2, 2016
C# program to check Operators | Operators Program in C#
C# program to check entered value is arithmetic operator, logical operator, conditional operator, relational operator or something else
Program Statement:
Write a program using switch statement which takes one character value from user and check whether the entered value is arithmetic operator, logical operator, conditional operator, relational operator or something else.
Solution:
static void Main(string[] args)
{
char ch;
int a;
Console.WriteLine("Enter any Character:");
ch = Convert.ToChar(Console.ReadLine());
a=(int)ch;
switch (ch)
{
case '+':
case '-':
case '*':
case '/':
case '%':
Console.WriteLine("Entered Character is Arithmetic");
break;
case '&':
case '|':
case '!':
Console.WriteLine("Entered Character is Logical Operator");
break;
case '?':
case ':':
Console.WriteLine("Entered Character is Condational Operator");
break;
case '<':
case '>':
case '=':
Console.WriteLine("Entered Character is Relational Operator");
break;
default:
Console.WriteLine("Entered Character is something else not included i n list");
break;
}
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
Location:
Kitikmeot, Unorganized, NU, Canada
Thursday, December 1, 2016
C# program to prints an identity matrix using for loop
C# program which prints an identity matrix using for loop
Program statement:
Write a program which prints an identity matrix using for loop i.e. takes value n from user and show the identity table of size n * n.
Solution:
static void Main(string[] args)
{
int n,i,j;
Console.WriteLine("Enter value of n:");
n = Convert.ToInt32(Console.ReadLine());
int[,] arr=new int[n,n];
for (i = 0; i < n; i++)
{
for (j = 0; j < n; j++)
{
if (i == j)
arr[i, j] = 1;
else
arr[i, j] = 0;
Console.Write(arr[i, j]);
}
Console.WriteLine();
}
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
Location:
United States
Tuesday, November 29, 2016
C# Program to Perform daily life Measurement Conversion
Program to Perform daily life Measurement Conversion
Program statement:
Write a program using switch statement which takes one value from user and ask about type of conversion and then will perform conversion according to type of conversion.if user enters
I -> convert from inches to centimeters.
G -> convert from gallons to liters.
M -> convert from mile to kilometer.
P -> convert from pound to kilogram.
If user enters any other character then show a proper message.
Solution:
Program statement:
Write a program using switch statement which takes one value from user and ask about type of conversion and then will perform conversion according to type of conversion.if user enters
I -> convert from inches to centimeters.
G -> convert from gallons to liters.
M -> convert from mile to kilometer.
P -> convert from pound to kilogram.
If user enters any other character then show a proper message.
Solution:
public class con
{
int num; char ch;
float f;
public void coversion()
{
Console.Write("\n\t\tEnter a number to convert : ");
num = Convert.ToInt32(System.Console.ReadLine());
Console.WriteLine("\t\tI -> convert from inches to centimeters.");
Console.WriteLine("\t\tG -> convert from gallons to liters.");
Console.WriteLine("\t\tM -> convert from mile to kilometer.");
Console.WriteLine("\t\tP -> convert from pound to kilogram.");
Console.Write("\n\t\tSelect conversion you want to do: ");
ch = Convert.ToChar(System.Console.ReadLine());
switch (ch)
{
case 'I':
{
f = (float)num * (float)2.5400;
Console.WriteLine("\n\t\t{0} inches = {1} cm\n\n", num, f);
break;
}
case 'G':
{
char ch2;
Console.WriteLine("\t\tI=> imperial gallon");
Console.WriteLine("\t\tU=> US gallon");
Console.Write("\n\t\tWhich one you want to enter : ");
ch2 = Convert.ToChar(Console.ReadLine());
if (ch2 == 'I')
{
f = (float)num * (float)4.546;
Console.WriteLine("\n\t\t{0} imperial gallons = {1} litr es\n\n", num, f);
}
else if (ch2 == 'U')
{
f = (float)num * (float)3.785;
Console.WriteLine("\n\t\t{0} US gallons = {1} litres\n\n" , num, f);
}
else
{ Console.WriteLine("\t\tInvalid input!\n\n"); }
break;
}
case 'M':
{
f = (float)num * (float)1.609344;
Console.WriteLine("\n\t\t{0} miles = {1} Kilometers\n\n", num , f);
break;
}
case 'P':
{
f = (float)num / (float)2.2046;
Console.WriteLine("\n\t\t{0} lbs = {1} Kilograms\n\n", num, f );
break;
}
default:
{
Console.WriteLine("\n\t\tInvalid input please try again!\n\n" );
break;
}
}
}
}
Labels:
Csharp,
programming,
programs
C# Program to check character is capital, small, digit or special symbol
Program to take one character from user and determine whether the entered character is a capital letter, a small case letter, a digit or a special symbol
Program Statement:
Write a program which take one character from user and determine whether the character entered is a capital letter, a small case letter, a digit or a special symbol.
Solution:
Program Statement:
Write a program which take one character from user and determine whether the character entered is a capital letter, a small case letter, a digit or a special symbol.
Solution:
static void Main(string[] args)
{
char ch;
int a;
Console.WriteLine("Enter any Character:");
ch = Convert.ToChar(Console.ReadLine());
a= (int)ch;
if (a >= 65 && a <= 90)
Console.WriteLine("Entered Character is in Capital Letter");
else if(a>=97 && a<=122)
Console.WriteLine("Entered Character is in Low Letter");
else if(a>=48 && a<=57)
Console.WriteLine("Entered Character is a digit");
else
Console.WriteLine("Entered Character is a Special Symbol");
Console.ReadLine();
}
Labels:
Csharp,
programming,
programs
C# Program to determine whether a point lies inside the circle, on the circle or outside the circle
Program to determine whether a point lies inside the circle, on the circle or outside the circle
Write a program which takes coordinates (x, y) of a center of a circle and its radius from user, program will determine whether a point lies inside the circle, on the circle or outside the circle.
Solution:
Write a program which takes coordinates (x, y) of a center of a circle and its radius from user, program will determine whether a point lies inside the circle, on the circle or outside the circle.
Solution:
public class circle
{
double x, y, c_x, c_y, radius, dis, temp;
public double square_root(double t)
{
double lb = 0, ub = t, temp = 0; int count = 50;
while (count != 0)
{
temp = (lb + ub) / 2;
if (temp * temp == t)
{ return temp; }
else if (temp * temp > t)
{ ub = temp; }
else
{ lb = temp; }
count--;
}
return temp;
}
public void cal()
{
Console.Write("\n\t\tEnter center point X : ");
c_x = Convert.ToDouble(Console.ReadLine());
Console.Write("\t\tEnter center point Y : ");
c_y = Convert.ToDouble(Console.ReadLine());
Console.Write("\t\tEnter radius : ");
radius = Convert.ToDouble(Console.ReadLine());
Console.Write("\t\tEnter point X : ");
x = Convert.ToDouble(Console.ReadLine());
Console.Write("\t\tEnter Y : ");
y = Convert.ToDouble(Console.ReadLine());
temp = ((c_x - x) * (c_x - x)) + ((c_y - y) * (c_y - y));
if (temp < 0)
{ Console.WriteLine("\t\tError negative value!"); }
else
{ dis = square_root(temp); }
Console.WriteLine("\t\tDistance : {0}", dis);
if (dis == radius)
{ Console.WriteLine("\t\tGiven point lies on the circle.\n\n"); }
else if (dis > radius)
{ Console.WriteLine("\t\tGiven point lies outside the circle.\n\n"); }
else
{ Console.WriteLine("\t\tGiven point lies inside the circle.\n\n"); }
}
}
Labels:
Csharp,
programming,
programs
C# Program to check all the three points fall on one straight line or not
Program to check all the three points fall on one straight line or not
Program Statement:
Write a program which takes three points (x1, y1), (x2, y2) and (x3, y3) from user and program will check if all the three points fall on one straight line or not.
Solution:
Program Statement:
Write a program which takes three points (x1, y1), (x2, y2) and (x3, y3) from user and program will check if all the three points fall on one straight line or not.
Solution:
static void Main(string[] args)
{
double x1, x2, x3, y1, y2, y3, m1, m2;
Console.WriteLine("Enter value of x1");
x1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter value of x2");
x2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter value of x3");
x3 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter value of y1");
y1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter value of y2");
y2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter value of y3");
y3 = Convert.ToInt32(Console.ReadLine());
m1 = (x2 - x1) / (y2 - y1);
m2 = (x3 - x2) / (y3 - y2);
if (x2 - x1 == 0 || x3 - x2 == 0)
{ Console.WriteLine("\t\tInvalid input (Attempted to divide by zero)!");}
else
{
m1 = (y2 - y1) / (x2 - x1);
m2 = (y3 - y2) / (x3 - x2);
Console.WriteLine("\t\tSlope 1 = {0}", m1);
Console.WriteLine("\t\tSlope 2 = {0}", m2);
if (m1 == m2)
{ Console.WriteLine("\n\t\tSo Given point fall on one straight line.\ n\n"); }
else
{ Console.WriteLine("\n\t\tSo Given point does not fall on one straig ht line.\n\n"); }
}
}
Labels:
Csharp,
programming,
programs
Sunday, November 27, 2016
"Python For Software Designe" by Allen B Downey PDF Free Download
How to think like a Computer Scientist
Python for software design is free pdf written by Allen B Downey.Author of this book is professor of computer Science .He got Ph.d from UC Berkeley. Allen B Downey is also author of book “How to think like a Computer Scientist” which was published in 2001. ” Python for software design” in this book he introduce software design by using python programming language.He explained basic concept in well manner and comprehend way.This book include concepts,exercise and many programme for practice. Contents of this book are as follow.
Contents:
- The way of Program
- Variable,Expression and statement
- Function
- Case Study
- Conditionals and Recursion
- Fruitful Function
- Iteration
- Strings
- Word play
- List
- Dictionaries
- Tuples
- Data Structure Selection
- Download Link
Labels:
Books,
programming
Monday, August 8, 2016
Social Networking Site Full Project on ASP.NET Free Download
Social Networking Site Full Project on ASP.NET Free Download
Project Details:
This is social networking site project we named it "Friends".This project developed on ASP.NET .
In this project user can create his account by Sign Up process.
He can send request to other friends, he can send message to friends.User can also delete the send messages.
Also user can create a community page.
Labels:
programming,
projects
Tuesday, June 21, 2016
Program To Print Ascii Table in Assembly Language
Program To Print Ascii Table in Assembly Language
.MODEL SMALL
.STACK 100H
.DATA
PROMPT DB "The 256 ASCII Characters are ",0AH,"$"
nxtline DB 0AH,"$"
.CODE
start:
MOV AX, @DATA ; initialize DS
MOV DS, AX
LEA DX, PROMPT ; load and print PROMPT
MOV AH, 9h
INT 21H
MOV Cl, 0 ; initialize CL
MOV AH, 2 ; set output function
LP: ; loop label
Mov DL, CL
MOV AH ,2H ; print ASCII character
INT 21H
LEA DX, nxtline
MOV AH,9H
INT 21H
INC CL ; Increment CL
CMP CL , 255D
JNE LP ; jump to label LP if CL is 255
MOV AX,4C00H
INT 21H
END start
Tags: Program To Print Ascii Table in Assembly Language Assembly language program in assembly language printing ascii values in assembly language COAL coal program coal programming Ascii values Ascii Table in Assembly
Labels:
3rd Semster,
programming
Subscribe to:
Posts (Atom)




