You are on page 1of 45

PROJECT WORK ON

CEMENT FACTORY MANEGMENT


SESSION: - 2010 BCA IV SEM
SUBMITTED IN PARTIAL FULFILLMENT DEGREE OF BACHELOR OF COMPUTER APPLICATIONS SUBMITTED TO Mr.MAHESH SHUKLA

GUIDED BY:
Mr. PANKAJ YADAV

SUBMITTED BY:

SOURABH SAHU

RAMESH SEN ASHISH KHARE RETESH GURU

This is to certify that the project report entitled CEMENT FACTORY MANAGEMANT SYSTEM software submitted to the Institute of computer management for the DEPARTMENT OF COMPUTER SCIENCE & APPLICATION project work carried out by Sourabh Sahu ,Ramesh Sen ,Ashish Khare & Retesh Guru.

Place: Sagar Head of Department / / MR. SHUKLA

Date: MAHESH

The object of a project assigned to us which is about a system named CEMENT FACTORY MANGEMENT which has been computerized . This software is developed embodies the function and command of C++ programming language. The advantage of this software is to handle the CEMENT FACTORY MANGEMENT in an easier and rapid manner. This work is original and conducted at G.I.M.S. Sagar this project has not been submitted in part or full time cement factory and other related worked are managed.

Name of Student
SOURABH SAHU RAMESH SEN AShISH KHARE RETESH GURU

We are extremely grateful to Mr. Pankaj yadev and all the staff member of our department for their valuable guidance throughout the tenure of this project. We extend our sincere thanks to all faculties in our department. We extended our sincere thanks to all staff of G.I.M.S sagar for giving us an opportunity to carry out the project work in their eateemed organization. We express our deep sense of regards of respected teachers, colleagues, friends and those who helped us directly and

indirectly who has contributed in numerous ways to the development of our project. We also acknowledge our thanks to (Head of the Department) that gave us moral support and a chance to be a part of software world in the very beginning of our career SOURABH SAHU

RAMESH SEN AShISH KHARE RETESH GURU

Aim of Project Need of Project Feasibility study Hardware requirement Operating system used Language used in c++ Data flowing diagrams(DFD)

The current cement factory management is performed manually. Therefore lot of problems is faced by the management. Operations are performed manually such as 1. 2. 3. Adding of new employee records Modify employee records Search employee records

4. 5. 6. 7.

Delete employee records cement stock management payment management transports management

All the above operations can be atomize it eliminate all the manual work.

What is a Feasibility Study?


As the name implies, a feasibility study is an analysis of the viability of an idea. The feasibility study focuses on helping answer the essential question of should we proceed with the proposed project idea? All activities of the study are directed toward helping answer this question.

Feasibility studies can be used in many ways but primarily focus on proposed business ventures. Farmers and others with a business idea should conduct a feasibility study to determine the viability of their idea before proceeding with the development of the business. Determining early-on that a business idea will not work saves time, money and heartache later. The conclusions of the feasibility study should outline in depth the various alternatives examined and the implications and strengths and weaknesses of each. The project leaders need to study the feasibility study and challenge its underlying assumeptions. This is the time to be skeptical.

Reasons to Do a Feasibility Study


Conducting a feasibility study is a good business practice. If you examine successful businesses, you will find that they did not go into a new business venture without first thoroughly examining all of the issues and assessing the probability of business success.

Below are other reasons to conduct a feasibility study. Gives focus to the project and outline alternatives Narrows business alternatives Surfaces new opportunities through the investiga- tive process Identifies reasons not to proceed Enhances the probability of success by addressing and mitigating factors early on that could affect the project Provides quality information for decision making Helps to increase investment in the company Provides documentation that the business venture was thoroughly investigated Helps in securing funding from lending institutions and other sources

The feasibility study is a critical step in the business assessment process. If properly conducted, it may be the best investment you ever made.

Types of Feasibility Studies (FS)


Technology and System Feasibility

This involves questions such as whether the technology needed for the system exists, how difficult it will be to build, and whether the firm has enough experience using that technology. The assessment is based on an outline design of system requirements in terms of Input, Processes, Output, Fields, Programs, and Procedures. This can be quantified in terms of volumes of data, trends, frequency of updating, etc in order to estimate if the new system will perform adequately or not
Resource Feasibility

This involves questions such as how much time is available to build the new system, when it can be built, whether it interferes with normal business operations, type and amount of resources required, dependencies, etc. Contingency and mitigation plans should also be stated here so

Cultural Feasibility

In this stage, the project's alternatives are evaluated for their impact on the local and general culture. For example, environmental factors need to be considered and this factors are to be well known. Further an enterprise's own culture can clash with the results of the project.
Operational feasibility

Operational feasibility is dependent upon the human resources available for the project. It also concern i self with whether or not the system will operate and work once it is implemented. Do the current work practices and procedures support a new system. Also social factors i.e. how the organizational changes will affect the working lives of those affected by the system..

Processor- 486

Hard disk- 20 GB RAM- 128 MB Keyboard- standard Mouse- standard OS-Window-98 or OS-DOS-6.2 Language- C++ object oriented language

Feature of windows:Windows allows you to open and run more then one program at a time .Each program runs in its own window, and you can simultaneously see more then one windows on the desktop .Managing these windows is handled by the program manager .You also use the program manager to setup programs and program groups so that you can run them by simply clicking on the respective icons. File management and disk management can be handled in a simple way through a windows program called the file manager . The file manager shows the directory structure and content in a way that is a simple and easy to understand .file operation such as copying, moving, deleting and renaming are easy to accomplish disk function can also be handled through the file manager.

All printer related work is handled in a uniform way in windows you need to setup your printers just once with the required options and parameters all the program running on windows will use these setting print jobs from various program windows are handled through a common facilities called the printer manager. The environment is setup /modified using control panel program where you can decide on your fonts , mouse characteristic, and desktop look and feel . A powerful feature of window is its ability to copy information across program .This feature is in built as board program built to run on windows provide the user with command to use these feature. Windows application program have similar approaches to the users interface and toward the user of feature such as clip board and printing . A window user that is familiar with the working of one program on window is there fore able to quickly and intuitively learn to use a new program . This standardization goes a long way in marketing life easier for the user saving on both time and effort.

C++ is an object oriented programming language.it was developed by Bjarne Stroustrup at AT & T Bell loboratories in murray Hill, New jersey ,USA,in the early 1980s stroustrup,an admirer of simula67

and a strong supporter of C++wanted to combine the best of both languages that could supports object oriented programming feature and still retain the power of elegance of c .the result was c+ +. Therefore ,c++ is an extension of c with a major addition to the original c language , stroustrup initially called a new language C++ with classes. However later in 1983,the name was changed to c++ .the idea of c++ comes form the C++ increment operator ++ thereby suggesting that c++ is an augmented version of c. During the early 1990s the language underwent a number of improvement and changes. In November 1997 the ANSI/SO standards committee standardized these changes and added several new features to the language specifications. C++ is superset of C most of what we already know about C applies to c++ also therefore , almost all C programs .however ,there are a few minor difference that will prevent a C program

to under C++ compiler .we shall see there difference later as and when they are encountered. The most important facilities that C++ add on to a C are classes, inheritance function overloading and operator overloading . these features enable creating of abstract data creating of abstract data types , inherit properties form existing data types and supports polymorphism ,thereby making c++ a truly object oriented language . The object oriented features in C++ allow programs to build large programs with clarity ,extensibility and case of maintenance ,incorporating the sprit andefficiency of C.the addition of new features has transformed C form a language that currently facilities topdown, structured design ,to one that provides bottom up, object oriented design.

C++ language has several powerful features. Some features are as following:

.C++ language popular powerful and a


widely used language because it several built in function overloading , operator overloading,

