Thursday, August 22, 2013

Javascript Using radio buttons with onClick() Event

<html>
<script language="JavaScript">
function Oracle()
{
    document.a.display.value="Oracle";
}

function VB()
{
    document.a.display.value="Visual Basic";
}

function Java()
{
    document.a.display.value="Java";
}

function Clear()
{
    document.a.display.value="";
}
</script>
<head>
<title>Radio Button Click</title>
</head>
<body>
<center>

<form name = a align = center>
<font face=calibri>
<h1>Java Script Using radio buttons with onClick() Event</h1><br><br>
<input type=text name = display>
<br><br>
<input type=radio name=r1 value="Oracle" onclick="Oracle();">Oracle</input>
<input type=radio name=r1 onclick="VB();">Visual Basic</input>
<input type=radio name=r1 onclick="Java();">Java</input>
<br><br>
<input type=button value="Reset" onclick="Clear();">
</font>
</center>
</form>
</body>
</html>





Sunday, August 11, 2013

How to make a simple program with notepad...


""How to make a simple program with notepad""
Though Notepad is not an ideal text editor for programming, it has all the functions that allow it to be used for writing programs. It'll be hard to write thousands of lines of code and still keep everything straight given the lack of formatting features, but you can get started with simple code in a free program already on your PC.
Steps:
Step 1 : First open Notepad. It can be found in Acessories
Step 2 : Type the following code: @echo off
Step 3 : Type the following code: echo This is my first program.
Step 4 : Type the following code: pause
Step 6 : Go to the File menu, select Save As. For the file name type pp.bat
So Simple 

List Of Full Form of Domain Names Extensions


.com → commercial Internet sites.
.edu → educational sites .
.firm → for an Internet site for a business.
.gov → for a U.S. government site on the Internet.
.int → international institutions.
.mil → for a U.S. military site on the Internet.
.mobi → for mobile phones.
.nato → for NATO sites.
.net → for Internet administrative sites.
.nom → for a personal site on the Internet.
.org → for organizational Internet sites.
.store →for a retail business.
.web → for an Internet site that is about the World Wide Web.
.Us → united states
.uk united kindom

In 1998 - We have 8 extensions
In 2004 - We have 23 extensions
in 2013 - It will be 700+ new domain extensions released to the public. 

Tuesday, July 23, 2013

SPIRAL MODEL vs WATERFALL MODEL, AGILE MODEL vs SPIRAL MODEL, AGILE MODEL vs ITERATIVE MODEL



 SPIRAL MODEL AND WATERFALL MODEL

SPIRAL MODEL

WATERFALL MODEL


1] Spiral model is not suitable for small projects.

1] Waterfall model is suitable for small projects.
2] Better risk management.

2] High amount of risk and uncertainty.

3] Process is complex.

3] Easy to understand.
4] The process may go indefinitely.

4] Stages are clearly defined.
5] This model is suitable for long and ongoing projects.


5] This model is not suitable for long and ongoing projects.
6] Iterations are followed
6] Sequence is followed
7] Flexible with user requirements
7] Requirements once fixed cannot be modified
8] Refinements are easily possible
8] Refinements are not so easy
9] Phases  are repeated itself
9] Phases are processed and completed one at a time.




Tuesday, April 23, 2013

Virtual Destructor in C++

#include iostream.h
class Base
{
    public:
      Base(){ cout<<"Constructing Base";}
     
     // this is a destructor:
virtual ~Base(){ cout<<"Destroying Base";}
};

class Derive: public Base
{
        public:
        Derive(){ cout<<"Constructing Derive";}
       
        ~Derive(){ cout<<"Destroying Derive";}
 };

void main()
{
    Base *basePtr = new Derive();
        
        delete basePtr;
}

---------------------------------------------------------------------------------------

output

Constructing Base  
Constructing Derive 
Destroying Derive
Destroying Base

Wednesday, April 17, 2013

Friend Function Demo in C++


#include<iostream.h>
#include<conio.h>
class end;
class free
{
private:
int roll;
public:
void accept();
friend void friend_demo(free f,end e);
};

void free :: accept()
{
cout<<"Enter the Roll Number :"<<endl;
cin>>roll;
}


