Monday, May 17, 2010

Online Banking System Algorithm in c++ programming Internet Bank Software Generate code in c++

To generate the code for the online ticket reservation system using rational rose.
PROCEDURE Generate Source code:
Step1:Design the use case >diagram under the use case view ,sequence ,class, collaboration,activity,state chart, diagram under the logical view, component diagram under the component view. Deployment diagram under the deployment view for the online ticket reservation system.
Step2:
Select the menu tool in that chooses the option, in that choose the tab notation and set the default language as ANCI C++ and click ok.
Step3:
Goto to the component view ,in that select anyone of the relevant component in the component diagram and right click the component and choose open specification and click the realize tab and assign the classes listed.
Step4:
Right the same component choose open specification and select general tab andset the language as and press apply.
Step5:
Select the same component in the browser window right click it, choose and click generate code. The directory window specifies the directory path where the header file and input files are to be stored and press ok.
Step6:
All the required files will be generated in the specified directory. If any change is done in the class diagram does the above steps again.
CLASS DIAGRAM : Online Banking System
 Online Banking System, Algorithm in c++ programming  Generate Sourcecode in c++ Account.cpp Source code in c++ programming algorithm
#include ”account.h”
//##ModelId=48C0C8E7031C
account::update acc()
{
}
//## ModelId=48C0C8F00203
account::check acc()
{
}
account.h source in c++ programming algorithm
#ifndef ACCOUNT_H_HEADER_INCLUDED_B73F6364
#define ACCOUNT_H_HEADER_INCLUDED_B73F6364
//##ModelId=48C0C8BB00FA
class account
{
public:
//##ModelId=48C0C8E7031C
Update acc();
//##ModelId=48C0C8F00203
check acc();
private:
//##ModelId=48C0C8C9036B
int accno;
//##ModelId=48C0C8CF037A
int bal;
//##ModelId=48C0C8D401F4
string cust name;
};
#end if /*ACCOUNT_H_HEADER_INCLUDED_B73F6364*/
bank.cpp in c++ programming algorithm
#include “bank.h”
//## ModelId=48C0C8900203
bank::providing loan()
{
}
//##ModelId=48C0C8980261
bank::update details()
{
}
//##ModelId=48C0C8A00157
bank::collect money()
{
}
//##ModelId=48C0C8A90251
bank::transaction()
{
}
bank.h Online Banking System
#ifndef BANK_H_HEADER_INCLUDED_B73F22D0
#define BANK_H_HEADER_INCLUDED_B73F22D0
//##ModelID=48C0C828001F
class bank
{
public:
//##ModelId=48C0C8900203
providing loan();
//##ModelId=48C0C8980261
update details();
//##ModelId=48C0C8A00157
collect money();
//##ModelId=48C0C8A90251
transaction();
private:
//##ModelId=48C0C834034B
string cust details;
//##ModelId=48C0C84C0232
string loan details();
//##ModelId=48C0C85D0167
string rules and regulation;
//##ModelId=48C0C86F000F
string trans.type;
//##ModelId=48C0C87B00DA
string trans.date;
//##ModelId=48C0C8840109
int trans.time;
};
#endif /*BANK_H_HEADER_INCLUDED_ B73F22D0*/
customer.cpp Internet Bank Software
#include “customer.h”
//##ModelId=48C0C80201C5
customer::create new acc()
{
}
//##ModelId=48C0C80A0242
Customer::deposit()
{
}
//##ModelId=48C0C80F02EE
customer::withdraw()
{
}
Thus the code can be generated for bank process by using rational rose as successfully. This code has been generating by use of use case diagram, Activity diagram, Component diagram, Collaboration and class diagram. Internet Bank Software

0 comments:

Flag counter

free counters