Sunteți pe pagina 1din 9

C-progrAmming Mini-

Project
CALCULATOR
Objectives
What is C ?
Description about the mini-project
Basic ideas about the project
Strategy used in coding

Contents included
Objective:
The main objective of our project is:
• To create a project using C-programming and its features.
• To implement features like control statement, structures, etc.
• To be familiar with resource reusability by making user defined
function.
• To make the program easy while running it.
• To get an idea about making a simple project using C.
• To be able to solve problems by Compiling and Debugging.
• To learn C programming by applying our practical knowledge
that we learnt throughout the semester.
C is a computer programming language. That means
that you can use C to create lists of instructions for a
computer to follow. C is one of thousands of
programming languages currently in use. C has been
around for several decades and has won widespread
acceptance because it gives programmers maximum
control and efficiency. C is an easy language to learn.
It is a bit more cryptic in its style than some other
languages, but you get beyond that fairly quickly.

What is C ?
Our project is to make a calculator by using C as
programming language. This calculator will be beneficial for
normal uses as it is able to solve all the normal mathematical
problems used in daily life. Simple mathematical
calculations like addition, subtraction, multiplication,
division as well as other mathematical operations like
factorial, permutations, combinations, etc. can be easily
solved by using this calculator. Problems related with
complex number can be easily solved by this calculator.
Conversion can also be performed by using this calculator.

Description about the Mini-project


 A simple calculator is a program which can be used in
normal life operations. Different operations like addition,
subtraction, multiplication, division, exponential and power
operations, permutation and combination, factorial, addition
and multiplication of two programs, square root, cube root,
square, cube, etc. and other operations can be performed
using this calculator. Complex operations like multiplication
and addition of two matrices can also be performed using
this calculator. The value of all trigonometric functions in a
angle can be calculated using this calculator. Decimal
numbers can be converted into binary, octal and hexa-
decimal numbers and binary, octal and hexa-decimal
numbers can be converted into decimal numbers using this
Basic Ideas About the Project
calculator. These kind of operations are shown in the
operation table and each operation is given a specific number
and the user should select the number to perform the
required operation. When the required operation is
Strategy used in coding

The strategy used in the making simple calculator is the


selective one. At the run time of the program it is going to
supply a range of options for the user which includes
calculation of different types . User are requested to select
one of the calculation which he wanted to perform . This
calculator is able to perform the operations with more than
two operands . but if the user gives wrong input the
calculator is simply going to display “input error, syntax
error, please give a valid input.”

S-ar putea să vă placă și