object, class, inheritance & polymorphism which make program easy and effective. A program written in C++ language easy to understand and modified than both language such as machine and assembly language.

The most powerful features of C++ language are its capability to developed system software. C++ language has capability for writing the system programming such as operating system device driver, translator utility program etc . the shell scripting of UNIX Operating System is written using C++ language .

. .

The program written in C++ language much efficient and fast then other program like basic and Pascal because it has Varity calyxes variable and operator. C++ is highly portable this means the C+ + program written for are computer can are another computer with little are without

modification because C++ is machine independent language.

.C++ language provides a suitable language


structure . Programming language can divided into a number of function module or block make a completed program this module structure make program debugging testing and maintain so easy.

.C++ is the case sensitive language almost


all program is written in lower case latter means in C++ a same word in upper case and in lower case tested different.

INCLUDE FILE CLASS DECLARATION MEMBER FUNCTION DEFINITION MAIN FUNCTION PROGRAM It is a common practice to organize a program into three separate files .the class declaration are placed in a header file an these definition of a member function go into another file. The approach enable the programmers to separate the abstract specification of the interface (class defination ) form the implementation details (member Member function function defination) .finally ,the main program the uses the class is placed in a thired file which includethe previous two files as well as any other files required .

Class defination Main function defination

As shown in fig. the class definition including the member Functions constitute the server that provide services to the main program know as client . the client uses the server through the public interface of the class Example :#include<iostream.h> #include<conio.h> class tollbooth { int cars; int amount; public: tollbooth()

{ cars=0; amount=0; } void paycar() { cars++; amount+=10; } void nonpay car() { cars++; } void show() { cout<<\n no of case<<cars; cout<<\n amount collocted<<amount; } }; void main() { tollbooth t; int c; do { cout<<\n1.paid car; cout<<\n2.nonpaid car;

cout<<\n3.esc to exit; cin>>c; if(c==1) t.paycar(); elseif(c==2) t.nonpaycar(); }while(c!=27); t.show(); }

Character Set : The character set that can be used to from Numbers ,alphabets, word and expression are now as character set , can used on most

personal ,main micro and main frame computers the character set in C++ can classified into the following catagries. 1. 2. 3. 4. Letter Digits Special character Void spaces

1.

alpawates (AtoZ) And all the lower case letter or alpawates (a to z) are called Letter or alpawatical character set.

Letter:

All the upper case letter or

2. Digit: _2The entire decimal digits from (0


to9) are called digit or numerical character set.

3. Special character set: _ All the special


character or Symbol are called special character set such as. (.period) (, comma) (; semicolon) (? Question mark)