class end
{
private :
char name[20];
public :
void accept()
{
cout<<"Enter the Name "<<endl;
cin>>name;
}
friend void friend_demo(free f,end e);
};

void main()
{
clrscr();
free f;
end e;
f.accept();
e.accept();

friend_demo(f,e);

getch();
}

void friend_demo(free f,end e)
{
cout<<"Roll number is :"<<f.roll<<endl<<"Name is "<<e.name;
}

---------------------------------------------------------------------------------------


#include<iostream.h>
#include<conio.h>

class B;
class A
{
private:
int roll;
public:
void acc()
{
cout<<"Enter roll :";
cin>>roll;
}
friend void disp(A a,B b);

};
class B
{
private:
char name[10];
public:
void acc()
{
cout<<"Enter name :";
cin>>name;
}
friend void disp(A a,B b);
};

void disp(A a,B b)
{
cout<<"Name :"<<b.name<<endl;
cout<<"Roll :"<<a.roll;
}

void main()
{
clrscr();
A a;
B b;
a.acc();
b.acc();
disp(a,b);
getch();
}

Thursday, April 11, 2013

Friday, April 5, 2013

Barclays Technology Centre India

Barclays Technology Centre India
Barclays Technology Centre India (BTCI) is a fully owned subsidiary of Barclays Group with offices in Pune, Bangalore & Mumbai. We offer technology services to the Group world-wide, ranging from architecture, application design and development, packaged software implementation, testing, training and application support. Barclays Technology is rapidly expanding its term in India.

Technologies we work on:
Core Technologies: J2EE, .Net, C#, Cobol, CICS, VSAM, DB2, Oracle, Sybase, Informix

DW, CRM, Analystics: Ab Initio, Teradata, SAS, Informatica, Datastage, IBM BDW, Cognos, Trillium, Oracle, Siebel, IBM Websphere Customer Centre

Testing: Cards, Retail & Commercial Banking applications, Data Migration Testing, Datawarehouse testing, Performance Testing, Penetration Testing, SCM & Test Environment Management

Infrastructure: Unix, IBM AIX 4.x & 5.x, Sun Solaris 2.8+, HP-UX 11 & 11i, Linux & Shell Scripting, IBM Websphere MQ & MS Office, Suite Prince 2, ITIL, CMMI E2E

Infrastructure Designing: Unix, MS Windows, IBM Mainframe, Tandem, Middleware, Networks, Security, Systems Management, IBM E2E Design Methodology, Prince 2 and ITIL

Wednesday, February 27, 2013

Dynamic memory allocation with new and delete

