Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
77 kB
0
Indexable
Never
#include <iostream>
#include <string>
#include <cmath>
using namespace std;

void startProgram();
void firstSelect(char);
void geometrySelect(char);

void triangleSelect(char);
void rightTriangleSelect(char);
void equilateralTriangleSelect(char);
void differentSideTriangleSelect(char);
void circleOnATriangleSelect(char);
void circleInATriangleSelect(char);

void polygonsSelect(char);
void parallelogramSelect(char);
void trapezoidSelect(char);
void rhombusSelect(char);
void rectangleSelect(char);
void squareSelect(char);

void arithmeticSelect(char);

void measurementUnitsConverterSelect(char);
void weightMeasurementUnitsSelect(char);
void lenghtMeasurementUnitsSelect(char);
void volumeMeasurementUnitsSelect(char);
void timeMeasurementUnitsSelect(char);

void equationSelect(char);

void mathematicalOperationsSelect(char);

class Triangle{
	public :
		int firstPage;
		int secondPage;
		int thirdPage;
		double firstPage1;
		double secondPage1;
		double thirdPage1;
		double stem;
		double height;
		double radius;
		double perimeter;
		
		void triangle_perimeter(){
			int first_page, second_page, third_page;
			cout << "\nEnter triangle first page - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter triangle second page - ";
			cin >> second_page;
			cout << endl;
			cout << "Enter triangle third page - ";
			cin >> third_page;
			cout << endl;
			
			this->firstPage = first_page;
			this->secondPage = second_page;
			this->thirdPage = third_page;
		}
		
		void triangle_area(){
			double stem, height;
			cout << "\nEnter triangle height - ";
			cin >> stem;
			cout << endl;
			cout << "Enter triangle stem - ";
			cin >> height;
			cout << endl;

			this->height = height;
			this->stem = stem;
		}
		
		int getTrianglePerimeter(){
			return (firstPage + secondPage + thirdPage);
		}
		
		double getTriangleArea(){
			return (stem*height)/2;
		}
};

class RightTriangle: public Triangle{
	public:
		void right_triangle_area(){
			double right_first_page, right_second_page;
			cout << "\nEnter first straight page - ";
			cin >> right_first_page;
			cout << endl;
			cout << "Enter second straight page - ";
			cin >> right_second_page;
			cout << endl;
			
			this->height = right_first_page;
			this->stem = right_second_page;
		}
};

class EquilateralTriangle: public Triangle{
	public :
		void equilateral_area(){
			double triangle_page;
			cout << "\nEnter triangle page - ";
			cin >> triangle_page;
			cout << endl;
			
			this->firstPage1=triangle_page;
		}
		
		double getEquilateralArea(){
			return (pow(firstPage1, 2)*(sqrt(3)/4));
		}
};


class CircleOnATriangle: public Triangle{
	public :
		void circle_on_a_triangle_area(){
			double first_page, second_page, third_page, radius1;
			cout << "\nEnter first page of triangle - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter second page of triangle - ";
			cin >> second_page;
			cout << endl;
			cout << "Enter third page of triangle - ";
			cin >> third_page;
			cout << endl;
			cout << "Enter radius of the circle - ";
			cin >> radius1;
			cout << endl;
			
			this->firstPage1 = first_page;
			this->secondPage1 = second_page;
			this->thirdPage1 = third_page;
			this->radius = radius1;
		}
		
		double getCircleOnATriangleArea(){
			return ((firstPage1 * secondPage1 * thirdPage1) / (4 * radius));
		}
};

class CircleInATriangle: public Triangle{
	public :
		void circle_in_a_triangle_area(){
			double first_page, second_page, third_page, radius1;
			cout << "\nEnter first page of triangle - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter second page of triangle - ";
			cin >> second_page;
			cout << endl;
			cout << "Enter third page of triangle - ";
			cin >> third_page;
			cout << endl;
			cout << "Enter radius of the circle - ";
			cin >> radius1;
			cout << endl;
			
			this->firstPage1 = first_page;
			this->secondPage1 = second_page;
			this->thirdPage1 = third_page;
			this->radius = radius1;
		}
		
		void circle1_in_a_triangle_area1(){
			double perimeter1, radius1;
			cout << "\nEnter perimeter of the triangle - ";
			cin >> perimeter1;
			cout << endl;
			cout << "\nEnter radius of the circle - ";
			cin >> radius1;
			cout << endl;
			
			this->perimeter = perimeter1;
			this->radius = radius1;
		}
		
		double getCircleInATriangleArea(){
			return (radius * ( (firstPage1 + secondPage1 + thirdPage1) / 2));
		}
		
		double get1CircleInATriangleArea1(){
			return (radius * (perimeter/2));
		}
};

class Polygons{
	public :
		int firstPage;
		int secondPage;
		int thirdPage;
		int fourthPage;
		
		double firstPage1;
		double secondPage2;
		double height;
		
		int getOnePagePerimeter(){
			return (4 * firstPage);
		}
		
		int getTwoPagePerimeter(){
			return (2 * (firstPage + secondPage));
		}
		
		int getFourPagePerimeter(){
			return (firstPage + secondPage + thirdPage + fourthPage);
		}
		
		int getPolygonsArea(){
			return (firstPage * secondPage);
		}
};

class Parallelogram: public Polygons{
	public :
		void parallelogram_perimeter(){
			int first_page, second_page;
			cout << "Enter parallelogram first page - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter parallelogram second page - ";
			cin >> second_page;
			cout << endl;
			
			this->firstPage = first_page;
			this->secondPage = second_page;
		}
		
		void parallelogram_area(){
			int stem, height;
			cout << "Enter parallelogram stem page - ";
			cin >> stem;
			cout << endl;
			cout << "Enter parallelogram heigt - ";
			cin >> height;
			cout << endl;
			
			this->firstPage = stem;
			this->secondPage = height;
		}
		
};

class Rectangle: public Polygons{
	public :
		void rectangle_perimeter(){
			int first_page, second_page;
			cout << "Enter rectangle first page - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter rectangle second page - ";
			cin >> second_page;
			cout << endl;
			
			this->firstPage = first_page;
			this->secondPage = second_page;
		}
		
		void rectangle_area(){
			int first_page, second_page;
			cout << "Enter rectangle first page - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter rectangle second page - ";
			cin >> second_page;
			cout << endl;
			
			this->firstPage = first_page;
			this->secondPage = second_page;
		}
};

class Square: public Polygons{
	public :
		void square_perimeter(){
			int page;
			cout << "Enter square page - ";
			cin >> page;
			cout << endl;

			this->firstPage = page;
		}
		
		void square_area(){
			int page;
			cout << "Enter square page - ";
			cin >> page;
			cout << endl;

			
			this->firstPage = page;
			this->secondPage = page;
		}
};

class Rhombus: public Polygons{
	public :
		void rhombus_perimeter(){
			int page;
			cout << "Enter rhombus page - ";
			cin >> page;
			cout << endl;

			this->firstPage = page;
		}
		
		void rhombus_area(){
			int first_page, second_page;
			cout << "Enter rhombus page - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter rhombus height - ";
			cin >> second_page;
			cout << endl;
			
			this->firstPage = first_page;
			this->secondPage = second_page;
		}
		
		void rhombus_area1(){
			double diagonal1, diagonal2;
			cout << "Enter rhombus first diagonal - ";
			cin >> diagonal1;
			cout << endl;
			cout << "Enter rhombus second diagonal - ";
			cin >> diagonal2;
			cout << endl;
			
			this->firstPage = diagonal1;
			this->secondPage = diagonal2;
		}
		
		double getRhombusArea(){
			return ((firstPage1 * secondPage2) / 2);
		}
};

class Trapezoid: public Polygons{
	public :
		void trapezoid_perimeter(){
			int first_page, second_page, third_page, fourth_page;
			cout << "Enter trapezoid first page - ";
			cin >> first_page;
			cout << endl;
			cout << "Enter trapezoid second page - ";
			cin >> second_page;
			cout << endl;
			cout << "Enter trapezoid third page - ";
			cin >> third_page;
			cout << endl;
			cout << "Enter trapezoid fourth page - ";
			cin >> fourth_page;
			cout << endl;
			
			this->firstPage = first_page;
			this->secondPage = second_page;
			this->thirdPage = third_page;
			this->fourthPage = fourth_page;
		}
		
		void trapezoid_area(){
			double first_stem, second_stem, height1;
			cout << "Enter trapezoid little stem - ";
			cin >> first_stem;
			cout << endl;
			cout << "Enter trapezoid big stem - ";
			cin >> second_stem;
			cout << endl;
			cout << "Enter trapezoid height - ";
			cin >> height1;
			cout << endl;
			
			this->firstPage1 = first_stem;
			this->secondPage2 = second_stem;
			this->height = height1;
		}
		
		double getTrapezoidArea(){
			return (((firstPage1 + secondPage2) * height) / 2);
		}
};

class Weight{
	public :
		double size;
		void tons_size(){
			double tons;
			cout << "Enter tons - ";
			cin >> tons;
			cout << endl;
			
			this->size = tons;
		}
		
		void kilogram_size(){
			double kilogram;
			cout << "Enter kilogram - ";
			cin >> kilogram;
			cout << endl;
			
			this->size = kilogram;
		}
		
		void gram_size(){
			double gram;
			cout << "Enter gram - ";
			cin >> gram;
			cout << endl;
			
			this->size = gram;
		}
		
		double get_tons_to_kilogram(){
			return size*1000;
		}
		
		double get_kilogram_to_tons(){
			return size/1000;
		}
		
		double get_tons_to_gram(){
			return size*1000000;
		}
		
		double get_gram_to_tons(){
			return size/1000000;
		}
		
		double get_kilogram_to_gram(){
			return size*1000;
		}
		
		double get_gram_to_kilogram(){
			return size/1000;
		}
};

class Length{
	public :
		double size;
		void kilometer_size(){
			double kilometer;
			cout << "Enter kilometer - ";
			cin >> kilometer;
			cout << endl;
			
			this->size = kilometer;
		}
		
		void meter_size(){
			double meter;
			cout << "Enter meter - ";
			cin >> meter;
			cout << endl;
			
			this->size = meter;
		}
		
		void centimeter_size(){
			double centimeter;
			cout << "Enter centimeter - ";
			cin >> centimeter;
			cout << endl;
			
			this->size = centimeter;
		}
		
		void millimeter_size(){
			double millimeter;
			cout << "Enter millimeter - ";
			cin >> millimeter;
			cout << endl;
			
			this->size = millimeter;
		}
		
		double get_kilometer_to_meter(){
			return size*1000;
		}
		
		double get_meter_to_kilometer(){
			return size/1000;
		}
		
		double get_kilometer_to_centimeter(){
			return size*100000;
		}
		
		double get_centimeter_to_kilometer(){
			return size/100000;
		}
		
		double get_kilometer_to_millimeter(){
			return size*1000000;
		}
		
		double get_millimeter_to_kilometer(){
			return size/1000000;
		}
		
		double get_meter_to_centimeter(){
			return size*100;
		}
		
		double get_centimeter_to_meter(){
			return size/100;
		}
		
		double get_meter_to_millimeter(){
			return size*1000;
		}
		
		double get_millimeter_to_meter(){
			return size/1000;
		}
		
		double get_centimeter_to_millimeter(){
			return size*10;
		}
		
		double get_millimeter_to_centimeter(){
			return size/10;
		}
};

class Volume{
	public :
		double size;
		void liter_size(){
			double liter;
			cout << "Enter liter - ";
			cin >> liter;
			cout << endl;
			
			this->size = liter;
		}
		
		void milliliter_size(){
			double milliliter;
			cout << "Enter milliliter - ";
			cin >> milliliter;
			cout << endl;
			
			this->size = milliliter;
		}
		
		double get_liter_to_milliliter(){
			return size*1000;
		}
		
		double get_milliliter_to_liter(){
			return size/1000;
		}
};

class Time{
	public :
		double size;
		void hour_size(){
			double hour;
			cout << "Enter hour - ";
			cin >> hour;
			cout << endl;
			
			this->size = hour;
		}
		
		void minute_size(){
			double minute;
			cout << "Enter minute - ";
			cin >> minute;
			cout << endl;
			
			this->size = minute;
		}
		
		void second_size(){
			double second;
			cout << "Enter second - ";
			cin >> second;
			cout << endl;
			
			this->size = second;
		}
		
		double get_hour_to_minute(){
			return size*60;
		}
		
		double get_minute_to_hour(){
			return size/60;
		}
		
		double get_hour_to_second(){
			return size*3600;
		}
		
		double get_second_to_hour(){
			return size/3600;
		}
		
		double get_minute_to_second(){
			return size*60;
		}
		
		double get_second_to_minute(){
			return size/60;
		}
};

class LinearEquation{
	public :
		double a;
		double b;
		double c;
		void first_linear_equation(){
			double a1, b1, c1;
			cout << "\nax + b = c" << endl;
			cout << "Enter a - ";
			cin >> a1;
			cout << endl;
			cout << "Enter b - ";
			cin >> b1;
			cout << endl;
			cout << "Enter c - ";
			cin >> c1;
			cout << endl;
			
			this->a = a1;
			this->b = b1;
			this->c = c1;
		}
		
		void second_linear_equation(){
			double a2, b2;
			cout << "\nax = b" << endl;
			cout << "Enter a - " << endl;
			cin >> a2;
			cout << endl;
			cout << "Enter b - " << endl;
			cin >> b2;
			cout << endl;
			
			this->a = a2;
			this->b = b2;
		}
		
		double get_first_equation(){
			return ((c - b) / a);
		}
		
		double get_second_equation(){
			return (b / a);
		}
};