(& ampersand) (+plus sine) (-minus sine) (*asterisk) (>greater then) (< less than) (#hash number sine) ((,opening parenthess) (), closing parentheses) ({ opening carliwaress) (}, closing carliwaress ) ([, opening) (], closing). 4. Void spaces:_ Void spaces are those characters set which Are non printable by programmer or user such as blank space, Horizontal tab, carriage return, new line field etc. The compiler engorges void spaces a less they are part of a string Constant void spaces are used to sprayed word but are Prohibited between character of keyboard and identifier. Constant:- a quantity that is fixed is called constant in other word a quantity or value that is never changed during the execution of a program is called constant C supported several

type of constant. 1. Numaric 2. Character. Variable:_ A quantity or value that is changed during the Program execution is called a variable. In other word, The value Which is changed in each time or not fixed during the executed Of program is called a variable. Data type;- C supports several data type that determind The type by value assigned by a variable. the varity of data type Available allow the programmer to select the type appropriate to the need of application .C supported three classes of data type 1. Primary or fundamental data type. 2. Derived data type. Operators :-_ An operator is a symbol that tells the computer To perform certain mathematical or logical operations or

Manipulations. operators are used in program to mainpulte Data& variable basically operator is the part of mathematical Or logical expressions. C operator can be classified in to a no of categories. They are: _ I. Arithmetic operators II. Relation operators III. Logical operator IV. Assignment operators V. Increment &decrement VI. Conditional operator VII. Bit wise operator VIII. scope resolution operator IX. member dereferencing operator X. memory management operator

INTRODUCTION:

The data flow diagram (DFD)is an OMT diagram that is Added to the UML uite when you activate the OMT module. WARNING : _Information specified the DFD will be lost during future upgrades. Purpose In OMT, you use DFD s to model what happens with data. You model the system as a network of process that transform and exchange data . The DFD s show the flow of data values their sources in Objects through the process that transform them to their destination in other objects. Values can include input values,

Output values , and internal data stores. Control information is Shown only in the from of control flows. The following table lists the important elements of DFD s.

Guidelines

You can follow certain guidelines to daw meaningful DFD s. . Optional input flows do not exits. A process can perform Its function only if all its input flows are always Available. .You cannot assign the same data to output flows From the same process. If a process produce more than One data flow, and you can merge two flow into One.

Decomosition

To specify what a high level process does, break it down into

Smaller units in more DFD s . A high-level process is an entire DFD . Each high-level process is decomposed into other Processes with data flows and data stores. Each decomposition Is a DFD in itself. You can continue to break down process Until you rach a level on which further decomposition seems Impossible or meaningless. The data flows of the opened process are connected in the new Diagram to the process related to the opened process. Vertices, And the flows and objects connected to them, are transferred With the flows that ar connected to the decomposed process.

*/ //header files used #include<dos.h> #include <fstream.h> #include <string.h> #include <stdio.h> #include <conio.h> #include <graphics.h> #include<iostream.h> #include<iomanip.h>

//global var. int choice,y_n=1; int c; int R_opt;char ch,a; char as= NULL; int ans; //to show the initial help void help() { gotoxy(33,1); cout<<"W E L C O M E"; gotoxy(33,2); cout<<"*************"; gotoxy(10,4); cout<<"############################################################"; gotoxy(10,6); cout<<" This project can keep record of daily cement transiction."; gotoxy(10,7); cout<<" This program is capable of holding any no. daily profile."; gotoxy(10,8); cout<<" In first option you can open cement inward entry form."; gotoxy(10,9); cout<<" In second option you can open cement outward entry form."; gotoxy(10,10); cout<<" In third option you can see status report"; gotoxy(10,12); cout<<"############################################################ "; cout<<"a Press any key to continue........."; getch(); } //to show the main menu void show_menu() { clrscr(); gotoxy(60,1); cout<<"Date :"<<__DATE__; gotoxy(32,3); cout<<"M A I N - M E N U"; gotoxy(32,4); cout<<"-----------------"; gotoxy(2,5);

//

to show the system date

cout<<"***************************************************************"; gotoxy(15,6); cout<<"1. Cement Inward Entry"; gotoxy(15,8); cout<<"2. Cement Outward Entry"; gotoxy(15,10); cout<<"3. Cement Status Report"; gotoxy(15,12); cout<<"4. Exit"; gotoxy(2,13);

cout<<"***************************************************************"; } // class contain the data of class cement { protected: struct info { char flage; long int R_challan; int dd1,mm1,yy1; char truck_no[15]; int dd2,mm2,yy2; int qtt; }f; fstream file; }; //class for inward cement data class cement_in:public cement { public: cement_in(); void get_inward() ;// to get the inward cement information void inward_report() ;// to get inward cement report int stock_in(); void stock_date(); }; //class cement_in close //class for outward cement data class cement_out:public cement { public: cement_out(); void del_data(); void outward_report(); int stock_out(); }; cement stock

//creating object of fstream class

//to get the data about delivery //to get the outward cement report //to get the total cement out

//function to get the inward cement entry void cement_in :: get_inward() { file.seekp(0L,ios::end); do { clrscr(); gotoxy(25,3); cout<<"C E M E N T - I N W O R D - E N T R Y"; gotoxy(2,5); cout<<"==============================================================="; gotoxy(5,8); cout<<"Receipt Challan No.: ";

