Upload
amrit-sian
View
215
Download
0
Embed Size (px)
Citation preview
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
1/17
CSE-202 TERM PAPER
ON
CA System
Submitted To :- Mr. Vinod Kumar
Submitted By :- AMRITPAL SINGH
Reg. No. :- 11005181
Section :- K1008
Roll no. :- RK1008A29
INDEX
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
2/17
OVERVIEW TO C++
LANGUAGE
IMPORTANCE OF C++
LANGUAGE
INTRODUCTION
DESCRIPTION
REQUIREMENT ANALYSIS
SYSTEM DESIGN
SYSTEM REQUIREMENTS
SOURCE CODE
TESTING
FUTURE SCOPE OF THEPROJECT
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
3/17
ACKNOWLEDGEMENTI take this opportunity to present my votes of thanks to all
those guidepost who really acted as lightening pillars to
enlighten our way throughout this project that has led tosuccessful and satisfactory completion of this study.
We are really grateful to our HOD for providing us with an
opportunity to undertake this project in this university and
providing us with all the facilities. We are highly thankful to Mr.
Vinod Sir for his active support, valuable time and advice,
whole-hearted guidance, sincere cooperation and pains-taking
involvement during the study and in completing the
assignment of preparing the said project within the time
stipulated.
Lastly, We are thankful to all those, particularly the various
friends , who have been instrumental in creating proper,
healthy and conductive environment and including new and
fresh innovative ideas for us during the project, their help, it
would have been extremely difficult for us to prepare the
project in a time bound framework.
Name Amritpal Singh
Regd.No 11005181
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
4/17
Rollno. RK1008A29
OVERVIEW TO C++ LANGUAGE
C++ is a popular general purpose programming language. It is
one of the most popular computer languages today, because it
is a structured, high level, machine independent language.
The root of all modern language is ALGOL, introduced in early
1960s. ALGOL was the 1stcomputer language to use a block
structure. Subsequently, several other languages were
announced after 1960s. In 1967, Martin Richard developed a
language called BCPL i.e. basic combined programming
language mainly for writing system software. In 1970, Ken
Thompson created a language using many features of BCPL
and called it simply B. B was used to create early version of
UNIX operating system.
C++ was evolved from ALGOL, BCPL, and B by Dennis Ritchie
at the Bell Laboratories in 1972, strongly associated with UNIX.
During 1970s, C had evolved into the TRADITIONAL C. With
the publication of the book The C Programming language by
Brian Kerningham and Dennis Ritchie in 1978, it becomes more
powerful.
In 1983, American National Standards Institutes (ANSI)appointed a technical committee to define a standard for C++.
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
5/17
The committee approved a version of C in December 1989,
which is now known as ANSI C. It was then approved by
International Standard Organization (ISO) in 1990.
IMPORTANCE OF C++
The increasing popularity of C is probably due to its many
desirable qualities. The C compiler combines the capabilities of
an assembly language with the features of a high level
language and therefore it is well suited for writing both system
software and business packages. In fact many of the C
compilers available in the market are written in C. Programs
written in C are efficient and fast. This is due to its variety of
data types and powerful operators. It is many times faster than
BASIC.
There are only 32 key words in ANSI C and its strength lies in its
built in functions. C is highly portable; this means that C
programs written for one computer can be run on another withlittle or no modifications. C language is well suited for
structured programming, thus requiring the user to think of a
problem in terms of function modules or blocks. This modular
structure makes program de-bugging, testing and maintenance
easier.Another important feature of C is its ability to extend
itself. We can continuously add our own functions to C library,
thus our programming task becomes so easier and simple.
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
6/17
INTRODUCTION
DEVELOPMENT OF A C++ PROGRAM FOR
CALCULATING STUDENTS CONTINOUS ASSESSMENT.
You are to develop a student record system that makesuse of the C++ programming language
The record system is to be used to get and hold
information about your assignment results for one
semester of your degree. This will allow you to keep
track of your marks for each of the 4 tests and 10 lab
evaluations and a term paper and ,display the total foreach unit as you progress,display the marks and the ca
also in percentage, as well as your average mark for
the whole semester.
The units of study,the type of assessment, and its
percentage of the overall unit mark are given in the
table below:-
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
7/17
4 assignments + tests (25 marks each)(best 3 will
be taken)
10 lab evaluations (10 marks each) and
Term paper (25 marks)
This term paper project is just an application of the
language C++ in developing softwares.
DESCRIPTIONBefore developing software we keep following things in mind
that we can develop powerful and quality software
PROBLEM STATEMENT:
o Problem statement was to design a module:
o Which is user friendly
o Which will restrict the user from accessing other users
data.
o Which will help user in viewing his data and privileges.
o Which will help the administrator to handle all the
changes.
FUNCTIONS TO BE PROVIDED:
The system will be user friendly and completely menu driven so
that the users shall have no problem in using all options.
o The system will be efficient and fast in response.
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
8/17
o The system will be customized according to needs.
o Enter Data
o Validate data
o Execute Data
o Display results
REQUIREMENT ANALYSIS
This process is adopted when management of the system
development ,Personnel decide that the particular systemneeds improvement. The system development life cycle is the
set of activities, carried out by the analyst, designers and users
to develop and implement a system. The systems that are
present in the nature follow common life cycle pattern. For
example consider the raining system. Initially the rain falls into
the river, river flows into sea, the sea water evaporates to form
vapours, the vapours form clouds which again bring rain.
Similarly consider a man- made system initially a system isanalysed, designed and made operational by the efforts of
system analysis. After successful operation or a number of
users, the system becomes less and less effective by change in
the environment. So these changes have to be incorporated in
to the system by minor modifications. So the general activities
from the life cycle of the system are given below:
Select ion and identification of the system to be studied
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
9/17
Preliminary study
Defining the system
Design and development of the system
Implementation of the system
SYSTEM DESIGNThen we began with the design phase of the system. System
design is a solution, a HOW TO approach to the creation of a
new system. It translates system requirements into ways by
which they can be made operational. It is a translational from a
user oriented document to a document oriented programmers.
For that, it provides the understanding and procedural details
necessary for the implementation. Here we use Flowchart tosupplement the working of the new system. The system thus
made should be reliable, durable and above all should have
least possible maintenance costs. It should overcome all the
drawbacks of the Old existing system and most important of all
meet the user requirements.
The program will ask the user for the marks obtained in
the 4 assignments and tests of 25 marks each.
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
10/17
After getting the marks the program will calculate the 3
highest marks by using if statement and store in the
memory for further execution
Secondly it will fetch marks for the 10 lab evaluations of10 marks each and it will add all the marks and will store
it and afterwards it will convert it into 30 marks, which
means total/30
In the last it will ask the user to enter the marks obtained
in the term paper which will be of 25 marks.
After this it will add the total of all the above three and
display it in percentage as well as numbers.
STAR
T
ENTER MARKS IN
ASSIGNMENT
ENTER MARKS IN
TERM PAPER
ENTER MARKS IN
LAB EVALUATIONS
STOTOTAL MARKS AND CA
OBTAINED
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
11/17
SYSTEM REQUIRMENTS
Operating system: MS Windows XP or Windows Vista
Language: C++ Language
Processor: Pentium IV Processor
RAM: 512 MB
Hard disk: 5 GB
SOURCE CODE
#include
#include
void main()
{
clrscr();
float a1,a2,a3,a4,ta;
float l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,temp,tl;
float tp;
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
12/17
float total;
float CA;
cout
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
13/17
}
cout
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
14/17
cout
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
15/17
TESTING
Testing is the major control measure used during software
development. Itsbasic function is to detect errors in the
software. During requirementanalysis and design, the output is
a document that is usually textual and noexecutable. After the
coding phase, computer programs are available thatcan be
executed for testing purpose. This implies that testing not only,has touncover errors introduced during coding, but also errors
introduced duringprevious phase. Thus the goal of testing is to
uncover the requirements,design and coding errors in the
programs. So after testing the outputs of myproject are as
follows:
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
16/17
FUTURE SCOPE OF THE
PROJECTOur project will be able to implement in future after makingsome change sand modifications as we make our project at a
very low level. So the modifications that can be done in our
project are:** With the help of this project we are not able to
calculate continuous assessment for a single student but for a
no of students and will aslo be able to store like in a
database.This project will be very useful for the students to
8/3/2019 CA System 11005181 Amritpal Singh K1008 A29
17/17
calculate their CA and will be able to know how much marks
he/she needs to improve his/her CA as well as CGPA.