class QuadraticEquation{
	public :
		double a;
		double b;
		double c;
		void first_quadratic_equation(){
			double a1, b1, c1;
			cout << "\nax^2 + bx + c = 0, a != 0" << endl;
			cout << "Enter a - ";
			cin >> a1;
			cout << endl;
			cout << "Enter b - ";
			cin >> b1;
			cout << endl;
			cout << "Enter c - ";
			cin >> c1;
			cout << endl;
			
			if(a1 == 0){
				cout << "You enter the number incorrectly, a != 0, So answer may be incorrectly" << endl;
			}
			
			this->a = a1;
			this->b = b1;
			this->c = c1;
		}
		
		void second_quadratic_equation(){
			double a2, b2;
			cout << "\nax^2 + bx = 0, a != 0" << endl;
			cout << "Enter a - ";
			cin >> a2;
			cout << endl;
			cout << "Enter b - ";
			cin >> b2;
			cout << endl;
			
			if(a2 == 0){
				cout << "You enter the number incorrectly, a != 0, So answer may be incorrectly" << endl;
			}
			
			this->a = a2;
			this->b = b2;
		}
		
		void third_quadratic_equation(){
			double a3;
			cout << "\nax^2 = 0, a != 0";
			cout << "Enter a - ";
			cin >> a3;
			cout << endl;
			
			if(a3 == 0){
				cout << "You enter the number incorrectly, a != 0, So answer may be incorrectly" << endl;
			}
		}
				
		double get_x1_first_quadratic_equation(){
			return ((-b + sqrt(pow(b,2) - ( 4 * a * c ))) / (2 * a));
		}
		
		double get_x2_first_quadratic_equation(){
			return ((-b - sqrt(pow(b,2) - ( 4 * a * c ))) / (2 * a));
		}
		
		double get_x_second_quadratic_equation(){
			return ((-b) / a);
		}
};

class MathematicalOperations{
	public:
		
		void mathematical_operation(){
			char op;
		    float num1, num2;
		
		    cout << "Enter operator: +, -, *, /  - ";
		    cin >> op;
		
		    cout << "Enter first operand: ";
		    cin >> num1;
		    cout << "Enter second operand: ";
		    cin >> num2;
		
		    
			switch(op) {
		        case '+':
		            cout << num1 << " + " << num2 << " = " << num1 + num2;
		            break;
		
		        case '-':
		            cout << num1 << " - " << num2 << " = " << num1 - num2;
		            break;
		
		        case '*':
		            cout << num1 << " * " << num2 << " = " << num1 * num2;
		            break;
		
		        case '/':
		            cout << num1 << " / " << num2 << " = " << num1 / num2;
		            break;
		            
		        default:
		        	cout << "Error! operation is not correct";
		        	break;
		    }
		}
};

int main(){	
	
	char select;
	
	startProgram();
	
	firstSelect(select);
	
	
	
	
	
	return 0;
}

	// Program start
void startProgram(){
	cout << "Hello, I'm a smart calculator!" << endl;
	cout << "I will try to contact you in a language you understand!" << endl;
	cout << "Please when making a selection enter the character that is in quotation marks!" << endl;
	cout << "If everything understand we can start!" << endl;
}

	// Make the first choice
void firstSelect(char first_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Geometry - 'G'\nArithmetic - 'A'" << endl;
	cout << "Enter the selected character - ";
	cin >> first_select;	
	switch(first_select){
		case 'G':
		case 'g':
			geometrySelect(first_select);
			break;
		case 'A':
		case 'a':
			arithmeticSelect(first_select);
			break;
		default:
			cout << "\nWrong character!" << endl;
			firstSelect(first_select);
			break;
	}
}

	// Make the geometry choice
void geometrySelect( char geometry_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Triangle - 'T'\nPolygons - 'P'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> geometry_select;
	switch(geometry_select){
		case 'T':
		case 't':
			triangleSelect(geometry_select);
			break;
		case 'P':
		case 'p':
			polygonsSelect(geometry_select);
			break;
		case 'B':
		case 'b':
			firstSelect(geometry_select);
			break;
		default:
			cout << "\nWrong character!" << endl;
			geometrySelect(geometry_select);
			break;
	}
}

	// Make the triangle choice
void triangleSelect(char triangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Right triangle - 'R'\nEquilateral triangle - 'E'\nDifferent side triangle - 'D'\nCircle on a triangle - 'O'\nCircle in a triangle - 'I'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> triangle_select;
	switch(triangle_select){
		case 'R':
		case 'r':
			rightTriangleSelect(triangle_select);
			break;
		case 'E':
		case 'e':
			equilateralTriangleSelect(triangle_select);
			break;
		case 'D':
		case 'd':
			differentSideTriangleSelect(triangle_select);
			break;
		case 'O':
		case 'o':
			circleOnATriangleSelect(triangle_select);
			break;
		case 'I':
		case 'i':
			circleInATriangleSelect(triangle_select);
			break;
		case 'B':
		case 'b':
			geometrySelect(triangle_select);
			break;
		default:
			cout << "\nWrong character!" << endl;
			triangleSelect(triangle_select);
			break;
	}
}

	// Make the right triangle choice
void rightTriangleSelect(char right_triangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> right_triangle_select;
	switch(right_triangle_select){
		case 'P':
		case 'p':
			RightTriangle object;
			object.triangle_perimeter();
			cout << "Triangle perimeter = " << object.getTrianglePerimeter() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> right_triangle_select;
			switch(right_triangle_select){
				case 'O':
				case 'o':
					firstSelect(right_triangle_select);
					break;
				case 'B':
				case 'b':
					rightTriangleSelect(right_triangle_select);
					break;
				default: 
					cout << "Program is suspended" << endl;
					break;					
			}
			break;
		case 'A':
		case 'a':
			cout << "\nWe have 2 way to solve the example,\nI will tell you what we need for each and\nyou choose the one that will be useful for you." << endl;
			cout << "1. The stem of the triangle and the allowable height on it - 'F'\n2. Two straight pages - 'S'\nGo back - 'B'" << endl;
			cout << "Enter the selected character - ";
			cin >> right_triangle_select;
			switch(right_triangle_select){
				case 'F':
				case 'f':
					RightTriangle object;
					object.triangle_area();
					cout << "Triangle area = " << object.getTriangleArea() << endl;
					cout << "\nPlease tell me what you want now!" << endl;
					cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
					cout << "Enter the selected character - ";
					cin >> right_triangle_select;
					switch(right_triangle_select){
						case 'O':
						case 'o':
							firstSelect(right_triangle_select);
							break;
						case 'B':
						case 'b':
							rightTriangleSelect(right_triangle_select);
							break;
						default:
							cout << "Program is suspended" << endl;
							break;
					}
					break;
				case 'S':
				case 's':
					RightTriangle object1;
					object1.right_triangle_area();
					cout << "Triangle area = " << object1.getTriangleArea() << endl;
					cout << "\nPlease tell me what you want now!" << endl;
					cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
					cout << "Enter the selected character - ";
					cin >> right_triangle_select;
					switch(right_triangle_select){
						case 'O':
						case 'o':
							firstSelect(right_triangle_select);
							break;
						case 'B':
						case 'b':
							rightTriangleSelect(right_triangle_select);
							break;
						default:
							cout << "Program is suspended" << endl;
							break;
					}
					break;
				case 'B':
				case 'b':
					rightTriangleSelect(right_triangle_select);
					break;
				default:
					cout << "\nWrong character!" << endl;
					rightTriangleSelect(right_triangle_select);
					break;
			}
			break;
		case 'B':
		case 'b':
			triangleSelect(right_triangle_select);
			break;
		default:
			cout << "\nWrong character!" << endl;
			rightTriangleSelect(right_triangle_select);
			break;
	}
}

	// Make the equilateral triangle choice
