Sie sind auf Seite 1von 48

Solapur University, Solapur

INTRODUCTION

Venu-Gopal Automobile Service Center

Solapur University, Solapur

Introduction of Project
Objectives of Projects:1] To create computerized system. 2] To save times & to maintain large database. 3] To performs efficient transactions. 4] To see all reports. 5] To create user friendly application.

Menu Based Application:The Venu-Gopal Automobile Service Center application is totally menu based user friendly software designed using C++ programming language & database stored with help of file system. In this application first appears menu based different option user can select any one they are required and performed various task. This application provides username and password facility. In this application used maximum feature of C++ language.

This Application Performs Following Tasks:1] To records purchase transactions. 2] To records sales/service transactions. 3] To records customer details. 4] To records employees information. 5] To maintain available stocks. 6] To modify customer details. 7] To modify employee information. 8] To modify supplier information. 9] To see purchase reports. 10] To see sales reports. 11] To see date wise all purchase & sales reports. 12] To see employee information.

Venu-Gopal Automobile Service Center

Solapur University, Solapur

FEATURES OF C++

Venu-Gopal Automobile Service Center

Solapur University, Solapur

Features of C++
The programming language C++ used to develop a project Venu-Gopal Automobile Service Center is superset of c language .It provides the flavors of oops. With its object Oriented programming features like encapsulation, inheritances & polymorphism, CPP is developed by Bjarne Stroustrup at AT&T Bell lab in Murray Hill, New Jersey, USA. C++ has undergone many change & improvements. The language was standardized in 1998 by him American National Standard Institute (ANSI) & the International standard organization (ISO) by incorporating not only the new features but also the changes suggest by the user groups. Some of the reason that this language becomes most popular amongst developers is given below:The following basic concepts of oops: Class Abstraction Encapsulation Inheritance Polymorphism

Objects:An object is an abstraction of real-world entity. It may, represent a person, a place, a no.; an icon or something else that can be modeled .It is a single unit, in which we can store data as well as functions, which will work on the data.

Classes:A class is a collection of object having common features. A class is a user defined data type which ensconces data members as well as functions that manipulate these data

Abstraction:It is essential elements of Object Oriented Programming. It can be defined as the separation of unnecessary details or explanations from system requirements so as to reduce complexities of understanding requirements, i.e. the essential features are represented without including background detail.

Venu-Gopal Automobile Service Center

Solapur University, Solapur

Encapsulation:It is mechanism that puts in capsule the data and function together. It is the result of hiding the implementation details of objects from its users. The object hides its data from other objects and allows the data to be accessed by only those functions which are packaged in the class of the object.

Inheritance:It is the one of the most imp features of the OOP programming. Creating new class from existing old class is called inheritance. Reuse the same data again in a different class is possible by inheritance features.

Polymorphism:Use the same thing for slightly different purpose is known as polymorphism. Or one name multiple duties.

Inclusion of Header Files:A header file contains the definition, global variable declarations, and initialization by all files in a program. iostream. h :: Stream Input\Output routines iomanip.h :: C++ streams I\O manipulator fstream .h :: Stream classes that supports file Input & output. conio.h string.h dos.h :: Console I/O routines. :: String & memory manipulation routines. :: To date & time function.

Venu-Gopal Automobile Service Center

Solapur University, Solapur

FUNCTIONS DECLARATION

Venu-Gopal Automobile Service Center

Solapur University, Solapur

FUNCTION DECLARATION:A function plays an important role in program development. Dividing program into functions is one of the major principles of top-down, structured programming. Functions are reduces the size of a program by calling them at different places in the program. Function prototyping is one of the major improvements in C ++ functions. The prototypes describes the function interface to complier by giving details such as the number and the type of arguments and the type of return values.

LIBRARY FUNCTIONS
1] cout () 2] cin () 3] getch () 4] switch () :- This function is used to print any type of data. :- This function is used to accept entire value. :- This function gets character from console but type of data. :- Switch is control statement that provides a facility for Multi way branching from particular point. :- To clear the text mode window. :- It is used to cause an exit from the loop & switch statement. :- It is used to create user defined data type, value. :- It is used to mark the end of function execution and to Transfer the control back to the calling function. :- While is a control statement used to set of statements repeatedly Depending on the outcome of a test. :- It is data type and is used to the indicate the objects of Unknown type, function.

