Posts

Showing posts from November 26, 2013

Java program for rational numbers

import java.util.Scanner; public class RationalNumbers {         public int getNumerator ()     {        return numerator;     }     public int getDenominator ()     {        return denominator;     }     public boolean IsEqual(RationalNumbers r1)     {         if(this.numerator == r1.numerator && denominator == r1.denominator)         {             return true;         }         return false;     }     public boolean IsNotEqual(RationalNumbers r1)     {         return !(this.IsEqual(r1));     }     public boolean IsGreater(RationalNumbers r1)     {         if(this.ToDouble() > r1.ToDouble())         {             return true;         }         return false;     }     public boolean IsGreaterEqual(RationalNumbers r1)     {         return !(this.IsLess(r1));     }     public boolean IsLessEqual(RationalNumbers r1)     {         return !(this.IsGreater(r1));     }     public boolean IsLess(RationalNumbers r1)     {         if(this.To

C++ Shapes program

#include<iostream> #include<sstream> #include<cstring> #include<string> #define PI 3.14 using namespace std; //POINT class Point2D { private: float x; float y; public: ~Point2D() { cout << "point destroyed (" << x << "," << y << ")" << endl; } //GETTERS float getX() {return x;} float getY() {return y;} //SETTERS void setX(float x1) {x=x1;} void setY(float y1) {y=y1;} void setPoint2D(float x1,float y1) { x=x1; y=y1; } //CONSTRUCTORS Point2D() { x=0.0f; y=0.0f; } Point2D(float x1,float y1) { x=x1; y=y1; } //TO STRING string toString() { string s; ostringstream oss; oss << "("; oss << getX(); oss << ", "; oss << getY(); oss << ")"; s = oss.str(); return s; } }; //COLOR

Death Note episode 01 Rebirth

Detective Conan – Kid the Phantom Thief Episode 1 English Sub

Unity 3d

Image
The free version of Unity for Windows. Includes publishing support for iOS, Android, Windows Store, Windows Phone, BlackBerry, desktop and Web, and a 30 day trial of Unity Pro (with Pro publishing for iOS, Android, Windows Store, Windows Phone and BlackBerry). DOWNLOAD

High resolution 3d wallpapers

Image