#ifndef FUNCS2_H #define FUNCS2_H #include #include #include // devides two numbers by adding ,like computer does long int AddDevide(int nom ,int denom); //multiplies two numbers by adding ,like computer does long AddMultiply(int num1,int num2); // finds area of circle float Area(float radius); //finds area of rectangle float Area(float height,float width); // average of an array which length is size float avgs(int size,int num[]); // how many days from the begining of the year to the date entered int DaysTillDate(int d,int m ,int y); // calculates the difference between two times in hours/minutes seconds // and the result is packed in integer array of length 3 (int* Time) void Difftime(int h1,int min1,int sec1,int h2,int m2,int s2,int* Time); // recursive factorial long factorial(int num); void Give_Key(void); // integral of x^2 between two limits and th accuracy is entered (0.001) //for example double IntegralT(double lim1,double lim2,double acc); // luah kefel void Kefel(int height,int width); void LineK(int number,int length); // maximum in array int maxs(int size,int num[]); // minimum in array int mins(int size,int num[]); // n member of arithmetic serie long NMember(int first,int diff,int nMember); // perimeter of rectangle double Perimeter(float height ,float width); // perimeter of circle double Perimeter(float radius); double power(double,double); // checks if a number is aprimary number int PrimeNum(int num); // rounds double to long long Round(double); // calculates the sum of arithmetic serie with //a0=first //d=diff //nMember = number of members long SumOfArith(int first,int diff,int nMember); //sum of digits of a long number int SumOfDigits(long num); // calculates sum of preceding numbers and the number itself long SumOfPrecedeNum(int num); //calculates sum of array long sums(int size,int num[]); void Swap(int&,int&); void Swap(double&,double&); // converts time to seconds long TimeToSec(int hours,int minutes,int seconds); //converts seconds to equivalent quantity of hours , //minutes ,seconds ,stores the result in int* Time void SecToTime(long seconds,int* Time); #endif