fdai7782
11 months ago
1 changed files with 89 additions and 89 deletions
@ -1,89 +1,89 @@ |
|||
#ifndef TASCHENRECHNER_H |
|||
#define TASCHENRECHNER_H |
|||
|
|||
//add function |
|||
double add(double a, double b); |
|||
|
|||
//minus function |
|||
double minus(double a, double b); |
|||
|
|||
//multiply function |
|||
double multiply(double a, double b); |
|||
|
|||
//divide function |
|||
double divide(double a, double b); |
|||
|
|||
//get input and check if its a number |
|||
double testForNumber(); |
|||
|
|||
//get input and check if its a operator |
|||
char testForOperator(); |
|||
|
|||
// Square root function |
|||
double squareRootFunction(double x); |
|||
|
|||
//.. |
|||
// Trigonometric functions |
|||
double sineFunction(double angle); |
|||
|
|||
double cosineFunction(double angle); |
|||
|
|||
double tangentFunction(double angle); |
|||
|
|||
//.. |
|||
// Logarithmic functions |
|||
double logarithmFunction(double x); |
|||
|
|||
double naturalLogarithmFunction(double x); |
|||
|
|||
double logarithmBase2Function(double x); |
|||
|
|||
//.. |
|||
// Exponential function |
|||
double exponentialFunction(double x); |
|||
|
|||
// .. |
|||
// Bitwise AND function |
|||
int bitwiseAND(int num1, int num2); |
|||
|
|||
// Bitwise OR function |
|||
int bitwiseOR(int num1, int num2); |
|||
|
|||
// Bitwise XOR function |
|||
int bitwiseXOR(int num1, int num2); |
|||
|
|||
int mode(int userChoice); |
|||
|
|||
int displayMenu(); |
|||
|
|||
//Conversion Functions |
|||
double ConMeter(double meter, int startingUnit, int endingUnit); |
|||
|
|||
double ConMeterToFoot(double distance, int startingUnit, int endingUnit); |
|||
|
|||
double ConKilometerToMiles(double distance, int startingUnit, int endingUnit); |
|||
|
|||
double ConGram(double weight, int startingUnit, int endingUnit); |
|||
|
|||
double ConGramToPounds(double weight, int startingUnit, int endingUnit); |
|||
|
|||
double ConTemp(double temp, int startingUnit, int endingUnit); |
|||
|
|||
double ConSpeed(double speed, int startingUnit, int endingUnit); |
|||
|
|||
double ConLiter(double liter, int startingUnit, int endingUnit); |
|||
|
|||
double ConLiterToGallon(double fluid, int startingUnit, int endingUnit); |
|||
|
|||
double ConData(double data, int startingUnit, int endingUnit); |
|||
|
|||
double ConArea(double area, int startingUnit, int endingUnit); |
|||
|
|||
double ConVolume(double volum, int startingUnit, int endingUnit); |
|||
|
|||
double ConClock(double time, int startingUnit, int endingUnit); |
|||
|
|||
double ConTime(double time, int startingUnit, int endingUnit); |
|||
|
|||
|
|||
#endif // TASCHENRECHNER_H |
|||
#ifndef CALCULATOR_H |
|||
#define CALCULATOR_H |
|||
|
|||
//add function |
|||
double add(double a, double b); |
|||
|
|||
//minus function |
|||
double minus(double a, double b); |
|||
|
|||
//multiply function |
|||
double multiply(double a, double b); |
|||
|
|||
//divide function |
|||
double divide(double a, double b); |
|||
|
|||
//get input and check if its a number |
|||
double testForNumber(); |
|||
|
|||
//get input and check if its a operator |
|||
char testForOperator(); |
|||
|
|||
// Square root function |
|||
double squareRootFunction(double x); |
|||
|
|||
//.. |
|||
// Trigonometric functions |
|||
double sineFunction(double angle); |
|||
|
|||
double cosineFunction(double angle); |
|||
|
|||
double tangentFunction(double angle); |
|||
|
|||
//.. |
|||
// Logarithmic functions |
|||
double logarithmFunction(double x); |
|||
|
|||
double naturalLogarithmFunction(double x); |
|||
|
|||
double logarithmBase2Function(double x); |
|||
|
|||
//.. |
|||
// Exponential function |
|||
double exponentialFunction(double x); |
|||
|
|||
// .. |
|||
// Bitwise AND function |
|||
int bitwiseAND(int num1, int num2); |
|||
|
|||
// Bitwise OR function |
|||
int bitwiseOR(int num1, int num2); |
|||
|
|||
// Bitwise XOR function |
|||
int bitwiseXOR(int num1, int num2); |
|||
|
|||
int mode(int userChoice); |
|||
|
|||
int displayMenu(); |
|||
|
|||
//Conversion Functions |
|||
double ConMeter(double meter, int startingUnit, int endingUnit); |
|||
|
|||
double ConMeterToFoot(double distance, int startingUnit, int endingUnit); |
|||
|
|||
double ConKilometerToMiles(double distance, int startingUnit, int endingUnit); |
|||
|
|||
double ConGram(double weight, int startingUnit, int endingUnit); |
|||
|
|||
double ConGramToPounds(double weight, int startingUnit, int endingUnit); |
|||
|
|||
double ConTemp(double temp, int startingUnit, int endingUnit); |
|||
|
|||
double ConSpeed(double speed, int startingUnit, int endingUnit); |
|||
|
|||
double ConLiter(double liter, int startingUnit, int endingUnit); |
|||
|
|||
double ConLiterToGallon(double fluid, int startingUnit, int endingUnit); |
|||
|
|||
double ConData(double data, int startingUnit, int endingUnit); |
|||
|
|||
double ConArea(double area, int startingUnit, int endingUnit); |
|||
|
|||
double ConVolume(double volum, int startingUnit, int endingUnit); |
|||
|
|||
double ConClock(double time, int startingUnit, int endingUnit); |
|||
|
|||
double ConTime(double time, int startingUnit, int endingUnit); |
|||
|
|||
|
|||
#endif // CALCULATOR_H |
Write
Preview
Loading…
Cancel
Save
Reference in new issue