void equilateralTriangleSelect(char equilateral_triangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> equilateral_triangle_select;
	switch(equilateral_triangle_select){
		case 'P':
		case 'p':
			EquilateralTriangle object;
			object.triangle_perimeter();
			cout << "Triangle perimeter = " << object.getTrianglePerimeter() <<endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> equilateral_triangle_select;
			switch(equilateral_triangle_select){
				case 'O':
				case 'o':
					firstSelect(equilateral_triangle_select);
					break;
				case 'B':
				case 'b':
					equilateralTriangleSelect(equilateral_triangle_select);
					break;
				default:
					cout << "Program is suspended" << endl;
					break;
			}
			break;
		case 'A':
		case 'a':
			cout << "\nWe have 2 way to solve the example,\nI will tell you what we need for each and\nyou choose the one that will be useful for you." << endl;
			cout << "1. The stem of the triangle and the allowable height on it - 'F'\n2. Any one page - 'S'\nGo Back - 'B'" << endl;
			cout << "Enter the selected character - ";
			cin >> equilateral_triangle_select;
			switch(equilateral_triangle_select){
				case 'F':
				case 'f':
					EquilateralTriangle object;
					object.triangle_area();
					cout << "Triangle area = " << object.getTriangleArea() << endl;
					cout << "\nPlease tell me what you want now!" << endl;
					cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
					cout << "Enter the selected character - ";
					cin >> equilateral_triangle_select;
					switch(equilateral_triangle_select){
						case 'O':
						case 'o':
							firstSelect(equilateral_triangle_select);
							break;
						case 'B':
						case 'b':
							equilateralTriangleSelect(equilateral_triangle_select);
							break;
						default:
							cout << "Program is suspended" << endl;
							break;
					}
					break;
				case 'S':
				case 's':
					EquilateralTriangle object1;
					object1.equilateral_area();
					cout << "Triangle area = " << object1.getEquilateralArea() << endl;
					cout << "\nPlease tell me what you want now!" << endl;
					cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
					cout << "Enter the selected character - ";
					cin >> equilateral_triangle_select;
					switch(equilateral_triangle_select){
						case 'O':
						case 'o':
							firstSelect(equilateral_triangle_select);
							break;
						case 'B':
						case 'b':
							equilateralTriangleSelect(equilateral_triangle_select);
							break;
						default:
							cout << "Program is suspended" << endl;
							break;
					}
					break;
				case 'B':
				case 'b':
					equilateralTriangleSelect(equilateral_triangle_select);
					break;
				default:
					cout << "\nWrong character!" << endl;
					equilateralTriangleSelect(equilateral_triangle_select);
					break;
			}
			break;
		case 'B':
		case 'b':
			triangleSelect(equilateral_triangle_select);
			break;
		default:
			cout << "\nWrong character!" << endl;
			equilateralTriangleSelect(equilateral_triangle_select);
			break;
	}
}

	// Make the different side triangle choice
void differentSideTriangleSelect(char different_side_triangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> different_side_triangle_select;
	switch(different_side_triangle_select){
		case 'P':
		case 'p':
			Triangle object;
			object.triangle_perimeter();
			cout << "Triangle perimeter = " << object.getTrianglePerimeter() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> different_side_triangle_select;
			switch(different_side_triangle_select){
				case 'O':
				case 'o':
					firstSelect(different_side_triangle_select);
					break;
				case 'B':
				case 'b':
					differentSideTriangleSelect(different_side_triangle_select);
					break;
				default:
					cout << "Program is suspended" << endl;
					break;
			}
			break;
	}
	switch(different_side_triangle_select){
		case 'A':
		case 'a':
			Triangle object;
			object.triangle_area();
			cout << "Triangle area = " << object.getTriangleArea() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> different_side_triangle_select;
			switch(different_side_triangle_select){
				case 'O':
				case 'o':
					firstSelect(different_side_triangle_select);
					break;
				case 'B':
				case 'b':
					differentSideTriangleSelect(different_side_triangle_select);
					break;
				default:
					cout << "Program is suspended" << endl;
					break;
			}
			break;
	}
	switch(different_side_triangle_select){
		case 'B':
		case 'b':
			triangleSelect(different_side_triangle_select);
		default:
			cout << "\nWrong character!" << endl;
			differentSideTriangleSelect(different_side_triangle_select);
	}
}

	// Make the circle on a triangle choice
