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 N 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...

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’]...

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...

JavaScript Periodic Table

The periodic table is a tabular arrangement of the chemical elements, ordered by their atomic number, electron configuration, and recurring chemical properties, whose adopted structure shows periodic trends. Besides a very organized Periodic Table, this script will...

Phone Bill

Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have to do is enter the amount per minute, and any initial amount, then click start when the call begins and see the total charge at any time!...

Browser Check

It’s often necessary to make a script only accessible to the newer browsers (that can support the script without error) and keep older browsers from trying to work with it. This script, as an added plus, is very short. Just Cut & Paste this script even if...

Born on date

In place of the boring ‘Last Updated’ script, you can use this script. It does everything and more – it gives the page title, the day the page was last updated, and if the page has been updated since the visitor’s last visit all in a cool...

Blinker

This script allow you to quickly blink the background. With a click of a button, the background changes from white to blue and back several times to return to white. JavaScript /******************************************************* * MYCPLUS Sample Code -...

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...