gotoxy(5,10); cout<<"Challan Date:"; gotoxy(5,12); cout<<"Truck No.:"; gotoxy(5,14); cout<<"Receipt Date:"; gotoxy(5,16); cout<<"Quantity:"; gotoxy(22,16); cout<<"M.T"; gotoxy(2,19); cout<<"==============================================================="; gotoxy(2,22) ; cout<<"Enter the recieve challan no................"; turn:gotoxy(28,8); cin>>f.R_challan; if(f.R_challan>999999) { gotoxy(28,8); cout<<" "; gotoxy(2,22); cout<<"aChallan no. should not greater then 6 dig."; goto turn; } gotoxy(2,22); cout<<"Enter the challan date......................."; turn1:gotoxy(20,10); cin>>f.dd1; gotoxy(22,10); cout<<"-"; gotoxy(23,10); cin>>f.mm1; gotoxy(25,10); cout<<"-"; gotoxy(26,10); cin>>f.yy1; if(f.dd1>31||f.mm1>12||f.yy1>99) { gotoxy(20,10); cout<<" "; gotoxy(2,22); cout<<"aEnter the valid date........................"; goto turn1; } gotoxy(2,22); cout<<"Enter the truck no. ........................"; gotoxy(17,12); cin>>f.truck_no; gotoxy(2,22); cout<<"Enter the recieving date......................"; // for putting recieving date turn2:gotoxy(22,14); cin>>f.dd2; gotoxy(24,14); cout<<"-"; gotoxy(25,14);

cin>>f.mm2; gotoxy(27,14); cout<<"-"; gotoxy(28,14); cin>>f.yy2; if(f.dd2>31||f.mm2>12||f.yy2>99) { gotoxy(22,14); cout<<" "; gotoxy(2,22); cout<<"aPlease enter the valid date ................."; goto turn2; } // quantity of cement gotoxy(2,22); cout<<"Enter the cement quantity.."; gotoxy(15,16); cin>>f.qtt; f.flage=NULL; file.write((char*)&f,sizeof(f)); gotoxy(2,22); cout<<"Enter another .......................yes-1/no-0 :"; cin>>ans; } while(ans==1); } //function for returning the total stock in store int cement_in::stock_in() { int temp=0; file.seekg(0L,ios::beg); while(file.read((char*)&f,sizeof(f))) { if(f.flage!='*') temp=temp+f.qtt; } file.clear(); return(temp); } /* function which gives the info of cement status at the particular date */ void cement_in::stock_date() { clrscr(); gotoxy(25,4); cout<<"R E C I E V E D - S T O C K"; gotoxy(25,5); cout<<"***************************"; int dd,mm,yy; gotoxy(4,10); cout<<"Please enter the date: "; gotoxy(30,10); cin>>dd; gotoxy(32,10);

