Computer Project Work
Computer Project Work
MySQL”
Submitted To :- Submitted by : -
1. The work contained report is original and done under the general
supervision of of my Faculty .
2. The work has not been submitted to any other Institution for class XII
Senior Secondary Examination , AHSEC Board.
INTRODUCTION
The code of the calculator application mainly comprise the standard calculator.
The standard calculator class helps to perform standard calculation.This
contains static function so as to ensure that these function can be called in the
main function through class name.
LOGIC OF THE PROJECT
PROJECT
Creating the standard calculator :
The standard class aims at performing specific task related to standard calculation.These
task are : -
To perform the above mentioned task , the standard calculator class implements the
following member function .
FUNCTION Description
Addition Returns the sum of two or more numbers
#include <iostream>
#include <vector>
double sum = 0;
sum += num;
return sum;
result -= numbers[i];
return result;
double product = 1;
product *= num;
return product;
}
double divide(const vector<double>& numbers) {
if (numbers[i] == 0) {
result /= numbers[i];
return result;
int main() {
char operation;
int count;
vector<double> numbers;
double num;
numbers.push_back(num);
try {
switch (operation) {
case '+':
case '-':
break;
case '*':
break;
case '/':
break;
default:
return 0;
OUTPUT SCREEN
Main screen : -
CHOOSE THE NUMBER OF OPERANDS
Acknowledgment
I would like to express my sincere gratitude to everyone who contributed to the
successful completion of this project. I am deeply thankful to my Mentor,
Supriya Mahanta , for their invaluable guidance, insightful feedback, and
continuous support throughout the course of this project. Their expertise and
encouragement greatly contributed to shaping this work.
Thank you.