5] clrscr () 6] break () 7] class () 8] return ()

9] while ()

10] void ()

Venu-Gopal Automobile Service Center

Solapur University, Solapur

11] setw ()

:- It is used to set or reserve the number of columns for Information being displayed on the monitor.

12] textcolor() :- It is used to set current text color. 13] gotoxy() :- It is used set cursor given passion. 14] textbackground() :- It is used to set background color.

USER DEFINED CLASS


1] purchase 2] purchase2 3] purchase3 4] customer 5] customer2 6] customer3 7] billing 8] employee 9] employee2 :- For supplier information. :- For purchase details related to purchase class. :- For total amounts related to purchase2 class. :- For customer information. :- For customer details related to customer class. :- For total amount related to customer2 class. :- For calculate bill related to customer2 & customer3 class. :- For employee information. :- For employee details related employee class.

USER DEFINED FUNCTION


1] entry() :- To supplier ,customer & employee unique entry.

2] linedesign() :- To line design purpose. 3] design() 4] getdata() 5] total() 6] salary() :- To designing required label. :- To input data from user. :- To calculate total amount. :- To calculate employee salary.
Venu-Gopal Automobile Service Center
8

Solapur University, Solapur

7] report() 8] astock() 9] welcome()

:- To printing report on the screen. :- To calculate available stocks. :- To login & welcome to user.

10] homepage() :- To main form or homepage. 11] modify() 12] paysal() :- To modify customer, supplier & employee data. :- To pay salary to the employee.

Venu-Gopal Automobile Service Center

Solapur University, Solapur

ALGORITHMS

Venu-Gopal Automobile Service Center

10

Solapur University, Solapur

ALGORITHMS LOGIN PAGE ALGORITHM


1. Start 2. Take variable c=1 3. If c >= 3 then go to step 14 4. Else 5. Enter login id 6. Store in userid1 7. Enter password 8. Store in pass1 9. A = strcmp(userid,userid1) 10 B = strcmp(pass,pass1) 11 If A = = B then go to main form 12 Else 13 c++ go to step 3 14 Stop

Venu-Gopal Automobile Service Center

11

Solapur University, Solapur

MAIN FORM ALGORITHM


1 Start 2 Enter choice ch 3 If ch == P or ch == p then 4 Open purchase entry form 5 Else if ch == S or ch == s then 6 Open sales/service form 7 Else if ch == B or ch == b then 8 Open pay salary & modify form 9 Else if ch == M or ch == m then 10 Open employee form 11 Else if ch == A or ch == a then 12 Open available form 13 Else if ch == R or ch == r then 14 Open all reports from 15 Else if ch == E or ch == e then 16 Exit project 17 Else 18 Print Enter correct choice & go to line 2 19 Stop

Venu-Gopal Automobile Service Center

12

Solapur University, Solapur

PURCHASE ENTRY ALGORITHM


1 start 2 Enter serial number srno 3 Store srno in the file 4 Enter supplier name sname 5 Store sname in the file 6 Enter supplier address sadd 7 Store sadd in the file 8 Enter supplier contact smob 9 Store smob in the file 10 Enter device name dname 11 Store dname in the file 12 Enter device rate srate 13 Store srate in the file 14 Enter quantity of device qty 15 Store qty in the file 16 Amount = srate * qty 17 Store Amount in the file 18 Store total amount in the file tamount 19 Enter paid amount pamount 20 Store pamount in the file 21 Ramount = tamount pamount 22 Store Ramount in the file 23 Store system date in the file 24 Stop

Venu-Gopal Automobile Service Center

13

Solapur University, Solapur

SALES ENTRY ALGORITHM


1 Start 2 Enter serial number crno 3 Store crno in the file 4 Enter customer name cname 5 Store cname in the file 6 Enter customer address cadd 7 Store cadd in the file 8 Enter customer contact cmob 9 Store cmob in the file 10 Enter vehicle name vname 11 Store vname in the file 12 Enter vehicle number vno 13 Store vno in the file 14 Enter device name cdname 15 Store cdname in the file 16 Enter device rate crate 17 Store crate in the file 18 Enter quantity of device cqty 19 Store cqty in the file 20 camount = crate * cqty 21 Store camount in the file 22 Store total amount in the file ctamount 23 Enter paid amount cpamount 24 Store cpamount in the file 25 cramount = ctamount cpamount 26 Store cramount in the file 27 Store system date in the file 28 Stop

Venu-Gopal Automobile Service Center

14

Solapur University, Solapur

AVAILABLE STOCKS ALGORITHM


1 Start 2 Declare variable astock 3 astock = qty cqty 4 Store astock & date in file 5 Display particular device name dname 6 Display available quantity astock 7 Display purchase rate device srate 8 Stop

MODIFY & PAY SALARY ALGORITHM


1 Start 2 Tack variable ch 3 If ch == 1 then 4 Pay employee salary 5 Else if ch == 2 then 6 Update customer remaining amount 7 Else if ch == 3 then 8 Modify customer information 9 Else if ch == 4 then 10 Modify supplier information 11 Else if ch == 5 then 12 Modify employee information 13 Else if ch == 0 then 14 Go to main form 15 Else 16 Enter correct choice 17 Stop

Venu-Gopal Automobile Service Center

15

Solapur University, Solapur

REPORTS ALGORITHM
1Start 2 Enter your choice 3 If ch == 1 then 4 Display purchase reports 5 If Else ch == 2 then 6 Display sales reports 7 If Else ch == 3 then 8 Display employee reports 9 If Else ch == 4 then 10 Display available stocks 11 If Else ch == 5 then 12 Display purchase reports date wise 13 If Else ch == 6 then 14 Display sales reports date wise 15 If Else ch == 0 then 16 Go to main form 17 Stop

Venu-Gopal Automobile Service Center

16

Solapur University, Solapur

FLOWCHARTS

Venu-Gopal Automobile Service Center

17

Solapur University, Solapur

FLOW-CHARTS LOGIN FORM FLOWCHART


Start Take variable C = 1 If Y End C>=3 ? N Input userid1

Input pass1

A=strcmp(userid,userid1)

B=strcmp(pass,pass1) If A== B ? Y Go to Main Form N

Venu-Gopal Automobile Service Center

18

Solapur University, Solapur

MAIN FORM FLOWCHART

Start Input ch
If

ch==P||ch==p
N If

Y Open purchase entry form

ch==S||ch==s
N If

Open sales entry form

ch==B||ch==b
N If

Open pay salary & modify form

ch==M||ch==m
N If

Open employee form

ch==A||ch==a
N If

Open available stocks form

ch==R||ch==r
N

Open all reports form

ch==E||ch==e

Stop

Venu-Gopal Automobile Service Center

19

Solapur University, Solapur

PURCHASE FLOWCHART
Start Input serial_no

Store serial_no

Input sname

Store sname

Input saddress

Store saddress

Input scontact

Store scontact

Input pbno

Store pbno

Venu-Gopal Automobile Service Center

20

Solapur University, Solapur

Input sdname

Store sdname

Input scompany

Store scompany

Input srate

Store srate

Input sqty

Store sqty

Amount=srate*sqty

Store Amount

Venu-Gopal Automobile Service Center

21

Solapur University, Solapur

Store tamount

Input pamount

Store pamount

ramount=tamount-pamount

Store ramount

Stop

Venu-Gopal Automobile Service Center

22

Solapur University, Solapur

AVAILABLE STOCK FLOWCHART


Start

Astock=aqty-cqty

Display device batch no

Display device name

Display device rate

Display Astock

Stop

Venu-Gopal Automobile Service Center

23

Solapur University, Solapur

REPORTS FLOWCHART
Start Input ch

ch == 1 ? N ch === 2 ? N ch === 3 ? N ch === 4 ? N ch === 5 ? N ch === 0 ? N

Show Purchase Report

Show Sales Report

Show Employee Report

Show Sales Report Date wise

Show Purchase Report date wise

Go to main form

Venu-Gopal Automobile Service Center

24

Solapur University, Solapur

OUTPUT SCREEN

Venu-Gopal Automobile Service Center

25

Solapur University, Solapur