There are many cases where it would be useful to be able to size or resize arrays while the program is being run. For example, we may want to use a string to hold someone’s name, but we do not know how long their name is until they enter it. Or we may want to read in a number of records from disk, but we don’t know in advance how many records there are. Or we may be creating a game, with a variable number of monsters chasing the player.
[http://efficientprograms.blogspot.in/]
If we have to declare the size of everything at compile time, the best we can do is try to make a guess the maximum number of variables we’ll need and hope that’s enough:
1
2
3
char szName[25]; // let's hope their name is less than 25 chars!
Record asRecordArray[500]; // let's hope there are less than 500 records!
Monster asMonsterArray[20]; // 20 monsters maximum
This is a poor solution for several reasons. First, it leads to wasted memory if the variables aren’t actually used. For example, if we allocate 25 chars for every name, but names on average are only 12 chars long, we’re allocating over twice what we really need! Second, it can lead to artificial limitations and/or buffer overflows. What happens when the user tries to read in 600 records from disk? Because we’ve only allocated 500 spaces, either we have to give the user an error, only read the first 500 records, or (in the worst case where we don’t handle this case at all), we overflow the record buffer and our program crashes.
Fortunately, these problems are easily solved via dynamic memory allocation. Dynamic memory allocation allows us to allocate memory of whatever size we want when we need it.

List of MBA colleges in Pune – Business Schools in Pune


  1. Symbiosis Institute of Business Management Pune (SIBM) – 411042
  2. MITCON Institute of Management (MIMA) Shivajinagar, Pune, 411005
  3. Suryadatta Education Foundation Vijayanagar Colony, Pune, 411030
  4. Data Systems Research foundation (DSRF) Behind IT Towers, Zensar, Pune
  5. Balaji Institute of Modern Management, Pune – 411 033
  6. Audyogik Shikshan Mandal’s Institute of Business Management & Research, Pune – 411019
  7. The Indian Institute of Planning & Management(IIPM) Deccan Gymkhana, Pune, 411004
  8. International Institute of Information Technology P-14, Pune Infotech Park, Hinjawadi, Pune, 57
  9. Indian Institute of Modern Management (IIMM) Yerawada, Pune, 411006
  10. Indian Institute of Management Training (IIMT) Bhosari, Pune, 411026
  11. Shree C. E. Society’s Indira Institute of Management, Pune – 411033
  12. Dr. D. Y. Patil Institute of Management & Researchi, Pimpri – 411018
  13. Dr. Vikhe Patil Foundation’s, Pravara Centre for Management Research & Development, Pune – 411016
  14. Institute of Science’s Institute of Business Management & Research, Pune – 411057
  15. Institute of Science’s Institute of Business Management & Research, Pune – 411057
  16. Poona District Education Association’s, Mahatma Phule Institute of Management & Computer Studies, Pune – 411028

Sunday, February 24, 2013

Difference between method overriding and overloading in C++


Overloading a function in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of the inherited class rewriting the virtual method of the base class.
a) In overloading, there is a relationship between methods available in the same class whereas in overriding, there is relationship between a superclass method and subclass method.
(b) Overloading does not block inheritance from the superclass whereas overriding blocks inheritance from the superclass.
(c) In overloading, separate methods share the same name whereas in overriding, subclass method replaces the superclass.
(d) Overloading must have different method signatures whereas overriding must have same signature.
Eg;
struct base {
   virtual void foo(); 
   void foo(int);      // overloads void foo()
};
struct derived : base {
   void foo();         // overrides void base::foo()
   void foo(int);      // overloads void derived::foo()
                       // unrelated to void::base(int)
};
int main() {
   derived d;
   base & b = d;
   b.foo( 5 );   // calls void base::foo(int)
   b.foo();      // calls the final overrider for void base::foo()
                 // in this particular case void derived::foo()
   d.foo( 5 );   // calls void derived::foo(int)
}

Saturday, February 23, 2013

SQL: LIKE Condition


The SQL LIKE condition allows you to use wildcards in the SQL WHERE clause of an SQL statement. This allows you to perform pattern matching. The SQL LIKE condition can be used in any valid SQL statement - SQL SELECT statementSQL INSERT statementSQL UPDATE statement, or SQL DELETE statement.
The patterns that you can choose from are:
  • % allows you to match any string of any length (including zero length)
  • _ allows you to match on a single character

SQL LIKE Condition - Using % wildcard example

Let's explain how the % wildcard works in the SQL LIKE condition. We are going to try to find all of the suppliers whose name begins with 'Hew'.
SELECT * FROM suppliers
WHERE supplier_name like 'Hew%';
You can also using the % wildcard multiple times within the same string. For example,
SELECT * FROM suppliers
WHERE supplier_name like '%bob%';
In this SQL LIKE condition example, we are looking for all suppliers whose name contains the characters 'bob'.
You could also use the SQL LIKE condition to find suppliers whose name does not start with 'T'.
For example:
SELECT * FROM suppliers
WHERE supplier_name not like 'T%';
By placing the not keyword in front of the SQL LIKE condition, you are able to retrieve all suppliers whose name does not start with 'T'.

Normalization of Database.


Description of Normalization

Normalization is the process of organizing data in a database. This includes creating tables and establishing relationships between those tables according to rules designed both to protect the data and to make the database more flexible by eliminating redundancy and inconsistent dependency. 

Redundant data wastes disk space and creates maintenance problems. If data that exists in more than one place must be changed, the data must be changed in exactly the same way in all locations. A customer address change is much easier to implement if that data is stored only in the Customers table and nowhere else in the database. 

What is an "inconsistent dependency"? While it is intuitive for a user to look in the Customers table for the address of a particular customer, it may not make sense to look there for the salary of the employee who calls on that customer. The employee's salary is related to, or dependent on, the employee and thus should be moved to the Employees table. Inconsistent dependencies can make data difficult to access because the path to find the data may be missing or broken. 