void circleOnATriangleSelect(char circle_on_a_triangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> circle_on_a_triangle_select;
	if(circle_on_a_triangle_select == 'P' || circle_on_a_triangle_select == 'p'){
		CircleOnATriangle object;
		object.triangle_perimeter();
		cout << "Triangle perimeter = " << object.getTrianglePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> circle_on_a_triangle_select;
		if(circle_on_a_triangle_select == 'O' || circle_on_a_triangle_select == 'o'){
			firstSelect(circle_on_a_triangle_select);
		}else if(circle_on_a_triangle_select == 'B' || circle_on_a_triangle_select == 'b'){
			circleOnATriangleSelect(circle_on_a_triangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(circle_on_a_triangle_select == 'A' || circle_on_a_triangle_select == 'a'){
		cout << "\nWe have 2 way to solve the example,\nI will tell you what we need for each and\nyou choose the one that will be useful for you." << endl;
		cout << "\n1. The stem of the triangle and the allowable height on it - 'F'\n2. All page and circle radius - 'S'\nGo Back - 'B'" << endl;
		cout << "Enter the selected character - ";
		cin >> circle_on_a_triangle_select;
		if(circle_on_a_triangle_select == 'F' || circle_on_a_triangle_select == 'f'){
			CircleOnATriangle object;
			object.triangle_area();
			cout << "Triangle area = " << object.getTriangleArea() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> circle_on_a_triangle_select;
			if(circle_on_a_triangle_select == 'O' || circle_on_a_triangle_select == 'o'){
				firstSelect(circle_on_a_triangle_select);
			}else if(circle_on_a_triangle_select == 'B' || circle_on_a_triangle_select == 'b'){
				circleOnATriangleSelect(circle_on_a_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(circle_on_a_triangle_select == 'S' || circle_on_a_triangle_select == 's'){
			CircleOnATriangle object;
			object.circle_on_a_triangle_area();
			cout << "Triangle area = " << object.getCircleOnATriangleArea() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> circle_on_a_triangle_select;
			if(circle_on_a_triangle_select == 'O' || circle_on_a_triangle_select == 'o'){
				firstSelect(circle_on_a_triangle_select);
			}else if(circle_on_a_triangle_select == 'B' || circle_on_a_triangle_select == 'b'){
				circleOnATriangleSelect(circle_on_a_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(circle_on_a_triangle_select == 'B' || circle_on_a_triangle_select == 'b'){
			circleOnATriangleSelect(circle_on_a_triangle_select);
		}else{
			cout << "\nWrong character!" << endl;
			circleOnATriangleSelect(circle_on_a_triangle_select);
		}
	}else if(circle_on_a_triangle_select == 'B' || circle_on_a_triangle_select == 'b'){
		triangleSelect(circle_on_a_triangle_select);
	}else{
		cout << "\nWrong character!" << endl;
		circleOnATriangleSelect(circle_on_a_triangle_select);
	}
}

	// Make the circle in a triangle choice
void circleInATriangleSelect(char circle_in_a_triangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> circle_in_a_triangle_select;
	if(circle_in_a_triangle_select == 'P' || circle_in_a_triangle_select == 'p'){
		CircleInATriangle object;
		object.triangle_perimeter();
		cout << "Triangle perimeter = " << object.getTrianglePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> circle_in_a_triangle_select;
		if(circle_in_a_triangle_select == 'O' || circle_in_a_triangle_select == 'o'){
			firstSelect(circle_in_a_triangle_select);
		}else if(circle_in_a_triangle_select == 'B' || circle_in_a_triangle_select == 'b'){
			circleInATriangleSelect(circle_in_a_triangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(circle_in_a_triangle_select == 'A' || circle_in_a_triangle_select == 'a'){
		cout << "\nWe have 3 way to solve the example,\nI will tell you what we need for each and\nyou choose the one that will be useful for you." << endl;
		cout << "\n1. The stem of the triangle and the allowable height on it - 'F'\n2. All page and circle radius - 'S'\n3. Perimeter of triangle and radius of circle - 'T'\nGo Back - 'B'" << endl;
		cout << "Enter the selected character - ";
		cin >> circle_in_a_triangle_select;
		if(circle_in_a_triangle_select == 'F' || circle_in_a_triangle_select == 'f'){
			CircleInATriangle object;
			object.triangle_area();
			cout << "Triangle area = " << object.getTriangleArea() <<endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> circle_in_a_triangle_select;
			if(circle_in_a_triangle_select == 'O' || circle_in_a_triangle_select == 'o'){
				firstSelect(circle_in_a_triangle_select);
			}else if(circle_in_a_triangle_select == 'B' || circle_in_a_triangle_select == 'b'){
				circleInATriangleSelect(circle_in_a_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(circle_in_a_triangle_select == 'S' || circle_in_a_triangle_select == 's'){
			CircleInATriangle object;
			object.circle_in_a_triangle_area();
			cout << "Triangle area = " << object.getCircleInATriangleArea() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> circle_in_a_triangle_select;
			if(circle_in_a_triangle_select == 'O' || circle_in_a_triangle_select == 'o'){
				firstSelect(circle_in_a_triangle_select);
			}else if(circle_in_a_triangle_select == 'B' || circle_in_a_triangle_select == 'b'){
				circleInATriangleSelect(circle_in_a_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}			
		}else if(circle_in_a_triangle_select == 'T' || circle_in_a_triangle_select == 't'){
			CircleInATriangle object;
			object.circle1_in_a_triangle_area1();
			cout << "Triangle area = " << object.get1CircleInATriangleArea1() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> circle_in_a_triangle_select;
			if(circle_in_a_triangle_select == 'O' || circle_in_a_triangle_select == 'o'){
				firstSelect(circle_in_a_triangle_select);
			}else if(circle_in_a_triangle_select == 'B' || circle_in_a_triangle_select == 'b'){
				circleInATriangleSelect(circle_in_a_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(circle_in_a_triangle_select == 'B' || circle_in_a_triangle_select == 'b'){
			circleInATriangleSelect(circle_in_a_triangle_select);
		}else{
			cout << "\nWrong character!" << endl;
			circleInATriangleSelect(circle_in_a_triangle_select);
		}
	}else if(circle_in_a_triangle_select == 'B' || circle_in_a_triangle_select == 'b'){
		triangleSelect(circle_in_a_triangle_select);
	}else{
		cout << "\nWrong character!" << endl;
		circleInATriangleSelect(circle_in_a_triangle_select);
	}
}

	// Make the polygons choice
void polygonsSelect(char polygons_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Parallelogram - 'P'\nTrapezoid - 'T'\nRhombus - 'R'\nRectangle - 'E'\nSquare - 'S'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> polygons_select;
	if(polygons_select == 'P' || polygons_select == 'p'){
		parallelogramSelect(polygons_select);
	}else if(polygons_select == 'T' || polygons_select == 't'){
		trapezoidSelect(polygons_select);
	}else if(polygons_select == 'R' || polygons_select == 'r'){
		rhombusSelect(polygons_select);
	}else if(polygons_select == 'E' || polygons_select == 'e'){
		rectangleSelect(polygons_select);
	}else if(polygons_select == 'S' || polygons_select == 's'){
		squareSelect(polygons_select);
	}else if(polygons_select == 'B' || polygons_select == 'b'){
		geometrySelect(polygons_select);
	}else{
		cout << "\nWrong character!" << endl;
		polygonsSelect(polygons_select);
	}
}

	// Make the parallelogram choice
void parallelogramSelect(char parallelogram_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> parallelogram_select;
	if(parallelogram_select == 'P' || parallelogram_select == 'p'){
		Parallelogram object;
		object.parallelogram_perimeter();
		cout << "Parallelogram perimeter = " << object.getTwoPagePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> parallelogram_select;
		if(parallelogram_select == 'O' || parallelogram_select == 'o'){
			firstSelect(parallelogram_select);
		}else if(parallelogram_select == 'B' || parallelogram_select == 'b'){
			parallelogramSelect(parallelogram_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(parallelogram_select == 'A' || parallelogram_select == 'a'){
		Parallelogram object;
		object.parallelogram_area();
		cout << "Parallelogram area = " << object.getPolygonsArea() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> parallelogram_select;
		if(parallelogram_select == 'O' || parallelogram_select == 'o'){
			firstSelect(parallelogram_select);
		}else if(parallelogram_select == 'B' || parallelogram_select == 'b'){
			parallelogramSelect(parallelogram_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(parallelogram_select == 'B' || parallelogram_select == 'b'){
		polygonsSelect(parallelogram_select);
	}else{
		cout << "\nWrong character!" << endl;
		parallelogramSelect(parallelogram_select);
	}
}

	// Make the trapezoid choice
void trapezoidSelect(char trapezoid_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> trapezoid_select;
	if(trapezoid_select == 'P' || trapezoid_select == 'p'){
		Trapezoid object;
		object.trapezoid_perimeter();
		cout << "Trapezoid perimeter = " << object.getFourPagePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> trapezoid_select;
		if(trapezoid_select == 'O' || trapezoid_select == 'o'){
			firstSelect(trapezoid_select);
		}else if(trapezoid_select == 'B' || trapezoid_select == 'b'){
			trapezoidSelect(trapezoid_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(trapezoid_select == 'A' || trapezoid_select == 'a'){
		Trapezoid object;
		object.trapezoid_area();
		cout << "Trapezoid area = " << object.getTrapezoidArea() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> trapezoid_select;
		if(trapezoid_select == 'O' || trapezoid_select == 'o'){
			firstSelect(trapezoid_select);
		}else if(trapezoid_select == 'B' || trapezoid_select == 'b'){
			trapezoidSelect(trapezoid_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(trapezoid_select == 'B' || trapezoid_select == 'b'){
		polygonsSelect(trapezoid_select);
	}else{
		cout << "\nWrong character!" << endl;
		trapezoidSelect(trapezoid_select);
	}
}

	// Make the rhombus choice
void rhombusSelect(char rhombus_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> rhombus_select;
	if(rhombus_select == 'P' || rhombus_select == 'p'){
		Rhombus object;
		object.rhombus_perimeter();
		cout << "Rhombus perimeter = " << object.getOnePagePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> rhombus_select;
		if(rhombus_select == 'O' || rhombus_select == 'o'){
			firstSelect(rhombus_select);
		}else if(rhombus_select == 'B' || rhombus_select == 'b'){
			rhombusSelect(rhombus_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(rhombus_select == 'A' || rhombus_select == 'a'){
		cout << "\nWe have 2 way to solve the example,\nI will tell you what we need for each and\nyou choose the one that will be useful for you." << endl;
		cout << "1. Rhombus page - 'F'\nRhombus perimeter - 'S'\ngo back - 'B'" << endl;
		cout << "Enter the selected character - ";
		cin >> rhombus_select;
		if(rhombus_select == 'F' || rhombus_select == 'f'){
			Rhombus object;
			object.rhombus_area();
			cout << "Rhombus area = " << object.getPolygonsArea() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> rhombus_select;
			if(rhombus_select == 'O' || rhombus_select == 'o'){
				firstSelect(rhombus_select);
			}else if(rhombus_select == 'B' || rhombus_select == 'b'){
				rhombusSelect(rhombus_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(rhombus_select == 'S' || rhombus_select == 's'){
			Rhombus object;
			object.rhombus_area1();
			cout << "Rhombus area = " << object.getRhombusArea() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> rhombus_select;
			if(rhombus_select == 'O' || rhombus_select == 'o'){
				firstSelect(rhombus_select);
			}else if(rhombus_select == 'B' || rhombus_select == 'b'){
				rhombusSelect(rhombus_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}
	}else if(rhombus_select == 'B' || rhombus_select == 'b'){
		polygonsSelect(rhombus_select);
	}else{
		cout << "\nWrong character!" << endl;
		rhombusSelect(rhombus_select);
	}
}

	// Make the rectangle choice
void rectangleSelect(char rectangle_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> rectangle_select;
	if(rectangle_select == 'P' || rectangle_select == 'p'){
		Rectangle object;
		object.rectangle_perimeter();
		cout << "Rectangle perimeter = " << object.getTwoPagePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> rectangle_select;
		if(rectangle_select  == 'O' || rectangle_select == 'o'){
			firstSelect(rectangle_select);
		}else if(rectangle_select == 'B' || rectangle_select == 'b'){
			rectangleSelect(rectangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(rectangle_select == 'A' || rectangle_select == 'a'){
		Rectangle object;
		object.rectangle_area();
		cout << "Rectangle area = " << object.getPolygonsArea() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> rectangle_select;
		if(rectangle_select  == 'O' || rectangle_select == 'o'){
			firstSelect(rectangle_select);
		}else if(rectangle_select == 'B' || rectangle_select == 'b'){
			rectangleSelect(rectangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(rectangle_select == 'B' || rectangle_select == 'b'){
		polygonsSelect(rectangle_select);
	}else{
		cout << "\nWrong character!" << endl;
		rectangleSelect(rectangle_select);
	}
}

	// Make the square choice
void squareSelect(char square_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Perimeter - 'P'\nArea - 'A'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> square_select;
	if(square_select == 'P' || square_select == 'p'){
		Square object;
		object.square_perimeter();
		cout << "Square perimeter = " << object.getOnePagePerimeter() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> square_select;
		if(square_select  == 'O' || square_select == 'o'){
			firstSelect(square_select);
		}else if(square_select == 'B' || square_select == 'b'){
			squareSelect(square_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(square_select == 'A' || square_select == 'a'){
		Square object;
		object.square_area();
		cout << "Square area = " << object.getPolygonsArea() << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> square_select;
		if(square_select  == 'O' || square_select == 'o'){
			firstSelect(square_select);
		}else if(square_select == 'B' || square_select == 'b'){
			squareSelect(square_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(square_select == 'B' || square_select == 'b'){
		polygonsSelect(square_select);
	}else{
		cout << "\nWrong character!" << endl;
		squareSelect(square_select);
	}
}

	//make the arithmetic choice
void arithmeticSelect(char arithmetic_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Mathematical operations - 'M'\nMeasurement unit converter - 'U'\nEquation - 'E'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> arithmetic_select;
	if(arithmetic_select == 'M' || arithmetic_select == 'm'){
		MathematicalOperations object;
		object.mathematical_operation();
	}else if(arithmetic_select == 'U' || arithmetic_select == 'u'){
		measurementUnitsConverterSelect(arithmetic_select);
	}else if(arithmetic_select == 'E' || arithmetic_select == 'e'){
		equationSelect(arithmetic_select);
	}else if(arithmetic_select == 'B' || arithmetic_select == 'b'){
		firstSelect(arithmetic_select);
	}else{
		cout << "\nWrong character!" << endl;
		arithmeticSelect(arithmetic_select);
	}
}

	// Make the measurement unit converter choice
void measurementUnitsConverterSelect(char measurement_unit_converter_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Weight measurement units - 'W'\nLength measurement units - 'L'\nVolume measurement units - 'V'\nTime mesurement units - 'T'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> measurement_unit_converter_select;
	if(measurement_unit_converter_select == 'W' || measurement_unit_converter_select == 'w'){
		weightMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'L' || measurement_unit_converter_select == 'l'){
		lenghtMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'V' || measurement_unit_converter_select == 'v'){
		volumeMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'T' || measurement_unit_converter_select == 't'){
		timeMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'B' || measurement_unit_converter_select == 'b'){
		arithmeticSelect(measurement_unit_converter_select);
	}else{
		cout << "\nWrong character!" << endl;
		measurementUnitsConverterSelect(measurement_unit_converter_select);
	}
}

	// Make the weight measurement units choice
void weightMeasurementUnitsSelect(char weight_measurement_units_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Tons to Kilogram - 'T'\nKilogram to Tons - 'K'\nTons to Gram - 'R'\nGram to Tons - 'G'\nKilogram to Gram - 'J'\nGram to Kilogram - 'H'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> weight_measurement_units_select;
	if(weight_measurement_units_select == 'T' || weight_measurement_units_select == 't'){
		Weight object;
		object.tons_size();
		cout << object.size << " Tons = " << object.get_tons_to_kilogram() << " Kilogram" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> weight_measurement_units_select;
		if(weight_measurement_units_select  == 'O' || weight_measurement_units_select == 'o'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(weight_measurement_units_select == 'K' || weight_measurement_units_select == 'k'){
		Weight object;
		object.kilogram_size();
		cout << object.size << " Kilogram = " << object.get_kilogram_to_tons() << " Tons" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> weight_measurement_units_select;
		if(weight_measurement_units_select  == 'O' || weight_measurement_units_select == 'o'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(weight_measurement_units_select == 'R' || weight_measurement_units_select == 'r'){
		Weight object;
		object.tons_size();
		cout << object.size << " Tons = " << object.get_tons_to_gram() << " Gram" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> weight_measurement_units_select;
		if(weight_measurement_units_select  == 'O' || weight_measurement_units_select == 'o'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(weight_measurement_units_select == 'G' || weight_measurement_units_select == 'g'){
		Weight object;
		object.gram_size();
		cout << object.size << " Gram = " << object.get_gram_to_tons() << " Tons" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> weight_measurement_units_select;
		if(weight_measurement_units_select  == 'O' || weight_measurement_units_select == 'o'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(weight_measurement_units_select == 'J' || weight_measurement_units_select == 'j'){
		Weight object;
		object.kilogram_size();
		cout << object.size << " Kilogram = " << object.get_kilogram_to_gram() << " Gram" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> weight_measurement_units_select;
		if(weight_measurement_units_select  == 'O' || weight_measurement_units_select == 'o'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(weight_measurement_units_select == 'H' || weight_measurement_units_select == 'h'){
		Weight object;
		object.gram_size();
		cout << object.size << " Gram = " << object.get_gram_to_kilogram() << " Kilogram" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> weight_measurement_units_select;
		if(weight_measurement_units_select  == 'O' || weight_measurement_units_select == 'o'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(weight_measurement_units_select == 'B' || weight_measurement_units_select == 'b'){
		measurementUnitsConverterSelect(weight_measurement_units_select);
	}else{
		cout << "\nWrong character!" << endl;
		weightMeasurementUnitsSelect(weight_measurement_units_select);
	}
}

	// Make the length measurement units choice
void lenghtMeasurementUnitsSelect(char length_measurement_unit_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Kilometers to Meter - 'Q'\nMeters to Kilometer - 'W'\nKilometers to Centimeter - 'E'\nCentimeter to Kilometer - 'R'\nKilometer to Millimeter - 'T'\nMillimeter to Kilometer - 'Y'\nMeter to Centimeter - 'U'\nCentimeter to Meter - 'I'\nMeter to Millimeter - 'O'\nMillimeter to Meter - 'P'\nCentimeter to Millimeter - 'N'\nMillimeter to Centimeter - 'M'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> length_measurement_unit_select;
	if(length_measurement_unit_select == 'Q' || length_measurement_unit_select == 'q'){
		Length object;
		object.kilometer_size();
		cout << object.size << " Kilometer = " << object.get_kilometer_to_meter() << " Meter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(length_measurement_unit_select == 'W' || length_measurement_unit_select == 'w'){
		Length object;
		object.meter_size();
		cout << object.size << " Meter = " << object.get_meter_to_kilometer() << " Kilometer" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'E' || length_measurement_unit_select == 'e'){
		Length object;
		object.kilometer_size();
		cout << object.size << " Kilometer = " << object.get_kilometer_to_centimeter() << " Centimeter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'R' || length_measurement_unit_select == 'r'){
		Length object;
		object.centimeter_size();
		cout << object.size << " Centimeter = " << object.get_centimeter_to_kilometer() << " Kilometer" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'T' || length_measurement_unit_select == 't'){
		Length object;
		object.kilometer_size();
		cout << object.size << " Kilometer = " << object.get_kilometer_to_millimeter() << " Millimeter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'Y' || length_measurement_unit_select == 'y'){
		Length object;
		object.millimeter_size();
		cout << object.size << " Millimeter = " << object.get_millimeter_to_kilometer() << " Kilometer" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'U' || length_measurement_unit_select == 'u'){
		Length object;
		object.meter_size();
		cout << object.size << " Meter = " << object.get_meter_to_centimeter() << " Centimeter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'I' || length_measurement_unit_select == 'i'){
		Length object;
		object.centimeter_size();
		cout << object.size << " Centimeter = " << object.get_centimeter_to_meter() << " Meter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
		Length object;
		object.meter_size();
		cout << object.size << " Meter = " << object.get_meter_to_millimeter() << " Millimeter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'P' || length_measurement_unit_select == 'p'){
		Length object;
		object.millimeter_size();
		cout << object.size << " Millimeter = " << object.get_millimeter_to_meter() << " Meter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'N' || length_measurement_unit_select == 'n'){
		Length object;
		object.centimeter_size();
		cout << object.size << " Centimeter = " << object.get_centimeter_to_millimeter() << " Millimeter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'M' || length_measurement_unit_select == 'm'){
		Length object;
		object.millimeter_size();
		cout << object.size << " Millimeter = " << object.get_millimeter_to_centimeter() << " Centimeter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> length_measurement_unit_select;
		if(length_measurement_unit_select == 'O' || length_measurement_unit_select == 'o'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(length_measurement_unit_select == 'B' || length_measurement_unit_select == 'b'){
		measurementUnitsConverterSelect(length_measurement_unit_select);
	}else{
		cout << "\nWrong character!" << endl;
		lenghtMeasurementUnitsSelect(length_measurement_unit_select);
	}
}

	// Make the volume measurement units choice
void volumeMeasurementUnitsSelect(char volume_measurement_units_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Liter to Mililiter - 'L'\nMililiter to Liter - 'M'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> volume_measurement_units_select;
	if(volume_measurement_units_select == 'L' || volume_measurement_units_select == 'l'){
		Volume object;
		object.liter_size();
		cout << object.size << " Liter = " << object.get_liter_to_milliliter() << " Milliliter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> volume_measurement_units_select;
		if(volume_measurement_units_select == 'O' || volume_measurement_units_select == 'o'){
			firstSelect(volume_measurement_units_select);
		}else if(volume_measurement_units_select == 'B' || volume_measurement_units_select == 'b'){
			volumeMeasurementUnitsSelect(volume_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(volume_measurement_units_select == 'M' || volume_measurement_units_select == 'm'){
		Volume object;
		object.milliliter_size();
		cout << object.size << " Milliliter = " << object.get_milliliter_to_liter() << " Liter" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> volume_measurement_units_select;
		if(volume_measurement_units_select == 'O' || volume_measurement_units_select == 'o'){
			firstSelect(volume_measurement_units_select);
		}else if(volume_measurement_units_select == 'B' || volume_measurement_units_select == 'b'){
			volumeMeasurementUnitsSelect(volume_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(volume_measurement_units_select == 'B' || volume_measurement_units_select == 'b'){
		measurementUnitsConverterSelect(volume_measurement_units_select);
	}else{
		cout << "\nWrong character!" << endl;
		volumeMeasurementUnitsSelect(volume_measurement_units_select);
	}
}

	// Make the time measurement units choice
void timeMeasurementUnitsSelect(char time_measurement_units_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Hour to Minutes - 'H'\nMinutes to Hour -'G'\nHour to Second - 'J'\nSecond to Hour - 'S'\nMinutes to Second - 'D'\nSecond to Minutes - 'F'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> time_measurement_units_select;
	if(time_measurement_units_select == 'H' || time_measurement_units_select == 'h'){
		Time object;
		object.hour_size();
		cout << object.size << " Hour = " << object.get_hour_to_minute() << " Minute" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> time_measurement_units_select;
		if(time_measurement_units_select == 'O' || time_measurement_units_select == 'o'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(time_measurement_units_select == 'G' || time_measurement_units_select == 'g'){
		Time object;
		object.minute_size();
		cout << object.size << " Minute = " << object.get_minute_to_hour() << " Hour" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> time_measurement_units_select;
		if(time_measurement_units_select == 'O' || time_measurement_units_select == 'o'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(time_measurement_units_select == 'J' || time_measurement_units_select == 'j'){
		Time object;
		object.hour_size();
		cout << object.size << " Hour = " << object.get_hour_to_second() << " Second" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> time_measurement_units_select;
		if(time_measurement_units_select == 'O' || time_measurement_units_select == 'o'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(time_measurement_units_select == 'S' || time_measurement_units_select == 's'){
		Time object;
		object.second_size();
		cout << object.size << " Second = " << object.get_second_to_hour() << " Hour" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> time_measurement_units_select;
		if(time_measurement_units_select == 'O' || time_measurement_units_select == 'o'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(time_measurement_units_select == 'D' || time_measurement_units_select == 'd'){
		Time object;
		object.minute_size();
		cout << object.size << " Minute = " << object.get_minute_to_second() << " Second" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> time_measurement_units_select;
		if(time_measurement_units_select == 'O' || time_measurement_units_select == 'o'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(time_measurement_units_select == 'F' || time_measurement_units_select == 'f'){
		Time object;
		object.second_size();
		cout << object.size << " Second = " << object.get_second_to_minute() << " Minute" << endl;
		cout << "\nPlease tell me what you want now!" << endl;
		cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
		cout << "Enter the selected character - ";
		cin >> time_measurement_units_select;
		if(time_measurement_units_select == 'O' || time_measurement_units_select == 'o'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(time_measurement_units_select == 'B' || time_measurement_units_select == 'b'){
		measurementUnitsConverterSelect(time_measurement_units_select);
	}else{
		cout << "\nWrong character!" << endl;
		timeMeasurementUnitsSelect(time_measurement_units_select);
	}
}

	// Make the equation choice
void equationSelect(char equation_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Linear equation - 'L'\nQuadratic equation - 'Q'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
	cin >> equation_select;
	if(equation_select == 'L' || equation_select == 'l'){
		cout << "\nWe have 2 type linear equation, please select which you want!" << endl;
		cout << "1. ax + b = c - 'F'\n2. ax = b - 'S'\nGo back - 'B'" << endl;
		cout << "Enter the selected character - ";
		cin >> equation_select;
		if(equation_select == 'F' || equation_select == 'f'){
			LinearEquation object;
			object.first_linear_equation();
			cout << "X = " << object.get_first_equation() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> equation_select;
			if(equation_select == 'O' || equation_select == 'o'){
			firstSelect(equation_select);
			}else if(equation_select == 'B' || equation_select == 'b'){
				equationSelect(equation_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(equation_select == 'S' || equation_select == 's'){
			LinearEquation object;
			object.second_linear_equation();
			cout << "X = " << object.get_second_equation() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> equation_select;
			if(equation_select == 'O' || equation_select == 'o'){
			firstSelect(equation_select);
			}else if(equation_select == 'B' || equation_select == 'b'){
				equationSelect(equation_select);
			}else{
				cout << "Program is suspended" << endl;
			}	
		}else if(equation_select == 'B' || equation_select == 'b'){
			equationSelect(equation_select);
		}else{
			cout << "\nWrong character!" << endl;
			equationSelect(equation_select);
		}
	}else if(equation_select == 'Q' || equation_select == 'q'){
		cout <<	"\nWe have 3 type quadratic equation, please select which you want!" << endl;
		cout << " '^2' - means squared!, != - means no equal" << endl;
		cout << "1. ax^2 + bx + c = 0, a != 0 - 'F'\n2. ax^2 + bx = 0, a != 0 - 'S'\n3. ax^2 = 0, a != 0 - 'T'\nGo back - 'B'" << endl;
		cout << "Enter the selected character - ";
		cin >> equation_select;
		if(equation_select == 'F' || equation_select == 'f'){ 
			QuadraticEquation object;
			object.first_quadratic_equation();
			cout << "X1 = " << object.get_x1_first_quadratic_equation() << endl;
			cout << "X2 = " << object.get_x2_first_quadratic_equation() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> equation_select;
			if(equation_select == 'O' || equation_select == 'o'){
			firstSelect(equation_select);
			}else if(equation_select == 'B' || equation_select == 'b'){
				equationSelect(equation_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(equation_select == 'S' || equation_select == 's'){
			QuadraticEquation object;
			object.second_quadratic_equation();
			cout << "X = 0 or X = " << object.get_x_second_quadratic_equation() << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> equation_select;
			if(equation_select == 'O' || equation_select == 'o'){
			firstSelect(equation_select);
			}else if(equation_select == 'B' || equation_select == 'b'){
				equationSelect(equation_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(equation_select == 'T' || equation_select == 't'){
			QuadraticEquation object;
			object.third_quadratic_equation();
			cout << "X = 0" << endl;
			cout << "\nPlease tell me what you want now!" << endl;
			cout << "Start over - 'O'\nGo back - 'B'\nStop program - 'S'" << endl;
			cout << "Enter the selected character - ";
			cin >> equation_select;
			if(equation_select == 'O' || equation_select == 'o'){
			firstSelect(equation_select);
			}else if(equation_select == 'B' || equation_select == 'b'){
				equationSelect(equation_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(equation_select == 'B' || equation_select == 'b'){
			equationSelect(equation_select);
		}else{
			cout << "\nWrong character!" << endl;
			equationSelect(equation_select);
		}
	}else if(equation_select == 'B' || equation_select == 'b'){
		arithmeticSelect(equation_select);
	}else{
		equationSelect(equation_select);
	}
	
}