eXtensible
Baseband Member
- Messages
- 37
- Location
- Earth
Hi eXtensible here,
I've recently created a calculator app designed to replace the standard Calculator app with a more advanced scientific Calculator.
Here is the Download Link: Calculator++ - Browse Files at SourceForge.net
Just Click "Calculator.exe" To begin the download
It's currently in its developing stages and i'm still working to add better framework and more advanced math functions. I plan to release a newer, more advanced version sometime in July.
Also, for Developers, the Source Code is also available for download. Feel free to develop a plugin or just advance the source code.
To Download the Source Code Just Click "Calculator.cpp"
Any questions, Feel free to repost to this thread
I also Thought I Might Include the current Source code.
Source:
I've recently created a calculator app designed to replace the standard Calculator app with a more advanced scientific Calculator.
Here is the Download Link: Calculator++ - Browse Files at SourceForge.net
Just Click "Calculator.exe" To begin the download
It's currently in its developing stages and i'm still working to add better framework and more advanced math functions. I plan to release a newer, more advanced version sometime in July.
Also, for Developers, the Source Code is also available for download. Feel free to develop a plugin or just advance the source code.
To Download the Source Code Just Click "Calculator.cpp"
Any questions, Feel free to repost to this thread
I also Thought I Might Include the current Source code.
Source:
#include <cstdlib>
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int WhichFunction;
cout << "What would you like to do ? " << endl << "HINT: 1 = add, 2 = subtract, 3 = multiply, 4 = divide, 5 = Sqr. Root," << endl << "6 = Exponents" << endl;
cin >> WhichFunction;
switch(WhichFunction){
case 1:
double a;
cout << "Enter the first number: ";
cin >> a;
double b;
cout << "Enter the second number: ";
cin >> b;
double c;
c = a + b;
cout << "Calculating: " << c << endl;
system("PAUSE");
return 0;
break;
case 2:
double aa;
cout << "Enter the first number: ";
cin >> aa;
double bb;
cout << "Enter the second number: ";
cin >> bb;
double cc;
cc = aa - bb;
cout << "Calculating: " << cc << endl;
system("PAUSE");
return 0;
break;
case 3:
double a3;
cout << "Enter the first number: ";
cin >> a3;
double b3;
cout << "Enter the second number: ";
cin >> b3;
double c3;
c3 = a3 * b3;
cout << "Calculating: " << c3 << endl;
system("PAUSE");
return 0;
break;
case 4:
double a4;
cout << "Enter the first number: ";
cin >> a4;
double b4;
cout << "Enter the second number: ";
cin >> b4;
double c4;
c4 = a4 / b4;
if(a4 > 0){
cout << "Calculating: " << c4 << endl;
}
if(b4 > 0){
cout << "Calculating: " << c4 << endl;
}
if(b4 <= 0){
cout << "You Cannot Divide by Zero " << endl;
}
system("PAUSE");
return 0;
break;
case 5:
double a5;
cout << "Enter Your Number: ";
cin >> a5;
double b5;
b5 = sqrt(a5);
cout << "Calculating: " << b5 << endl;
break;
case 6:
double a6,b6;
cout << "Enter your Number: ";
cin >> a6;
cout << "Enter the Exponent: ";
cin >> b6;
double c6;
c6 = pow(a6,b6);
cout << "Calculating: " << c6 << endl;
break;
default:
cout << "An Error Has Occured, Please try and run the program again. ";
break;
}
system("PAUSE");
return EXIT_SUCCESS;
}