cout<<"-"; gotoxy(33,10); cin>>mm; gotoxy(35,10); cout<<"-"; gotoxy(36,10); cin>>yy; file.seekg(0L,ios::beg); while(file.read((char*)&f,sizeof(f))) { if(dd==f.dd1&&mm==f.mm1&&yy==f.yy1) { gotoxy(20,12); cout<<"************************************"; gotoxy(20,14); cout<<"aTotal recieved cement :"<<f.qtt<<" M.T"; gotoxy(20,15); cout<<"aChallan No. : "<<f.R_challan; gotoxy(20,16); cout<<"aTruck No. : "<<f.truck_no; gotoxy(20,17); cout<<"Challan date : "<<f.dd1<<"-"<<f.mm1<<"-"<<f.yy1; gotoxy(20,19); cout<<"***********************************"; } } } void { //function for inward cement report cement_in::inward_report() gotoxy(28,2); cout<<"I N W A R D - R E P O R T "; gotoxy(28,3); cout<<"-------------------------"; gotoxy(3,5); cout<<"*********************************************************"; gotoxy(3,6); cout<<"Challan No. Challan-Date Truck-No. Date of Receiv Quantity"; gotoxy(3,7); cout<<"************************************************************"; file.seekg(0L,ios::beg); while(file.read((char*)&f,sizeof(f))) { if(f.flage!='*') cout<<" "<<setw(10)<<f.R_challan<<setw(13)<<f.dd1<<"/"<<f.mm1<<"/"<<f.yy1 <<setw(12)<<f.truck_no<<setw(10)<<f.dd2<<"/"<<f.mm2<<"/"<<f.yy2<<setw(10)< <f.qtt; delay(200); } cout<<"

********************************************************"; file.clear(); } /* costructor of cement_in class which initialise the opening file cement.dat */ cement_in::cement_in() { file.open("cement.dat",ios::binary|ios::in|ios::out); if(!file) { cout<<"ERROR" ; getch(); } } // function of class delivery data , to get the entries of outward cement void cement_out::del_data() { file.seekp(0L,ios::end); do { clrscr(); gotoxy(28,5); cout<<"* O U T W A R D - E N T R Y *"; gotoxy(28,6); cout<<"------------------------------"; gotoxy(3,8); cout<<"*************************************************************"; gotoxy(3,9) ; cout<<"Delivery Challan No.:"; gotoxy(3,11); cout<<"Challan Date:"; gotoxy(3,13); cout<<"Dlivery Truck No.:"; gotoxy(3,15); cout<<"Date of Dispatch:"; gotoxy(3,17); cout<<"Quantity:"; gotoxy(26,17); cout<<"M.T."; gotoxy(3,18); cout<<"*************************************************************"; gotoxy(2,22); cout<<"Enter the delivery challan no......"; turn:gotoxy(25,9); cin>>f.R_challan; if(f.R_challan>999999) { gotoxy(25,9); cout<<" ";//to clear this line gotoxy(2,22); cout<<"aChallan no. should not greater then 6 dig.";

goto turn; } gotoxy(2,22); cout<<"Enter the delivery challan date...."; turn1: gotoxy(25,11); cin>>f.dd1; //date of challan gotoxy(27,11) ; cout<<"-"; gotoxy(28,11); cin>>f.mm1; gotoxy(30,11); cout<<"-"; gotoxy(31,11); cin>>f.yy1; if(f.dd1>31||f.mm1>12||f.yy1>99) { gotoxy(25,11); cout<<" "; gotoxy(2,22); cout<<"aEnter the valid date........................"; goto turn1; } gotoxy(2,22); cout<<"Enter the delivery truck no. ....."; gotoxy(25,13); cin>>f.truck_no; gotoxy(2,22); cout<<"Enter the cement delivery date...."; turn2: gotoxy(25,15); cin>>f.dd2; //for date of deliver gotoxy(27,15) ; cout<<"-"; gotoxy(28,15); cin>>f.mm2; gotoxy(30,15); cout<<"-"; gotoxy(31,15); cin>>f.yy2; if(f.dd2>31||f.mm2>12||f.yy2>99) { gotoxy(25,15); cout<<" "; gotoxy(2,22); cout<<"aEnter the valid date........................"; goto turn2; //cursor again reset } gotoxy(2,22); cout<<"Enter the delivard cement.Qtt......."; gotoxy(20,17); cin>>f.qtt; f.flage=NULL; file.write((char*)&f,sizeof(f)); gotoxy(2,22); cout<<"aAdd more? Y/N.................."; cin>>a; }while(a=='y'||a=='Y');

//end of function

// function for outward cement menu display void report_menu(void) { clrscr(); gotoxy(31,3); cout<<" REPORT-MENU " ; gotoxy(31,4); cout<<"__________"; gotoxy(4,7); cout<<"*************************************************************"; gotoxy(10,9); cout<<"1.Daily Inward Cement Report."; gotoxy(10,11); cout<<"2.Daily Outward Cement Report."; gotoxy(10,13); cout<<"3.Stock."; gotoxy(10,15); cout<<"4.Exit."; gotoxy(4,17); cout<<"************************************************************ "; } //function for outward cement report void cement_out::outward_report() {

