Académique Documents
Professionnel Documents
Culture Documents
UNIVERSITY OF KERALA
KARIAVATTOM, THIRUVANANTHAPURAM
Submitted by
SABU M
(90031)
BCA II
(2014-2015)
UNIVERSITY OF KERALA
INSTITUTE OF DISTANCE EDUCATION
KARIAVATTOM, THIRUVANANTHAPURAM
CERTIFICATE
Acknowledgement
SABU M
Table of Contents
1. Introduction
2. System study
2.1. Existing System
2.2. Proposed System
3. System Requirements
3.1. Software Requirements
3.2. Hardware Requirements
4. System Analysis
4.1. Feasibility Study
4.1.1. Economic & Technical Feasibility
4.1.2. Social & Behavioral Feasibility
5. System Design
5.1. Input Design
5.2. Output Design
5.3. Interface Design
5.4. Procedural Design
5.5. File Design
5.6. Data Flow Design
6. Implementation and Testing
6.1. System Testing
7. Conclusion
1.INTRODUCTION
The Mobile Store Management System is one can go into almost required solution
regarding the Mobile store. This software package provides guidance for all the mobile shop
purpose, as a perfect guide, the current demand for such software became needful. This project
will provide for computerization of a small enterprise whose main goal is to keep track on their
inventory and billing process and wants to change from paper based transaction to computerized
transaction.
The mobile store management will make storing of the stock records, employee records,
purchase information, and customer information a lot easier. The supplier and sales information
in the database will automatically generate bills when the customer buys the mobile. The bill
history can be retrieved promptly. And reports will be generated based on different criteria’s.
The product could be implemented in an average sized organization, which will not be very keen
on spending loads of money on ledgers. Whereas our product will greatly reduce the running by
using common and cheap office items like database and desktop application. And also there is no
requirement to store books or accounts. The data is directly stored in the database in the hard
disk of the PC.
2. SYSTEM STUDY
2.1. EXISTING SYSTEM:
System Analysis is a detailed study of the various operations performed by a system and their
relationships within and outside of the system. Here the key question is- what all problems
exist in the present system? What must be done to solve the problem? Analysis begins when
a user or manager begins a study of the program using existing system. During analysis, data
collected on the various files, decision points and transactions handled by the present system.
The commonly used tools in the system are Data Flow Diagram, interviews, etc. Training,
experience and common sense are required for collection of relevant information needed to
develop the system. The success of the system depends largely on how clearly the problem is
defined, thoroughly investigated and properly carried out through the choice of solution. A
good analysis model should provide not only the mechanisms of problem understanding but
also the frame work of the solution. Thus it should be studied thoroughly by collecting data
about
the system. Then the proposed system should be analyzed thoroughly in accordance with the
needs.
2 Information Gathering
table till date. Under the existing system all elements are not available under the same screen and
you have to press next button or previous button to get details of your desired elements. All
elements are not easily visible clearly so you have to scroll down the screen to get the entire
information. There is no any simple way to quit the program and some program takes more disk
space just for getting few information on time.
As this program in written in C++, so it will take a little amount of your disk space and memory
to load and execute the program. You do not have to download any software to get the details of
elements which are available under the periodic table. You have to just use the codes which are
given for this program and run over your computer. When you will press any key, you will be
taken to the main screen of period table section.
You can click any key to go to the next section. Under the next screen, you will be
provided with all the elements list on the same screen and it will be displayed in same way which
is displayed over periodic table chart map.
To get details, you have to select particular element and press enter. Once you press enter
you will able to get all its details. Whenever you want to quit the program, you have to just press
ESC key from your keyboard and program will be terminated automatically.
The system is very simple in design and to implement. The system requires very low
system resources and the system will work in almost all configurations.
All the manual difficulties in managing ing this system have been rectified by
implementing computerization.
User level
The Periodic Table system code was built and manipulated in the CPP programming
language. Which is one of the more High-level programming language. CPP is used because
the Periodic Table management system barely has any memory. Typically, in embedded
systems, it is better to use languages that do not have a large memory footprint. Once a
knowledge of the fundamentals of CPP was attained and the first project was finished, there
was a new attempt to gain a better understanding of the hardware , especially that of the
keyboard .
The most common editions of operating systems are Windows XP home edition,
which is targeted at home users, and Windows XP professional, which has additional features
such as, support for Windows server domain and two physical processors and is targeted at
power users and business clients. Windows XP Tablet PC edition is designed to run the ink-
aware Tablet PC platform. Two separate 64 bit versions of Windows XP were also released,
Windows XP 64 bit edition for IA-64(Itanium) processors and Windows XP Professional x64
edition for x86-64 processors.
Human resources-the planner begins the evaluating the scope and selecting the
skills required for complete development. For relatively small projects, a single individual may
perform all software engineering tasks by consulting with the specialist as required. The number
of people required for the software can be determined only after an estimate of development
effort is made.
3. SYSTEM REQUIREMENTS
RAM : 4 GB
Language : CPP
4. SYSTEM ANALYSIS
Depending on the result of the initial investigation the study expanded to more
detail feasibility study. Feasibility study is a test o a system proposal accessing to its work
ability, impact on the organizations, ability to meet the user’s needs, and effective use of
resources. The objective is not to solve the problem but to accurate a sense of its scope. During
the study, the problem definition is crystallized and aspects of the problem to be included in the
system are determined. Consequently, cost and benefits are estimated with greater accuracy at
the stage.
It consists of following:
The feasibility study determines whether the proposed system is flexible or not.
One personal computer, a printer is necessary for the proposed system. The present project will
improve quality of the image and reduced cost. There are incurred from implementing this
project as well as benefits.
The key considerations that are involved in feasibility analysis conducted are;
o Operational feasibility
o Economical feasibility
o Technical feasibility
o Behavioral feasibility
An estimate should be made to determine how much effort and care will go into
the developing of the system including the training to be given to the user. Usually people
resisted new changes that are coming in their progression. It is common knowledge that the
computer installations would certainly affect the turn over, transfer and employee job status.
Hence an additional effort is to be made to train and educate the users on the new way of the
system.
4.1.2ECONOMICAL FEASIBILITY
Economical analysis is the most frequently used method for evaluating the
effectiveness of the candidate system. More commonly known as cost benefits analysis, the
procedure is to determine the benefits and savings that are expected from a candidate system and
compare with cost. It benefits over weigh costs then the decision is made to designed implement
the system. Otherwise further modifications or alteration in the proposed system will have to be
made if it is to have chance for being approves in accuracy in each face of system development
4.1.3TECHNICAL FEASIBILITY
Technical feasibility enters on the existing computer system and to what extend it
can support to the proposed addition .The system, been improved for single organization there
may be some addition that are to be made on the system by the user. The user some needs a
printed or some other hardware added to the system that will raise the technical complexity.
Then the user has to check whether the system will support the addition or not this involves
financial consideration to accommodate technical enhancement
4.1.4BEHAVIORAL FEASIBILITY
Behavioral feasibility determines how much effort will go into educating, selling
and training the user staff on candidate system. People are inherently resistant to change and
computing has been known to facilitate change. Since the change is user friendly, user training is
a very easy matter.
4.1.5LANGUAGE DESCRIPTION
a) ABOUT C++
Object oriented programming (OOPs) treats data as a critical element in program development
and does not allow it to flow freely around the system. It ties data more closely to the function
that operate on it, and protect it form modification from outside functions. OOPs allows
decomposition of a problem into a number of entities called objects and then builds data and
functions around those objects. some of the features of OOPs are 1) Emphasis is on data rather
than procedure. 2) Programs are divided into what are known as objects. 3) Data structures are
designed such that they characterize the objects. 4) Functions that operate on the data of an
object are tied together in the data structure. 5) Data is hidden and cannot be accessed by external
functions. 6) Objects may communicate with each other through functions. 7) New data and
functions can be easily adds wherever necessary.
5. SYSTEM DESIGN
Input design is the process of converting user-oriented input to a computer based format. Input
design is a part of overall system design, which requires very careful attention .Often the
collection
of input data is the most expensive part of the system. The main objectives of the input design
are …
Input Data
The goal of designing input data is to make enter easy, logical and free from errors as possible.
The entering data entry operators need to know the allocated space for each field; field sequence
and which must match with that in the source document. The format in which the data fields are
entered should be given in the input form .Here data entry is online; it makes use of processor
that
Accepts commands and data from the operator through a keyboard. The input required is
analyzed
by the processor. It is then accepted or rejected. Input stages include the following processes.
1. Data Recording
2. Data Transcription
3. Data Conversion
4. Data Verification
5. Data Control
6.Data Transmission
7.Data Correction
One of the aims of the system analyst must be to select data capture method and devices, which
reduce
the number of stages so as to reduce both the changes of errors and the cost .Input types, can be
characterized as.
• External
• Internal
• Operational
• Computerized
• Interactive
Input files can exist in document form before being input to the computer. Input design is rather
complex since it involves procedures for capturing data as well as inputting it to the computer.
Outputs from computer systems are required primarily to communicate the results of processing
to users. They are also used to provide a permanent copy of these result for latter consultation .
Computer output is the most important and direct source of information to the users. Designing
computer output should proceed in an organized well through out the manner. The right output
must be available for the people who find the system easy o use. The outputs have been defined
during the logical design stage. If not, they should defined at the beginning of the output
designing
• External outputs
• Internal outputs
• Operational outputs
• Interactive outputs
All screens are informative and interactive in such a way that the user can full fill his
The general theme behind a database is to handle information as an integrated whole.A database
is a collection of interrelated data stored with minimum redundancy to serve many users quickly
and effectively. After designing input and output, the analyst must concentrate on database
design
or how data should be organized around user requirements. The general objective is to make
information access, easy quick, inexpensive and flexible for other users. During database design
the
1. Controlled Redundancy
2.Data independence
7. Performance
Testing Objectives
Testing is the process of executing the program with the intension of finding an
error
A good test is one that has a high probability of finding an as-yet-undiscovered
error.
A successful test is that which uncovers as-yet-undiscovered error.
Errors
System Configuration
Test Result Errors
Test Result
The test case consists of different inputs with the expected results in each
case. During testing, the tester records the actual test result against the expected ones and if
it is found matching, the case is assigned as a pass. Otherwise, the test case is assigned as a
fail and orders for reword and reset.
White box testing strategy deals with a internal logic and structure of the
code. White box testing is also called as glass, structural, open box or clears box testing. The
test written based on the white box testing strategy incorporates coverage of the code
written, branches, paths, statements and internal logic of the code etc.
The system have been tested by providing variety of inputs to ensure that all
the statements are executed at least once and that too expected manner. All topic and
transaction path from origin to destination was tested to identify and correct the possible
error.
The test cases are developed for each condition or combination if condition
and submitted for processing. By examining the results, the performance of the program
according to its specified requirement can be determined.
This is the first level of testing. In this different modules are tested against
the specifications produced during the design of the modules. Unit testing done for the
verification of the code produced during the coding phase and to test the internal logic of
modules. It refers the verification of the single program module in an isolated environment.
Unit testing first focused on the modules independently of one another to locate errors. After
coding each dialogue is tested and run individually. All unnecessary coding where removed
and it was ensured that all the modules work as the programmer would expect. Logical
errors found were corrected. So by working all the modules independently and verifying the
outputs of each module in the presence of the staff, we concluded that the program was
functioning as expected.
Admin
Client
6.9INTEGRATION TESTING
Data can be lost across an interface, one module can be have adverse afford
on another, sub functions, went combined, may not produce the desired major functions.
Integration testing is a systematic testing for constructing the program structure while at the
same time conducting tests to uncover errors associated with in the interface. The objective
is to take unit testing as a whole. Here correction is difficult because the vast expense of the
entire program complicate the isolation of courses. In integration testing steps, all errors
uncovered are corrected for the next step.
This provides the final assurance that software meets all the functional,
behavioral and performance requirements. The software is completely assembled on a
package. Validation succeeds when the software functions in a manner in which the user
expects. Validation refers to the process of using software in a live environment in order to
find errors. During the course of validating the system, failures may occur and sometimes
the coding has to be changed according to the requirements. Thus the feedback from the
validation phase generally precedes changes in the software. Once the application was made
DEPARTMENT OF COMPUTER SCIENCE Page 20
GOVERNMENT COLLEGE, KARIAVATTOM 21 PERIODIC TABLE
free of all logical and interface errors, inputting dummy data ensured that the software
developed satisfies all the requirements of the user. This dummy data is usually known as
the test case.
After performing the validation testing the next step is the output testing of
the proposed system since no system should be useful if it does not provide the required
output in the specific. Asking the users about format required by them tests the output
generated or displayed by the system under consideration. Here, the output format is
considered in two ways, one on screen and another is in printed format. The output format
on the screen is formed to be correct as the format was designed in the system phase
according to users’ needs. For the hard copy also, the output comes out as the specified
requirements by the user in any correction in the system.
User Acceptance of a system is the key factor for the success of any system.
The system under consideration is tested for user acceptance by constantly keeping in touch
with the prospective system. Users can make changes whenever required. This is done
regarding to the following points
The above testing is done taking the various kinds of test data. Preparation
of test data places a vital role in the system test. After preparing the test data, the system
under study is tested using that test data. While testing the system by which test data errors
are again uncovered and corrected by using above testing steps and corrections are also
noted for future use.
The knowledge about the test result is necessary to make further modifications. The
following are the test results,
Program testing reveled that program is free from syntax and logical errors. The
output was found corrected.
System testing revealed that all the modules of the system works properly under
peak loads and the system is capable of handling as many records.
Acceptance testing contributes to the consistency and smooth working of the
system.
7. CODE
//**********************************************************
//**********************************************************
//**********************************************************
//**********************************************************
#include <iostream.h>
#include <fstream.h>
#include <process.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <conio.h>
#include <dos.h>
//**********************************************************
//**********************************************************
class menu
public :
void main_menu(void) ;
private :
void edit_menu(void) ;
};
//**********************************************************
//**********************************************************
class product
public :
void add_item(void) ;
void delete_item(void) ;
void modify_item(void) ;
void list_of_item(void) ;
void purchase(void) ;
private :
int last_code(void) ;
void delete_record(int) ;
void modify_record(int) ;
void display_record(int) ;
int item_found(int) ;
int recordno(int) ;
void sort(void) ;
int itemcode ;
char itemname[30] ;
};
//**********************************************************
//**********************************************************
class account
public :
void bill_list(void) ;
void prepare_bill(int) ;
int last_billno(void) ;
private :
char name[30] ;
};
//**********************************************************
//**********************************************************
clrscr() ;
char ch ;
while (1)
clrscr() ;
gotoxy(10,3) ;
cout
<<"*************************************************************" ;
gotoxy(10,23) ;
cout
<<"*************************************************************" ;
gotoxy(28,6) ;
gotoxy(28,7) ;
cout <<"~~~~~~~~~~~~~~~~~~~~~" ;
gotoxy(30,9) ;
gotoxy(30,11) ;
gotoxy(30,13) ;
gotoxy(30,15) ;
gotoxy(30,17) ;
gotoxy(30,20) ;
ch = getche() ;
if (ch == '1')
product p ;
p.purchase() ;
product p ;
p.list_of_item() ;
edit_menu() ;
account a ;
a.bill_list();
break ;
//**********************************************************
//**********************************************************
char ch ;
while (1)
clrscr() ;
gotoxy(10,3) ;
cout
<<"*************************************************************" ;
gotoxy(10,23) ;
cout
<<"*************************************************************" ;
gotoxy(32,6) ;
gotoxy(32,7) ;
cout <<"~~~~~~~~~~~~~~~~" ;
gotoxy(32,10) ;
gotoxy(32,12) ;
gotoxy(32,14) ;
gotoxy(32,16) ;
gotoxy(32,19) ;
ch = getche() ;
if (ch == '1')
product p ;
p.add_item() ;
break ;
product p ;
p.modify_item() ;
break ;
product p ;
p.delete_item() ;
break ;
break ;
//**********************************************************
//**********************************************************
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
int t=0 ;
t = itemcode ;
file.close() ;
return t ;
//**********************************************************
//**********************************************************
clrscr() ;
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0) ;
gotoxy(30,2) ;
gotoxy(3,4) ;
gotoxy(2,5) ;
cout <<"***********************************************************" ;
delay(20) ;
found = 1 ;
gotoxy(5,row) ;
cout <<itemcode ;
gotoxy(14,row) ;
cout <<itemname ;
gotoxy(37,row) ;
cout <<itemcost ;
gotoxy(51,row) ;
cout <<itemprice ;
if ( row == 22 )
row = 5 ;
gotoxy(1,25) ;
getche() ;
clrscr() ;
gotoxy(30,2) ;
gotoxy(3,4) ;
gotoxy(2,5) ;
cout <<"***********************************************************"
else
row++ ;
if ( !found )
gotoxy(5,10) ;
gotoxy(1,25) ;
getche() ;
file.close () ;
//***********************************************************
//***********************************************************
tcode = last_code() ;
tcode++ ;
do
clrscr() ;
gotoxy(71,2) ;
cout <<"<0>=Exit" ;
gotoxy(27,3) ;
gotoxy(26,4) ;
cout <<"********************" ;
gotoxy(5,6) ;
gotoxy(5,8) ;
gotoxy(5,10) ;
gotoxy(5,12) ;
do
valid = 1 ;
gotoxy(1,8) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,8) ;
gets(itemname) ;
strupr(itemname) ;
if (itemname[0] == '0')
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
while (!valid) ;
do
valid = 1 ;
gotoxy(1,10) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,10) ;
gets(t_itemcost) ;
itemcost = atof(t_itemcost) ;
if (t_itemcost[0] == '0')
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
while (!valid) ;
do
valid = 1 ;
gotoxy(1,12) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,12) ;
gets(t_itemprice) ;
itemprice = atof(t_itemprice) ;
if (t_itemprice[0] == '0')
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
while (!valid) ;
do
gotoxy(1,15) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(5,15) ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
if (ch == 'Y')
itemcode = tcode ;
fstream file ;
file.close() ;
tcode++ ;
do
gotoxy(1,17) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(5,17) ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
//**********************************************************
//**********************************************************
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
if (itemcode == tcode)
gotoxy(5,3) ;
gotoxy(5,4) ;
gotoxy(5,5) ;
gotoxy(5,6) ;
break ;
file.close() ;
//**********************************************************
//**********************************************************
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
int found=0 ;
if (itemcode == tcode)
found++ ;
break ;
file.close() ;
return found ;
//**********************************************************
//**********************************************************
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
int found=0 ;
found++ ;
if (itemcode == tcode)
break ;
file.close() ;
return found ;
//**********************************************************
// THIS FUNCTION DELETES THE RECORD FOR THE GIVEN CODE FROM
//**********************************************************
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
fstream temp ;
temp.open("temp.dat", ios::out) ;
file.seekg(0,ios::beg) ;
while ( !file.eof() )
if ( file.eof() )
break ;
if ( itemcode != tcode )
file.close() ;
temp.close() ;
file.open("PRODUCT.DAT", ios::out) ;
temp.open("temp.dat", ios::in) ;
temp.seekg(0,ios::beg) ;
while ( !temp.eof() )
if ( temp.eof() )
break ;
file.close() ;
temp.close() ;
//**********************************************************
//**********************************************************
clrscr() ;
char t_code[5], ch ;
int t, tcode ;
gotoxy(3,25) ;
gotoxy(5,3) ;
gets(t_code) ;
t = atoi(t_code) ;
tcode = t ;
if (t_code[0] == '0')
return ;
if (tcode == 0)
list_of_item() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,24) ;
gets(t_code) ;
t = atoi(t_code) ;
tcode = t ;
if (tcode == 0)
return ;
clrscr() ;
if (!item_found(tcode))
gotoxy(5,5) ;
getch() ;
return ;
display_record(tcode) ;
do
gotoxy(1,8) ;
clreol() ;
gotoxy(5,8) ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == 'N')
return ;
delete_record(tcode) ;
gotoxy(5,15) ;
getch() ;
//**********************************************************
// THIS FUNCTION MODIFY THE RECORD FOR THE GIVEN CODE FROM
//**********************************************************
int recno ;
recno = recordno(tcode) ;
gotoxy(71,2) ;
cout <<"<0>=Exit" ;
gotoxy(5,12) ;
gotoxy(5,14) ;
gotoxy(5,16) ;
gotoxy(5,18) ;
do
gotoxy(20,12) ;
clreol() ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
valid = 0 ;
valid = 1 ;
gotoxy(1,12) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,12) ;
gets(t_itemcode) ;
t_code = atoi(t_itemcode) ;
if (t_code == 0)
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
do
gotoxy(20,14) ;
clreol() ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
valid = 0 ;
valid = 1 ;
gotoxy(1,14) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,14) ;
gets(itemname) ;
strupr(itemname) ;
if (itemname[0] == '0')
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
do
gotoxy(20,16) ;
clreol() ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
valid = 0 ;
valid = 1 ;
gotoxy(1,16) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,16) ;
gets(t_itemcost) ;
itemcost = atof(t_itemcost) ;
if (t_itemcost[0] == '0')
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
do
gotoxy(20,18) ;
clreol() ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
valid = 0 ;
valid = 1 ;
gotoxy(1,18) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,18) ;
gets(t_itemprice) ;
itemprice = atof(t_itemprice) ;
if (t_itemprice[0] == '0')
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
do
gotoxy(1,21) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(5,21) ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == '0')
return ;
if (ch == 'N')
return ;
itemcode = t_code ;
cout <<itemcost ;
cout <<itemprice ;
getch() ;
fstream file ;
int location ;
file.seekp(location) ;
file.close() ;
sort() ;
clrscr() ;
gotoxy(5,15) ;
getch() ;
//**********************************************************
//**********************************************************
clrscr() ;
char t_code[5], ch ;
int t, tcode ;
gotoxy(3,25) ;
gotoxy(5,3) ;
gets(t_code) ;
t = atoi(t_code) ;
tcode = t ;
if (t_code[0] == '0')
return ;
if (tcode == 0)
list_of_item() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,24) ;
gets(t_code) ;
t = atoi(t_code) ;
tcode = t ;
if (tcode == 0)
return ;
clrscr() ;
if (!item_found(tcode))
gotoxy(5,5) ;
getch() ;
return ;
display_record(tcode) ;
do
gotoxy(5,8) ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == 'N')
return ;
modify_record(tcode) ;
//****************************************************************
//****************************************************************
int i=0,j ;
product arr[100] ;
product temp ;
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
i++ ;
int size ;
size = i ;
file.close() ;
temp=arr[j];
arr[j]=arr[j+1];
arr[j+1]=temp;
file.open("PRODUCT.DAT", ios::out) ;
file.close() ;
//**********************************************************
//**********************************************************
clrscr() ;
account a ;
t_billno = a.last_billno() ;
t_billno++ ;
float t_quantity ;
float qty ;
int t_itemcode ;
char t_itemname[30] ;
struct date d;
getdate(&d);
d1 = d.da_day ;
m1 = d.da_mon ;
y1 = d.da_year ;
do
clrscr() ;
gotoxy(3,25) ;
gotoxy(5,3) ;
gets(t_code) ;
t = atoi(t_code) ;
tcode = t ;
if (t_code[0] == '0')
if (purchased)
a.prepare_bill(t_billno) ;
return ;
if (tcode == 0)
list_of_item() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,24) ;
gets(t_code) ;
t = atoi(t_code) ;
tcode = t ;
if (tcode == 0)
if (purchased)
a.prepare_bill(t_billno) ;
return ;
clrscr() ;
if (!item_found(tcode))
gotoxy(5,5) ;
getch() ;
if (purchased)
a.prepare_bill(t_billno) ;
return ;
gotoxy(60,2) ;
display_record(tcode) ;
do
valid = 1 ;
gotoxy(1,8) ;
clreol() ;
gotoxy(1,24) ;
clreol() ;
gotoxy(1,25) ;
clreol() ;
gotoxy(3,25) ;
gotoxy(5,8) ;
cin>>t_quantity ;
qty=t_quantity ;
if (t_quantity == 0)
if (purchased)
a.prepare_bill(t_billno) ;
return ;
valid = 0 ;
gotoxy(3,24) ;
getch() ;
while (!valid) ;
do
gotoxy(5,10) ;
clreol() ;
gotoxy(5,10) ;
ch = getche() ;
ch = toupper(ch) ;
if (ch == 'N')
purchased = 1 ;
fstream file ;
file.open("PRODUCT.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
if (itemcode == tcode)
t_itemcode = itemcode ;
strcpy(t_itemname,itemname) ;
t_cost = itemcost ;
t_price = itemprice ;
t_qty = qty ;
a.add_bill(t_billno,t_itemcode,t_itemname,t_qty,t_cost,t_price) ;
i++ ;
break ;
file.close() ;
do
gotoxy(5,12) ;
clreol() ;
gotoxy(5,12) ;
ch = getche() ;
ch = toupper(ch) ;
a.prepare_bill(t_billno) ;
//**********************************************************
//**********************************************************
fstream file ;
file.open("BILL.DAT", ios::in) ;
file.seekg(0,ios::beg) ;
int t=0 ;
t = billno ;
file.close() ;
return t ;
//**********************************************************
//**********************************************************
struct date d;
getdate(&d);
d1 = d.da_day ;
m1 = d.da_mon ;
y1 = d.da_year ;
dd = d1 ;
mm = m1 ;
yy = y1 ;
code = t_itemcode ;
strcpy(name,t_itemname) ;
cost = t_cost ;
price = t_price ;
quantity = t_qty ;
billno = t_billno ;
fstream file ;
file.close() ;
//**********************************************************
//**********************************************************
clrscr() ;
struct date d;
getdate(&d);
d1 = d.da_day ;
m1 = d.da_mon ;
y1 = d.da_year ;
gotoxy(33,3) ;
gotoxy(55,5) ;
gotoxy(8,7) ;
gotoxy(8,8) ;
cout <<"+++++++++++++++" ;
gotoxy(8,9) ;
cout <<"Item code Mobile name Mobile code Price Qty Total"
gotoxy(8,10) ;
cout <<"------------------------------------------------------------"
int row=11 ;
fstream file ;
file.open("BILL.DAT", ios::in) ;
file.seekg(0) ;
if (billno == t_billno)
gotoxy(8,5) ;
gotoxy(8,6) ;
cout <<"===============" ;
gotoxy(10,row) ;
cout <<code ;
gotoxy(18,row) ;
cout <<name ;
gotoxy(39,row) ;
cout <<cost ;
gotoxy(47,row) ;
cout <<price ;
gotoxy(56,row) ;
cout <<quantity ;
gotoxy(63,row) ;
cout <<total ;
row++ ;
file.close() ;
gotoxy(39,row+1) ;
getch() ;
//**********************************************************
//**********************************************************
clrscr() ;
fstream file ;
file.open("BILL.DAT", ios::in) ;
file.seekg(0) ;
gotoxy(30,2) ;
gotoxy(3,4) ;
cout <<"Billno. Date Item Code Mobile name Mobile code Price Qty Total" ;
gotoxy(3,5) ;
cout
<<"==================================================================
=========" ;
row++ ;
delay(20) ;
found = 1 ;
if (prev_billno != billno)
if (flag)
gotoxy(52,row) ;
total_bill = 0.0 ;
row++ ;
gotoxy(4,row) ;
cout <<billno ;
flag = 1 ;
gotoxy(11,row) ;
gotoxy(24,row) ;
cout <<code ;
gotoxy(32,row) ;
cout <<name ;
gotoxy(52,row) ;
cout <<cost ;
gotoxy(59,row) ;
cout <<price ;
gotoxy(67,row) ;
cout <<quantity ;
gotoxy(73,row) ;
cout <<total ;
if ( row >= 23 )
row = 5 ;
gotoxy(66,1) ;
pageno++ ;
gotoxy(1,25) ;
getche() ;
clrscr() ;
gotoxy(30,2) ;
gotoxy(3,4) ;
cout <<"Billno. Date Item Code Mobile name M.code Price Qty Total" ;
gotoxy(3,5) ;
cout
<<"==================================================================
=========" ;
prev_billno = billno ;
row++ ;
gotoxy(52,row) ;
if ( !found )
gotoxy(5,10) ;
gotoxy(66,1) ;
gotoxy(1,25) ;
getche() ;
file.close () ;
//**********************************************************
//**********************************************************
void main(void)
clrscr() ;
menu m ;
m.main_menu() ;
8.OUTPUT
9. CONCLUSION
Our project is only a humble venture to satisfy the needs in a Periodic Table. Several user
friendly coding have also adopted. The project titled Periodic Table is an application software
for monitoring and helping for searching the details of each elements in modern periodic
Table.The project “Periodic Table” is developed in Object Oriented Programming Language like
C++ which mainly focuses on basic details of each elements in periodic Table.
The “Periodic Table” has the potential of servicing as a powerful tool in the
speedier and more precise functioning. This system can add much to the goodwill because it
reduces the time taken to render services drastically .The recourses needed to run the system is
less in cost and highly reliable. The implementation and operation of the system can be carried
out with minimal expense and expertise. The system can be judged beneficial to the registration,
as it requires no specifically trained professional to operate it. Most functions are automated and
user friendly.
10. BIBLIOGRAPHY
Web Sites:
1) http://www.learncpponline.com/
2) http://www.Cplusplus.com/
3)www.learncpp.com
4)www.tutorialspoint.com
Books: