0% found this document useful (0 votes)
7 views

Oops

Uploaded by

londheprerana72
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Oops

Uploaded by

londheprerana72
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

PART-A

PLAN BASIC CALCULATOR


1.Brief Description:

This C++ microproject implements a basic calculator that performs arithmetic operations such as addition,
subtraction, multiplication, and division. This program takes an arithmetic operator (+, -, *, /) and two
operands from a user and performs the operation on those two operands depending upon the operator entered
by the user.

2. Aims of the micro project :

Implement a basic calculator that performs arithmetic operations. Understand and apply basic C++
programming concepts. Develop problem-solving skills using C++. Programming logic and problem-
solving, C++ syntax and semantics, code organization and readability, error handling and debugging, and
user interface design.

3. Course outcomes addressed:

1.Write C ++ programme using classes And object

2.developed c++programme using constructor

3. implement inheritance in C++.

4. implement polymorphism in C++

5.Develop C programme to perform file operations.

4. Proposed Methodology:

Phase 1: Planning and Design

Phase 2: Implementation

Phase 3: Testing and Debugging

Phase 4: Documentation and Deployment


5. Action plan:

6. Resources used:

Team Member:
1.Sonwane Neha Nagnath

2.Mugale Radhika Baliram.

3.Londhe Prerana Sudhakar.

SR DETAILS OF ACTIVITY PLANNED PLANNED NAME OF


NO START DATE FINISHED DATE RESPONSIBLE
TEAM
MEMBERS
1. Gathering The Raw Information 18/08/2024 24/08/2024
SR Related
NAME OF
To Project SPECIFICATION QUANTITY REMARKS
2. NO Analysis
RESOURCES 25/08/2024 04/09/2024
3. 1. Designing
pc 05/09/2024
Processor I5 18/09/2024
1 1.Sonwane Neha Nagnath
4. Implement of Coding 19/09/2024 25/09/2024 2.Mugale Radhika Baliram.
2. software Oracle 1
5. Testing of Project 26/09/2024 30/09/2024 3.Londhe Prerana Sudhakar.

6. Deployment of Module 03/10/2024 07/10/2024


7. 3. Prepare
internet
Out Put Goggle, Chat GPT
11/10/2024 1
22/10/2024
8. Prepare Report Micro Project 01/11/2024 10/11/2024

Part B- Outcomes After Execution


1.Rationale: -
1. Implement basic arithmetic operations (+, -, *, /).
2. Handle user input and output.
3. Validate and handle errors (e.g., division by zero).
4. Provide a user-friendly interface.
5. Apply C++ programming concepts (variables, data types, operators).

2. Brief Description: -
 Key Features:

 Perform basic arithmetic operations (+, -, *, /)


 Handle invalid input and division by zero errors
 Allow users to continue calculations or exit
 Display calculation results
 User-friendly interface
 Programming Concepts:-

 C++ basics (variables, data types, operators)


 Function definitions and calls
 Control structures (if-else, switch)
 Error handling and input validation
 Skills Developed:

 C++ syntax and semantics


 Code organization and readability
 Error handling and debugging
 User interface design

3. Aims of the micro project

 Primary Aims:

1. Develop a fully functional basic calculator program in C++.

2. Demonstrate understanding of C++ programming fundamentals.

 Specific Aims:-
1. Implement basic arithmetic operations (+, -, *, /).

2. Design a user-friendly interface

3. Allow users to continue calculations or exit.

4. Display calculation results.

 Learning Aims:

1. Understand C++ basics (variables, data types, operators).

2. Learn function definitions and calls.

3. Understand control structures (if-else, switch).

4. Practice error handling and input validation.

 Skill Development Aims:

1. Programming logic and problem-solving.

2. C++ syntax and semantics.

3. Code organization and readability.

4. Error handling and debugging.

 Project Outcome Aims:

1. A fully functional basic calculator program.

2. Demonstrated understanding of C++ programming concepts.

3. Improved programming skills and problem-solving abilities.

 Educational Aims:

1. Enhance programming skills in C++.

2. Develop analytical and problem-solving skills.

3. Understand software development principles.


4. Course Outcomes Achieved: -

1. Understand C++ programming fundamentals.

2. Apply problem-solving skills using C++.

3. Design and implement simple programs.

4. Use debugging techniques.

5. Document and present programming projects.

5. Material: -

To understand this example, you should have the knowledge of the following C++ programming
topics:

 C++ switch case Statement


 C++ break Statement
 C++ continue Statement

6.Theoretical Background: -

