You are on page 1of 28

A

PROJECT REPORT
ON

"DIGITAL
CALCULATOR"
SUBMITTED TO
KURUKSHETRA UNIVERSITY
KURUKSHETRA
IN THE PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE
DEGREE OF
B. Sc-III COMPUTER APPLICATION
(SESSION : 2006-2007)

Under the supervision of :

Submitted by :
Ms. Sonia Kapoor Ravi Kumar Saini
(Lect.)Deptt. of Computer Sci & Appl. B.Sc.-III (C.A.)
G.N.Kh. College, YNR Univ. Roll No. 0412596

GURU NANAK KHALSA COLLEGE,


YAMUNA NAGAR-135001
Acknowledgem
ent
ACKNOWLEDGMENT

Regarding the project completion a lot of people are concerned who assist me
during the development of this project. Project is like a bridge between theoretical
and pracitcal.
Today after completing my project. I feel great relief and satisfaction. Now when I
look back. I still remember the day when I was assigned this project “DIGITAL
CALCULATOR”
I would like to pay my thanks towards Mr. Bharat Bhushan (H.O.D.
Computer Sci. & Application) & Ms. Sonia Kapoor (Lect of Compt. Appl)
who had provided the opportunity to collect information about my project.
I would like to thank our principal Dr. B.S. Dhilon (Principal) G.N.
Khalsa College, YNR for taking interest in the completion of my project. Finally
I wish to offer the regards to my lecturers who not only taught me through the year
but also becoming helpful in solving all problems related to project.
This letter of thanks would be incomplete if I missed out the mention of my
friends and my family members. I am very thankful to my Parents, which have
been a constant source of inspiration for me from the very starting of my life.

Ravi Kumar Saini


B.Sc-III(C.A.)
Roll No. 6285
INDEX

CERTIFICATE

ACKNOWLEDGEMENT

INTRODUCTION TO PROBLEM AREA (Existing System)

PROPOSED SYSTEM

INTRODUCTION TO C++

SYSTEM DESIGN

a. INPUT DESIGN

b. OUTPUT DESIGN

c. PROGRAM CODING

OUTPUT OF PROJECT

ADVANTAGES OF SYSTEM

LIMITATIONS OF SYSTEM

CONCLUSION

REFERENCES
Certificate
GURU NANAK KHALSA COLLEGE (CO-ED)
YAMUNA NAGAR-135001
PHONE NO. –01732-222575, 220575

Date: …………….

TO WHOM IT MAY CONCERN

Certified that Mr. Ravi Shankar a student of B.C.A.-IIIrd year,

Computer Application of College, bearing college Roll No.

……………….. and has completed the project entitled “Bookshop

Management System” which is a compulsory part of syllabus.

It is further certified that the project work is candidate’s own work

and is not submitted elsewhere for any other purpose.

We wish him every success in his life.

Dr. Bharat Bhushan Ms. Sonia Kapoor


HOD in Comp. Sci & Appl. Lecturer in Comp. Sci & Appl.
G.N.Kh. College, YNR G.N.Kh. College, YNR
Introduction
INTRODUCTION

A Pocket Calculator

Now that we know how to compile multi-file programs, let’s look

at our first example based on its approach. Suppose you plan to write

a program that models a function pocket calculator, planning a picture

of calculator on the screen. However, you don’t want to go to the

trouble of programming the visual elements, such as push buttons

and output display windows. Fortunately, you know where to obtain a

set of classes designed to model the elements of screen calculators.

You use these ready classes to model. You use these ready-made

classes to model the visual elements, and we write the interface and

math routines yourself. In this example we will show these two major

parts of the program, and how they fit together.

The complete program puts a four function calculator on the

screen
Problem Area
PROBLEM AREA

Computer utilities is one of the most powerful and interesting facet of

computers. There is a lot that you can do in utility, Apart from

diagnostic, backup & other jobs. All video games, animation,

multimedia predominately works etc, are computer utilities. There are

many options sued in different utilities.

Next to a major utilities / accessories provided by the windows is

calculator. This is a digital calculator. It just work in windows

environment. Next to this a Calculator is always shown on the

progam. Accessories bar of start menu.

To provide a good mannered feature to the end user I simply

start developing a project of Calculator in a visual manner. In the

display not only working Calculator shown. It can number system

when we require it. It’s simply depending on user defined month, year

and date. By using options Addition to all this I will try my best to

make this project a user friendly. Any user a layman, end user or

navies users can use this project.


Proposed
System
PROPOSED SYSTEM

This project demonstrates the graphic display on the screen where

we having the major options of Calculator. Firstly we press numeric

buttons to enter the project. Where as it’s a small project which

simply overcomes with the utility of a Calculator. This project works

on the DOS environment. Next to this it’s very useful for the use of

end users that requires a Calculator.

This proposed system is just having a single C++ file which

simply couture the system time. Which simply displayed on the

screen with Calculator.


