Library Management Project
December 21, 2022 | Author: Anonymous | Category: N/A
Short Description
Download Library Management Project...
Description
PRESIDENCY SCHOOL BANGLORE EAST
COMPUTER SCIENCE PROJECT ON STUDENT REPEORT C
RD
BY ngela Mariam Nelson
Grade XII 2017 18 CBSE Roll number:_____________ 1
2
ACKNOWLEDGEMENT
In the completion of this project, many have bestowed upon me their heart pledged support. I would like to thank all the people who have helped me in completing this project. I would like to thank our Principal Mr. G Thangadurai for giving me this opportunity and all necessary resources for the completion of this project. I would like to thank my computer science teacher, Mrs. Sathya P whose guidance and valuable inputs helped me complete this project. I would like to extend my sincere gratitude to my friends and family who have helped in this project.
Signature of Candidate Angela Mariam Nelson
3
CONTENTS
SL.NO
TOPIC
1
Objective
2
Different Modules
3
Files Used
4
Data Design
5
Hardware Requirement
6
Software Components
7
C++ Overview
8
Features of C++
9
The structure of a C++ Program
10
Source code
11
Output
12
Future Enhancements
13
Bibliography
PAGE NO
4
OBJECTIVE The objective of the project is to computerize the working of a school library. We analyze the various functions involved in such a system, which comprises mainly of issuing a book and manipulation of members’ details. The details. The various options available on the main menu are:
Administrator
Issuing a book
Depositing a book
The various options available in the administrator menu are:
Create student record
Display all student records
Display specific student records
Modify student record
Delete student record
Create book
Display all books
Display specific book
Modify book
Delete book
5
DIFFERENT MODULES
1. Input Module: All inputs to programs are made in this module. This module consists of the following functionality:
Input details of a new book like book no.,name, author’s name and st udent details like admission no
and name.
Input details of books that are available and details of new members.
Input of the number of books/students whose record is to be modified. The details of book/student
whose record has to me modified is also input.
Book/student number of the corresponding record to be deleted or is also included in this module. The
member
function
involved
are
create_book(),modify_book(),delete_book()
create_student(),modify_student,delete_student().
They
are
employed
in
write_book()
and and
write_student() respectively.
2. Display Module : All outputs in the program are made in this module. This module consists of the following functionality:
Display of lists of books/students and details like book no, name, author’s name/admission no.,
Name,no. of books issued.
Displaying list of product with their prices.
The function function involved involved are are show_book() show_book()
used in display_spb()/ show_student() used in display_sps(). display_sps().
3.Update module : All changes regarding the products and their purchase are made in this module.
The member functions involved are book_issue(), book_deposit().
6
FILES USED The program consists of two files 1.
book.dat
-- This file contains the following fields
1.1.
Book no. - Stores identification number of books.
1.2.
Book name-- Stores name of book.
1.3
Author Name - Stores author’s name. name.
2. student.dat - This file contains the following fields 2.1
Admission no. - stores the admission number of student.
2.2
Name- Stores name of student.
DATA DESIGN 1.Class book 1.1. Data members(private if not mentioned otherwise 1.1.1. Char bno : stores book no. 1.1.2. Char bname : stores book name 1.1.3. Char aname : stores author’s name 1.2. Member functions(all public) 1.2.1. Void create_book(): inputs book details from user 1.2.2. Void show_book(): shows the input details 1.2.3. Void modify_book(): modifies book details 1.2.4. Char* retno(): returns book no. 1.2.5. Void report(): output for table
2. Class student
2.1 Data members 7
2.1.1. char admno: stores admission no. 2.1.2. char name: stores student name 2.1.3. char stbno: stores book no. issued by student 2.1.4. int token : flag variable 2.2 Member function 2.2.1. void create_student(): inputs student details 2.2.2. void show_student(): shows student details 2.2.3. void modify_student(): modifies student details 2.2.4. char* retadmno (): returns admission no. 2.2.5. char* retstbno (): returns book no. 2.2.6. int rettoken(): returns token 2.2.7. void addtoken(): adds token 2.2.8. void resettoken():resets token value to “0” “0” 2.2.9. void getstbno(char t[]):copies book no. into another string 2.2.10.void report(): output to table
8
HARDWARE REQUIREMENTS Processor: intel Pentium 4 CPU
CPU speed: 2.67 GHz
Hard disk memory: 80 GB
Cache :512 KB
SOFTWARE COMPONENTS Operating system: Microsoft Windows XP
Professional Version 2002
Software: Turbo C++
9
C++ OVERVIEW HISTORY OF C++ C++ Programming Language was developed by Bjarne Stroustrup in 1979. Initially the C++ language was named as "C with classes". "C with classes" was renamed to C++ in 1983. The "++" is increment operator in C++. It increments the variable by one value. This name demonstrates the fact that C++ is an extension of a C language.
WHO USES THE C++ PROGRAM? C++ is used in different sectors of the software industry. For example Apple OS is written in C++. Windows 95, 98, Me, 200 and XP are also written in C++. Microsoft Office, Internet Explorer and Visual Studio are written in Visual C++. All the major applications of Adobe Systems (Acrobat, Photoshop, Flash, ImageReady, Illustrator etc.) are developed using C++. Amazon.com is developing software for large scale e-commerce using C++. Google search engine, Chromium Web Browser and some other software is written in C++ too. The is a huge list of companies that are using C++.
WHY TO USE C++? C++ is always used when there is a need in high performance and efficient
applications. It's an
efficient and flexible language. The philosophy of C++ is "Any features that you do not use, you do not pay for (e.g. in performance)". pe rformance)". That’s why C++ is chosen when the task is to build big applications which should use less resources.
WHAT C++ SUPPORTS? C++ supports the Object-Oriented Programming (OOP) Paradigm. It means that all the concepts of the OOP such as Encapsulation, Polymorphism and Inheritance are supported by C++. These topics are discussed in C++ Object Oriented section of this tutorial. The Standard C++ consists of two parts: the core language and the Standard Library. The Standard Library mainly is based on the Standard Template Library (STL). The STL provides a large number of useful tools. It makes application development more efficient. The capabilities provided by STL are described in C++ STL tutorial. 10
C++ FEATURES Objects C++, introduces object-oriented introduces object-oriented programming (OOP) C features to C. It offers offers classes classes which provide the
four distinguishing feature of C++ classes compared to classes in features commonly present in OOP (and some non-OOP) languages: abstraction, languages: abstraction, encapsulation, encapsulation, inheritance, inheritance, and and polymorphism. polymorphism. One One other programming languages is support for deterministic destructors, deterministic destructors,
Encapsulation Encapsulation is the hiding of information to ensure that data structures and operators are used as
intended and to make the usage model more obvious to the developer. C++ provides the ability to define classes and functions as its primary encapsulation mechanisms. Within a class, members can be declared as either public, protected, or private to explicitly enforce encapsulation. A public member of the class is accessible to any function.
Inheritance Inheritance allows one data type to acquire properties of other data types. Inheritance from a base
class may 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. Base classes may be declared as virtual; this is called virtual inheritance. inheritance. Virtual inheritance ensures that only one instance of a base class exists in the inheritance graph, avoiding some of the ambiguity problems of multiple inheritance.
Operators and operator overloading C++ provides more than 35 operators, covering basic arithmetic, bit manipulation, indirection,
comparisons, logical operations and others. Almost all operators can be overloaded be overloaded for user-defined types, with a few notable exceptions such such as member access ( . and .* ) as well as the condition conditional al operator. The rich set of overloadable operators is central to making user-defined types in C++ seem like built-in types. 11
THE STRUCTURE OF C++ PROGRAM
Comments
A comment is text that is ignored by the computer but which nonetheless conveys information to other programmers.
Library inclusions
The inclusion of a header file indicates that the program uses facilities from a library , which is a collection of prewritten functions that perform a set of useful operations,
Function prototypes
Computation in a C++ program is carried out in the context of functions. A function is a unit of code that (1) performs a specific operation and (2) is identified by name.
The main program
Every C++ program must contain a function with the name main. This function specifies the starting point for the computation and is called when the program starts up. When main has finished its work and returns, execution of the program ends.
Function Definitions
Because large programs are difficult to understand in their entirety, most programs are broken down into several smaller functions, each of which is easier to understand.
Variables
Data values in a program are usually stored in variables. You must declare that variable before you use it. Declaring a variable establishes the properties.
Name
Every variable has a name, which is formed according to a certain set of rules.
Type
Each variable in a C++ program is constrained to hold values of a particular data type.
Lifetime
Depending on how they are declared , some variables persist throughout the entire program, while others are created and destroyed dynamically as the program moves through various levels of function call. 12
Scope
The declaration of a variable also controls what parts of the program have access to the variable, which is called its scope.
Local and globe variables
Variables declared with the body of a function are called local variables. The scope of a local variable extends to the end of the block in which it is declared. The lifetime of a local variable is the time during which the function is active. When the function is called, space for each local variable is allocated for the duration of that function call. When the function returns, all its local variables disappear. Variable declared outside any function definition are called global variables. v ariables. The scope of a global variable is the remainder of the file in which it is declared. Its lifetime continues throughout the entire execution of a program.
The concept of a data type
One of the reason C++ requires all variables to be declared is that doing so constraints their contents to values of a particular data type. Integer types Type int corresponds to the standard representations of an integer on the computer system. Values of type int are stored internally in storage units that have a limited capacity. To overcome this, C++ defines three integer types--- int , short and long---distinguished from each other by the size of their domains.
Floating-point types Numbers that include a decimal fraction are called floating-point numbers, which are used to approximate real numbers in mathematics. C++ defines three different floating-point types: float, double, and long double.
Text type In most implementations of C++, the coding system used to represent characters in called ASCII. Characters are most useful when they are collected together into sequential units called strings. Strings make it possible to display informational messages on the screen. Strings are data and that they can be manipulated and stored in much the same way that number can.
13
SOURCE CODE #include #include #include #include #include #include class book { char bno[6]; char bname[50]; char aname[20]; public: void create_book() { cout
View more...
Comments