This output screen related to the login form i.e. user name & password.

Venu-Gopal Automobile Service Center

26

Solapur University, Solapur

This output screen related to the main form in the this application.

Venu-Gopal Automobile Service Center

27

Solapur University, Solapur

This output screen related to the supplier id with primary key.

Venu-Gopal Automobile Service Center

28

Solapur University, Solapur

This output screen related to the supplier detail information.

Venu-Gopal Automobile Service Center

29

Solapur University, Solapur

This output screen related to the purchase entry details.

Venu-Gopal Automobile Service Center

30

Solapur University, Solapur

This output screen related to the customer id with primary key.

Venu-Gopal Automobile Service Center

31

Solapur University, Solapur

This output screen related to the customer detail information.

Venu-Gopal Automobile Service Center

32

Solapur University, Solapur

This output screen related to the sales details.

Venu-Gopal Automobile Service Center

33

Solapur University, Solapur

This output screen indicate customer bill form.

Venu-Gopal Automobile Service Center

34

Solapur University, Solapur

This output screen related to the employee entry with primary key.

Venu-Gopal Automobile Service Center

35

Solapur University, Solapur

This output screen related to the employee information.

Venu-Gopal Automobile Service Center

36

Solapur University, Solapur

This output screen indicate pay employee salary.

Venu-Gopal Automobile Service Center

37

Solapur University, Solapur

This output screen related to the pay salary & modify information.

Venu-Gopal Automobile Service Center

38

Solapur University, Solapur

This output screen regarding to all the available stocks before salling.

Venu-Gopal Automobile Service Center

39

Solapur University, Solapur

This output screen related to the sales information.

Venu-Gopal Automobile Service Center

40

Solapur University, Solapur

This output screen indicate all available stocks after salling.

Venu-Gopal Automobile Service Center

41

Solapur University, Solapur

This output screen related to the all reports.

Venu-Gopal Automobile Service Center

42

Solapur University, Solapur

This output screen related to the supplier reports.

Venu-Gopal Automobile Service Center

43

Solapur University, Solapur

This output screen related to the datails of particular supplier.

Venu-Gopal Automobile Service Center

44

Solapur University, Solapur

USER MANUAL

Venu-Gopal Automobile Service Center

45

Solapur University, Solapur

USER MANUAL
When we install this application or run then we firstly see the login form then we must enter login id & password. When login id & password is wrong then we will take three chances to enter correct login id & password. But we did not enter correct login id or password then application is turn off. If login id & password is correct then we will see the main form. In main form there are seven choices i.e. P for purchase entry, S for sales entry, B for modify & pay salary, M for employee entry, A for available stocks, R for all reports & E for exit application. Then we will select appropriate choice we want. When we select P for purchase entry then we will see small form. In this form there are two choices i.e. daily supplier YES or NO. If we select or enter Y then enter correct supplier id i.e. already exits otherwise, we select N then we enter new supplier id i.e. already not exits. Then we will see next supplier information form then enter the appropriate data related to label. Then we will see next purchase equipment form then enter the data we have purchased. Above purchase entry procedure same as sales entry procedure but in the last in the sales entry generate automatic customer bill for you have selected customer. When we will select choice A from the main form then we will see all the available stocks present in your shop. When we will select choice M from the main from then, we will see employee data add form then, firstly enter employee id number then enter employee all information regarding to label. When we will select choice R from the main form then we will see all reports form i.e. purchase reports, sales reports, and employee reports, available stocks reports, date wise purchase & sales reports etc. When we will select choice B from the main form then we will see employee pay salary form & modify form. We can modify supplier, customer & employee information. Also we pay employee salary using this form.

Venu-Gopal Automobile Service Center

46

Solapur University, Solapur

BIBLIOGRAPHY

Venu-Gopal Automobile Service Center

47

Solapur University, Solapur

BIBLIOGRAPHY

Books 1. Programming in C++ 2 .Programming with C++ 3. Let Us C++ 4. Object-Oriented Programming in C++

Author

E.Balgurusamy. D.Ravichandran. Yashwant Kanetkar. Rajesh K. Shukla.

Venu-Gopal Automobile Service Center

48

Das könnte Ihnen auch gefallen