There are a few rules for database normalization. Each rule is called a "normal form." If the first rule is observed, the database is said to be in "first normal form." If the first three rules are observed, the database is considered to be in "third normal form." Although other levels of normalization are possible, third normal form is considered the highest level necessary for most applications. 

As with many formal rules and specifications, real world scenarios do not always allow for perfect compliance. In general, normalization requires additional tables and some customers find this cumbersome. If you decide to violate one of the first three rules of normalization, make sure that your application anticipates any problems that could occur, such as redundant data and inconsistent dependencies. 

Thursday, February 21, 2013

Program to Convert timing from 12 - 24 hours and vice versa in CPP


#include<iostream.h>
#include<conio.h>
int flag=0;

class tw4;
class tw2
{
private:
int hrs,secs,mins;
public:
tw2(int hr,int min,int sec)
{
hrs=hr;
mins=min;
secs=sec;
}
friend void conv(tw2 t1,tw4 t2);

};
class tw4
{
private:
int hrs,secs,mins;
public:
tw4(int hr,int min,int sec)
{
hrs=hr;
mins=min;
secs=sec;
}
friend void conv(tw2 t1,tw4 t2);

};
void conv(tw2 t1,tw4 t2)
{
if(t1.hrs<12)
{
if(flag==1)
{
goto print;
}
t1.hrs=t1.hrs+12;

print:
cout<<"Convertes time is > "<<t1.hrs<<":"<<t1.mins<<":"<<t1.secs;
}
else
{
t2.hrs=t2.hrs-12;
cout<<"Convertes time is > "<<t2.hrs<<":"<<t2.mins<<":"<<t2.secs;
}
}

void main()
{

int sec=0,min=0,hr=0;
clrscr();
cout<<"Enter the Time in format (hrs:mins:sec)";
cin>>hr>>min>>sec;
cout<<"1.am\n2.pm";
cin>>flag;

tw2 t1(hr,min,sec);
tw4 t2(hr,min,sec);
conv(t1,t2);
getch();

}

//OUTPUT



Wednesday, February 13, 2013

Project on ATM machine working in CPP

/*program of ATM machine working....*/

#include<string.h>
#include<iostream.h>
#include<conio.h>
class Atm               //classname......//
{
int choice,i;
float b,c;
char str[7];
public:
void get();              //function declaration.....//
};
void Atm::get()
{
cout<<"\tEnter Your Password: ";         //ATM  password(ABCDE)...//
for(i=0;i<=4;i++)
{
str[i]=getch();
cout<<"*";
}
str[i]='\0';
if(strcmp(str,"ABCDE")==0)
{
float a=30000;                         //ATM's front page....//
cout<<endl<<endl<<"\t** WELCOME TO SBI **"<<endl<<endl;
cout<<" \tHello Mr.Chinmay Mahajan\t"<<endl<<endl<<endl;
cout<<"\t1.Information.\t2.Balance enquiry.";
cout<<endl<<endl<<"\t3.Withdrawal\t4.Quit";
cout<<endl<<endl<<endl<<"\t-->please select your choice:";
cin>>choice;
switch(choice)
{
case 1:
cout<<endl<<endl<<"\tName-Chinmay Mahajan"<<endl<<endl;
cout<<"\t Account no.-0181cs081059"<<endl<<endl<<"\tBranch name-Bhopal";
cout<<endl<<endl<<"\tYour main balance is:"<<a<<endl<<endl<<endl<<"\t\tThank U";
break;
case 2:
cout<<endl<<"\tYour balance is: "<<a<<endl<<endl<<endl<<"\t  Thank U  ";
break;
case 3:
cout<<endl<<"\t your balance is: "<<a<<endl;
cout<<endl<<"\t Please enter your amount:";
cin>>b;
if(b>a)
{
cout<<endl<<endl<<"\tyou have not sufficient balance";
goto out;
}
else
{
c=a-b;
cout<<endl<<endl<<"\tyou have withdrawn Rs. "<<b;
cout<<endl<<endl<<"\tYour balance now:"<<c<<endl<<endl<<"\tThank U";
break;
}
out:
default:
cout<<endl<<endl<<"\tThank U";
}
}
else
{
cout<<endl<<endl<<"\tPassword incorrect";
cout<<endl<<endl<<"\tThank U";
 }
}
void main()
{
clrscr();
Atm A;
A.get();
getch();
}