Professional Documents
Culture Documents
R.sharvesh Typical Calculator
R.sharvesh Typical Calculator
Sharvesh
Department: Computer Science and Engineering
College Name: Rajalakshmi Engineering College
AIM :
To construct a typical calculator
ALGORITHM:
Step 1: Start
Step 2: Obtain the two numbers from the user.
Step 3: Ask the user about the operation which is to be performed
upon them.
Step 4: Create user-defined functions for addition, subtraction,
multiplication, division and modulo.
Step 5: Perform the desired operation and produce the output to the
user using switch-case statement.
Step 6: Stop.
PROGRAM:
// program for a typical calculator
#include<iostream>
using namespace std;
return 0;
}