c++ project on billing system

Embed Size (px)

DESCRIPTION

complete report and CODE of a C++ Project on billing management system

Citation preview

Submitted by -

Under the guidance of - Palash Chaturvedi

Mr. Manoj Lukose Class XII A

Roll No - 1673783CERTIFICATEThis is to certify that the project developed by Palash Chaturvedi of class XII A entitled Shop Management, is bonafide work of the student in the Computer Science Lab during the academic year 2013-14 is carried out with the consultation of Teacher Incharge.

__________________

___________________Examiners Signature

Mr. Manoj Lukose (Teacher Incharge)

ACKNOLEDGEMENTIt is with great pleasure that I find myself penning down these lines to express my sincere thanks to various people who helped me a long way in completing this project.

The harmonious climate in our school provided proper guide for preparing the project. It was a privilege to have been guided by our computer teacher.

Thanks to all my classmates who helped me during development of this project with their constructive criticism and advice.

CONTENTS1. Overview2. Introduction to C++3. Header files used4. Hardware and Software requirements5. Flowchart

6. Source codes

7. Outputs

8. Bibliography

OVERVIEWThis is a Shop Management software which can be used by Store Keepers to manage product details available in their store and for Billing Purpose. In this application, we allow store keepers to enter the details of the products available in their store, to view them, to delete them, and prepare bills. Features provided by this project are as follows:

1. Storing details of products: All the details of the products like product no., product name, price can be stored in the database.2. Display product details: Store keepers can view all the details of the product available in their store at any time.3. Delete: This feature is also supported by this project. The list of the products can be deleted any time and can be re created as per their needs.

4. Billing : With the help of this feature user can get the whole list of the products on the billing menu, so the user just need to enter the product no. and all the details of that product will automatically be displayed on the bill, with the total amount that the customer needs to pay.INTRODUCTION TO C++The C++ programming language was developed at AT&T bell laboratories in the early 1980s by Bjarne Stroustrup. He found C lacking for stimulations and decided to extend the language by adding features from Simula 67 which was one of the earliest object oriented languages. The name C++ was coined by Rick Mascitti where ++ is the C increment operator. Ever since its birth, C++ involved coping with problems encountered by users and through discussions at AT&T. However, the maturation of the language is attested to by two events:

1. Formation of ANSI C++ committee.2. Publication of The Annotated C++ Reference Manual by Ellis & Stroustrup. C++ is one of the most popular programming languagesand is implemented on a wide variety of hardware and operating system platforms. As an efficient compiler to native code, its application domains include systems software,application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such asvideo games.FEATURES OF C++ PROGRAMSIn C++, you can develop new data types that contain functional descriptions (member functions) as well as data representations. These new data types are calledclasses. The work of developing such classes is known asdata abstraction. You can work with a combination of classes from established class libraries, develop your own classes, or derive new classes from existing classes by adding data descriptions and functions. New classes can contain (inherit) properties from one or more classes. The classes describe the data types and functions available, but they can hide (encapsulate) the implementation details from the client programs.

You can define a series of functions with different argument types that all use the same function name. This is calledfunction overloading. A function can have the same name and argument types in base and derived classes.

Declaring a class member function in a base class allows you to override its implementation in a derived class. If you use virtual functions, class-dependent behavior may be determined at run time. This ability to select functions at run time, depending on data types, is calledpolymorphism.Every C++ program must have a function named main (). Program execution begins at main () and continues by sequentially executing the statements within main (). A program terminates normally following execution of the last statement of main (). Curly braces ({&}) is used to express grouping of statements in C++. Every executable statement in C++ must be terminated by a semicolon (;).

OOP CONCEPTS IN C++

The Object Oriented Programming has been developed with a view to overcome the drawbacks of the conventional programming approaches. The OOP approach is based on certain oncepts that help it attain its goal of overcoming the drawbacks or shortcomings of conventional programming approaches. These general concepts of OOP are given below:

DATA ABSTRACTIONIn C++, you can develop new data types that contain functional descriptions (member functions) as well as data representations. These new data types are calledclasses. The work of developing such classes is known asdata abstraction. You can work with a combination of classes from established class libraries, develop your own classes, or derive new classes from existing classes by adding data descriptions and functions. New classes can contain (inherit) properties from one or more classes. The classes describe the data types and functions available, but they can hide (encapsulate) the implementation details from the client programs.

INHERITANCE

It is the capability of one class of things to inherit capability or properties from another class. Inheritanceallows one data type to acquire properties of other data types. Inheritance from abase classmay be declared as public, protected, or private. This access specifier determines whether unrelated and derived classes can access the inherited public and protected members of the base class. Only public inheritance corresponds to what is usually meant by "inheritance". The other two forms are much less frequently used. If the access specifier is omitted, a "class" inherits privately, while a "struct" inherits publicly.POLYMORPHISM

It is the ability for a message to be processed in more than one form. Declaring a class member function in a base class allows you to override its implementation in a derived class. If you use virtual functions, class-dependent behavior may be determined at run time. This ability to select functions at run time, depending on data types, is calledpolymorphismSOME IMPORTANT DATA TYPES IN C++ARRAYS

Arrays refer to a named list of a finite number n of similar data elements. They maybe 1-dimensional, 2-dimensional or multi-dimensional.Example : float A[30];

FUNCTION

It is a named part of program, which can be invoked from other parts of the program as often needed.POINTERIt is a variable which holds a memory address. This address is usually the location of another variable in memory.

Example : char *ptr;

CLASS

It represents a group of similar objects. A class describes all the properties of a data type and an object is an entity created according to that description.

HEADER FILES USED iostream.h

fstream.h

process.h

conio.h

stdio.h

string.h

dos.h

graphics.hSOFTWARE AND HARDWARE REQUIREMENTSSOFTWARE REQUIREMENTS:

Platform:windows 98/xp/2000.

Front end: turbo c++ version-3.0.

Back end: DOS file support.

HARDWARE REQUIREMENTS:

PIII 500 MH2 or higher.

RAM 64 MB or more.

HOD capacity 2GB or more.

FLOWCHART

SOURCE CODE#include

#include

#include

#include

#include

#include

#include

#includeint p_no,choice1;

int logo();

int intro();

void last();

class product

{

int prod_no,qty;

char prod_name[30];

float prod_mrp,price;

public:

void display_product();

char* retprodname();

int retprodno();

float retprodprice();

void create_product()

{ coutprod_no;

cout