Drawing Pad

A simple Drawing Pad on which the user can draw some lines and shaps by using the mouse. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors...

Java ChatWindow for two way Chatting

A ChatWindow supports two-way chatting between two users over the Internet. The constructor for a ChatWindow requires a connected Socket. Messages are sent and received through this socket. The window has a text-input box where the user can type messages. When the...

Form

A Java Form class extended from JFrame with few buttons. These buttons show message dialog box when some actions are performed on them. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is...

PostFix expression evaluator – Java

This program evaluates postfix expressions entered by the user. The expressions can use non-negative real nubmers and the operators +, -, *, /, and ^ (where ^ represents exponentiation). Numbers must begin with a digit. That is, you have to say 0.7 rather than just...

String Sorting

String Sorting demonstration. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of...

Java color chooser Appelt

A ColorChooserApplet shows six scroll bars that the user can manipulate to set the red, gree, blue, hue, brightness, and saturation components of a color. A color patch shows the selected color, and there are six labels that show the numerical values of all the...

JRadioButton Demonstration – Java

A little applet that demonstrates JRadionButton with a group of radio buttons that control the background color of a label. [code=’java’] /******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * *...

Stars Applet

Stars Applet that show some stars on the applet windows. Java /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the...

Testing of two components MirrorLabel – MirrorLabel

This applet tests two custom components, MirrorLabel and MirrorLabel . It also tests the validate() method. The user can click a button to change the text on the components in the applet. Clicking another button will validate the applet. This will cause components...

Color Selector

A custom component that lets the user select a color. The available colors are bright, saturated colors in a full range of hues. The possible colors are shown in a strip. The user clicks on this strip to select a color. The selected color is hilited with a white...

searching and sorting in C++

IN THIS PROJECT I HAVE INCLUDED ALL TYPES OF SEARCHING and SORTING. C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Derived Classes

program, the objects are instantiated from an?inherited class and the intent of this program? is to illustrate that there is nothing magic?about a derived class. C++ /******************************************************* * MYCPLUS Sample Code -...

Address Book

This graphic program can be used to store Personal infromation of people. C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Demonstration of inheritance in C++

Demonstration of inheritance in c++. This example contains the following files. VEHICLE.H VEHICLE.CPP ALLVEHIC.CPP CAR.H CAR.CPP TRANSPORT.CPP TRUCK.H TRUCK.CPP Vehicle.h is a basic class for a vehicle. Car, truck and allvehicle will be inherited from this base class....

The Standard C++ Library: IOStreams

You can do much more with the general I/O problem than just take standard I/O and turn it into a class.The iostreams classes are usually the first part of the C++ library that new C++ programmers learn to use. This chapter discusses how iostreams are an improvement...

Birthday Reminder

This graphics program reminds you of peoples’ birthdays. [code language=cpp]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is...

Miltiple Inheritance

The basic concept of multiple inheritance (MI) sounds simple enough: you create a new type by inheriting from more than one base class. The syntax is exactly what you’d expect, and as long as the inheritance diagrams are simple, MI can be simple as well. Or...

The Standard C++ Library: Generic algorithms

Algorithms are at the core of computing. To be able to write an algorithm once and for all to work with any type of sequence makes your programs both simpler and safer. The ability to customize algorithms at runtime has revolutionalized software development.The subset...

Number Conversions

This is another one of my numerical analysis university assignments. It is an extension of binary to decimal conversion code. The program converts a number in any base to a number in any other base. The user inputs the original number, the base it was written in and...