*What is a calculator?

A calculator is a device that performs arithmetic operations on numbers. Basic calculators can do
only addition, subtraction, multiplication and division mathematical calculations. However,
more sophisticated calculators can handle exponential operations, square roots, logarithms,
trigonometric functions and hyperbolic functions. Internally, some calculators perform all these
functions by repeated addition processes. The evolution of the calculator Most calculators these days
require electricity to operate or are battery-powered calculators. Calculators work by
performing programmed functions based on numerical inputs. Before the electronic calculator
(circa 1970), a more primitive calculator, the slide rule, was commonly used. It consisted of a slat of
wood called the slide that could be moved in and out of a reinforced pair of slats. Both the slide and
the outer pair of slats had calibrated numerical scales.

* What are the benefits of using calculators?

This technology allows students solve complicated problems quickly and in an


efficient manner. Additionally, it can reduce the problem to simpler tasks and allows the student to
devote more time in understanding the problem. Secondly, they are saved from monotonous
calculations and the same boring mundane procedure

* What is the purpose of a variable in a calculator application?

Variables can be used in any equation and are substituted for their assigned value. Variables can be
inserted using the x button.

* What is the most important between a computer and a calculator?

A computer can perform any operation that a calculator is capable of performing, but a calculator cannot
carry out the logical and highly complex problems. The reason behind this is that a computer can be
programmed to make decisions, but a calculator is not equipped with that technology.

7.Algorithum:-

Step 1: Start

Step 2: The operator is stored in variable op and two operands are stored in num1 and num2

respectively.

Step 3: Then, switch...case statement is used for checking the operator entered by user.

Step 4: If user enters + then, statements for case: '+' is executed and program is terminated.

Step 5: If user enters - then, statements for case: '-' is executed and program is terminated.

Step 6: This program works similarly for the * and / operators. But, if the operator doesn't matches

any of the four character [ +, -, * and / ], the default statement is executed which displays error
message.

Step 7: End

7. code:
#include<iostream.h>
#include<conio.h>
#include<process.h>
Void main()
{
int ch;
float num1, num2, result;
cout << "Basic Calculator Program" << endl;
cout << "1. Addition" << endl;
cout << "2. Subtraction" << endl;
cout << "3. Multiplication" << endl;
cout << "4. Division" << endl;
cout << "5. Exit" << endl;
while{
cout << "Enter your choice (1-5): ";
cin >> choice;
if (choice == 5)
{
Break;
}
cout << "Enter first number: ";
cin >> num1;
cout << "Enter second number: ";
cin >> num2;
switch (ch)
{
case 1:
result = num1 + num2;
cout << "Result=”<<Result<<endl;
break;
case 2:
result = num1 - num2;
cout << "Result=”<<Result<<endl;
break;
case 3:
result = num1 * num2;
cout << "Result=”<<Result<<endl;
break;
case 4:
if (num2 != 0)
{
result = num1 / num2;
cout << "Result=”<<Result<<endl;
}
Else
{
cout << "Error! Division by zero is not allowed." << endl;
break;
}
default:
cout << "Invalid choice. Please choose again." << endl;
}
Getch();
}

8.OUTPUT:
9.Skill developed/learning outcomes of this micro project

 Technical Skills:

1. C++ programming fundamentals

2. Variables, data types, and operators


3. Control structures (if-else, switch, loops)

4. Functions and function calls

5. Input/Output operations (cin, cout)

6. Basic arithmetic operations (+, -, *, /, %)

7. Error handling and debugging

 Programming Concepts:

1. Algorithm design and implementation

2. Problem-solving strategies

3. Code organization and readability

4. Variable naming conventions

5. Code reusability and modularity

 Soft Skills:

1. Analytical thinking and problem-solving

2. Logical reasoning and decision-making

3. Time management and organization

4. Attention to detail and debugging

5. Self-directed learning and resourcefulness

10.Application of the micro project:

 Real-World Applications:

1. Scientific Calculations:
The calculator can be used for scientific calculations, such as physics, engineering, or
mathematics problems.
2. Financial Calculations:
The calculator can be used for financial calculations, such as calculating interest rates,
investments, or loan payments.
3. Educational Tool:
The calculator can be used as an educational tool for teaching mathematics, algebra, or
programming concepts.
4. Embedded Systems:

The calculator can be integrated into embedded systems, such as calculators, watches, or
other handheld devices.

5. Gaming:
The calculator can be used in game development for calculations, such as physics, collision
detection, or scoring.

You might also like