gotoxy(30,3); cout<<"O U T W A R D - R E P O R T"; gotoxy(3,6); cout<<"**************************************************************"; gotoxy(3,7); cout<<"Challan Chl_date Truck_no Dispatch_date Quantity gotoxy(3,8); cout<<"*************************************************"; file.seekg(0L,ios::beg); while(file.read((char*)&f,sizeof(f))) { if(f.flage!='*') cout<<endl<<setw(5)<<f.R_challan<<setw(10)<<f.dd1<<"/"<<f.mm1<<"/"<<f.yy1<<setw( 10); cout<<f.truck_no<<setw(10)<<f.dd2<<"/"<<f.mm2<<"/"<<f.yy2<<setw(10)<<f.qtt<<setw (12);

";

delay(200); } cout<<" ************************************************************"; file.clear(); cout<<endl<<"Press any key to continue......"; getch(); }

/*constructor of class cement_out which initialise the opening file ocem.dat*/ cement_out::cement_out() { file.open("ocem.dat",ios::binary|ios::in|ios::out); if(!file) { cout<<"ERROR" ; getch(); } } //function which returns the total qautity of outward cement int cement_out::stock_out() { int temp=0; gotoxy(28,1); cout<<"T O T A L - S T O C K"; gotoxy(28,2); cout<<"*********************"; file.seekg(0L,ios::beg); while(file.read((char*)&f,sizeof(f))) { if(f.flage!='*') temp=temp+f.qtt; } file.clear(); return(temp); } void stock_menu() { gotoxy(28,4); cout<<"S T O C K - S T A T U S "; gotoxy(28,5); cout<<"***********************"; gotoxy(17,7); cout<<"********************************************"; gotoxy(24,8); cout<<"1.Stock Today."; gotoxy(24,10); cout<<"2.Stock At Recieve Date."; gotoxy(17,11); cout<<"********************************************";

} void main() { for(int s=1000;s>100;s+50) { sound(s); delay(50); } nosound();

textcolor(5); clrscr(); long int passu; gotoxy(20,10); cout<<"Enter the password : "; cin>>passu ; if(passu==654321) { clrscr(); help(); do

cement_in obj1; //class objects cement_out obj2; clrscr(); show_menu(); cout<<endl<<"Enter your choice:"; cin>>choice; switch(choice) // { //for inward cement entry case 1: clrscr(); obj1.get_inward(); break; // for outward cement entry case 2: clrscr(); obj2.del_data(); break;

main choice

//for cement outward & inward report case 3: clrscr(); report_menu(); gotoxy(35,45); cout<<"Enter the choice:"; gotoxy(36,35); cin>>R_opt; switch(R_opt) { // for showing the inward cement report case 1:

clrscr(); obj1.inward_report(); break; // for showing outward cement report case 2: clrscr(); obj2.outward_report(); break; // for stock status case 3: clrscr(); stock_menu(); cout<<endl<<"Enter your choice:"; cin>>c; switch(c) { case 1: clrscr(); int p= obj1.stock_in(); int q=obj2.stock_out(); gotoxy(50,5); cout<<"Date:"<<__DATE__; gotoxy(4,8); cout<<" aTotal present stock today :"<<p-q<<" M.T. "; getch(); break; case 2: clrscr(); obj1.stock_date(); getch(); break; } } } //internal switch closed //top switch closed

cout<<endl<<" aDo you want to quit:-"; cin>>ch; }while(ch!='y'&&ch!='Y'); textcolor(6); } /*if password is not correct*/ else { gotoxy(20,12); cout<<"a Password is not correct" ; gotoxy(20,13); cout<<"a You are not authorised person"; getch(); } }

You might also like