TOOLS/ PLATFORM & LANGUAGE

 C++ Language
 DOS 6.22 (Operating System) WIN95/98/NT O/S

INTRODUCTION

Object-Oriented Programming (OOP) is the most dramatic

innovation in Software development in the last decade it

ranks in importance with the development of the first

higher-level language at the dawn of the Computer age

sooner or later every programmer will be affected by the

Object-Oriented approach to program design. C++ or

Object-Oriented Programming language is an extension of

C language that is widely used on many machines. C++ is

an Object Oriented Programming language initially named

C with classes. Bjarne Stroustrupt at AT&T Bell

laboratories in Murry Hill, New Jersey, developed C++

USA in the early eighties. It is a powerful modern

language that combines the power, elegance and flexibility

of C.
Stroustrup, an admirer of Simula 67 and a strong supporter

of C, wanted to combine the best of both languages and

create a more powerful languages that could support

Object Oriented Programming features and still retain the

power of C.

C++ is an extension of C with a major addition of the class construct

Feature of Simula 67. Most of what we already know about C applies

to C++ also. Therefore almost all-C programs are also C++ programs

the three most important facilities that C++ ads on to C are classes,

function overloading and operator overloading. These features enable

us to create abstract data types, inherit properties from existing data

types and support polymorphism, thus making C++ a truly Object

Oriented Language.

The chief problem with Computer programs is complexity. Object

Oriented Programming offers a new and powerful way to cope with this

complexity. The Object Oriented features of C++ allow programmers to


build large programs with clarity, extensibility and ease of maintenance

incorporating the spirit of efficiency of C.


System
Analysis &
Design
System Analysis & Desing

The system study is a step by step process used to identify

and develop specific requirements to control the processing

specific applications. It is detailed statement of the scope and

structuralize of the system study.

Designing of a system plays a very important role in the

development of the system software. System design comprises

of following:

Input Design: Input design is a part of overall system

designing which requires very careful attention as collection of

the input data is the most expensive part of system. Inputs are

also used to detect errors to some extent in between the

programming procedures in other w3ords, it is a process of

designing the inputs of the system. I have included following

inputs in my project of Calculator.

When project is executed, then menu is appears in the form of

Calculator with visual buttons with respective options.


The input will give their respective outputs on the screen.

Output Design:

The outputs of the system is define during the logical design

stage. The normal procedure is to design the outputs in detail

first and then to work back to the inputs.

In the proposed system, output will be in the form of specific

screen area. On the particular option selected from the

buttons, the corresponding screen will display the calculation

result.
Project Analysis

The Base class window:

In CALC.H we first declare a base class called window that has

the characteristics described above. Its private data includes

the left, top, right and bottom coordinates of the outside edge

of the window. A variable, detla, specifies the distance in pixels

between the inside and outside edges, the variables delta color

and center color hold the color of space between edges and the

color of the inner rectangle, resp.

Window owners:

In a visual image like a calculator, graphics elements have a

fixed visual relationship to one another; the “1” button is next

to the ‘”2” button, and so forth. Ordinarily we want to position

one graphics element at a particular location on the screen

and then position another graphics elements reallocated to

first. In our calculator, we want to position the border relative


to the screen and then position the buttons and the output

window related to this border.

Advantages of
the Project
Advantages of Project

 Enhances the caliber of beginner to develop some thing

new.

 Can change the year/ month at any time just be pressing

arrow keys.

 The calculator which appear on the screen is very clear to

trace date and for the navies user.

 In class room teaching of school it can be sued to tell

students about Calculator system, how we calculate data

etc.

 No need of better system hardware & software

requirements.

 Close to user.
LIMITATIONS
LIMITATIONS

 The mouse programming is not used.

 It is not a scientific calculator.

 It will consider the answer of first operation as the second

operand for next operation.


CONCLUSION
CONCLUSION

The calculator is used:

1. In schools & colleges for general purpose calculations.


REFERENCES
REFERENCES

WE TOOK THE HELP OF VARIOUS BOOKS


MENTIONED BELOW

COMPLETE REFERENCE C++


Robert Laffore
LET US C++

YASHWANT KANETEKAR
GURU NANAK KHALSA COLLEGE (CO-ED)
YAMUNA NAGAR-135001
PHONE NO. –01732-222575, 220575

Date: …………….

To Whom It May Concern

Certified that Mr. Prashant Singh a bonafide student of B.C.A.-III year of

Guru Nanak Khalsa College, Yamuna Nagar under University Roll No.

………………………has completed the project entitled “Teacher Resume

Keeping System” under my guidance, which is a compulsory part of syllabus.

It is further certified that the project work is candidate’s original work and is not

submitted elsewhere for any other purpose.

We wish him ever success in his life.

Dr. Bharat Bhushan Mrs. Meenakshi Puri


Head Lecturer,
Deptt. of Computer Sci. & Application Deptt. of Comp. Sci & Application
Guru Nanak Khalsa College, YNR Guru Nanak Khalsa College, YNR

You might also like