Java program to show Browser Information

This script does a great job of displaying information about your web browser including version, your computer’s platform, if Java is enabled, how many pages you’ve visited, and screen resolution. Take a look, it’s pretty cool. JavaScript...

C++ program to demonstrate Inheritance

This is a simple C++ Program to demonstrate Inheritance. Simpler methods in the classes have been changed to inline code to shorten the file considerably. In a practical programming situation, methods that are this short should be programmed inline since the actual code to return a simple value is shorter than the code required to send a message to a non-inline method.

C++ Program to demonstrate Function Name Overloading

This is a simple C++ Program to demonstrate Function Name Overloading. An example of function name overloading within a C++ class many_name is used in this program. The constructor is overloaded as well as one of the methods to illustrate what can be done in C++...

Capitalize the first letter

This is a very simple ASP function that will capitalise the first letter of the input string. Some time user do enters his/her name as with out capatalising first letter of the name. So this function can take care of whether a use enters name as “david” or...

Random number within a range

This is a small ASP function that will return a random number between two numbers. It will takes two numbers (maximum & minimum) numbers and generate a random number within that range. It will geenrate a random number every time the function is called. Quite...

TIC TAC TOE Game

This is an advance version of Tic Tac Toe computer game written in c programming language. The game runs in graphical mode of DOS prompt and users can play the game in graphical mode. The game has many options to choose from, like playing with computer, friend. While...

Paint in Dos

Anyone and Everyone is allowed to use this code freely without any conditions. I wrote most of this code as a part of a college assignment in my Computer Graphics Lab when I was in the 6th semester of Engineering. I am a student of R.V College of Engineering,...

C Program to print Fibonacci numbers

This C program prints out the first Fibonacci series of N numbers. In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci. The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, thus creating the sequence 0, 1, 1, 2, 3, 5, 8, etc. The standard form of writing Fibonacci series is:

C Calculator Program

This is a simple calculator written in C language and works under DOS Command prompt. The calculator performs all the basic arithmetic operations including addition, subtraction, trigonometric calculations, and many other functions. It can also calculate logarithms,...

Stack implementation with array

This java code basically implements stack functionality. It can Pop and Push an item in stack with the help of array. The item can only be an integer number and inernally the java program uses arrays to maintain items in stack. [code=’java’]...

Color Table

JavaScript helps you manipulate the background of the document. Either choose the color you want by its name, or create a unique color by using the “+” and “-” Red, Green, and Blue buttons. A really neat effect. JavaScript...

color Wheel

This JavaScript will change the background from one color to the next for each of the 10 colors then it starts the loop over again! There is also an On/Off button to let you start and stop the JavaScript. JavaScript...

Random Background

Get a random background color with the touch of a button. This script uses 15 pre-determined background colors and then randomly chooses one. This is a great effect if you know what background colors don’t interfere with the text on your page. Then, you can make...

Type a color

This script is another neat way to spice up your webpage with JavaScript. Visitors just type their favorite color in the box and click a button. The background is instantly changed to their favorite color! JavaScript...

Current date and time (long)

This is the somewhat longer way to put the current date and time on your page. It writes in a longer date and time format than the previous date and time script. The script is also longer…. JavaScript /******************************************************* *...

Days till date

This little JavaScript will take an event or date in the future and compare it to the current date, then display how many days until that date/event occurs. Pretty neat! Lots of uses… (Marriage countdown, till school’s out countdown, etc) JavaScript...

Five function calculator

Here is a really simple JavaScript calculator – with just 5 functions! (Add, subtract, multiply, divide, and power) This example can help you see how JavaScript evaluates math functions! Check it out! JavaScript...

Advanced Calculator

This is a very comprehensive JavaScript calculator. Although the source code can get quite confusing, it works. JavaScript /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a...

Airport Calculator

This useful JavaScript calculator will tell you the degrees, Nautical Miles, Statute Miles, and Kilometers between your originating and destination airports. It’s got a built-in database of over 150 of the most traveled airports! Very neat! I’ve given a...

Interest Calculator

Use JavaScript to find out just how much that new house or car is going to cost you each month. Enter values into the fields below to find out how much each monthly payment would be with the given number of payments, interest rate, and loan amount. JavaScript...