Untitled

 avatar
unknown
plain_text
4 years ago
62 kB
3
Indexable
#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;
		}
};

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;	
	if(first_select == 'G'){
		geometrySelect( first_select);
	}else if(first_select == 'A'){
		arithmeticSelect(first_select);
	}else{
		cout << "\nWrong character!" << endl;
		firstSelect(first_select);
	}
}

	// 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;
	if(geometry_select == 'T'){
		triangleSelect(geometry_select);
	}else if(geometry_select == 'P'){
		polygonsSelect(geometry_select);
	}else if(geometry_select == 'B'){
		firstSelect(geometry_select);
	}else{
		cout << "\nWrong character!" << endl;
		geometrySelect(geometry_select);
	}
}

	// 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;
	if(triangle_select == 'R'){
		rightTriangleSelect(triangle_select);
	}else if(triangle_select == 'E'){
		equilateralTriangleSelect(triangle_select);
	}else if(triangle_select == 'D'){
		differentSideTriangleSelect(triangle_select);
	}else if(triangle_select == 'O'){
		circleOnATriangleSelect(triangle_select);
	}else if(triangle_select == 'I'){
		circleInATriangleSelect(triangle_select);
	}else if(triangle_select == 'B'){
		geometrySelect(triangle_select);
	}else{
		cout << "\nWrong character!" << endl;
		triangleSelect(triangle_select);
	}
}

	// 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;
	if(right_triangle_select == '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;
		if(right_triangle_select == 'O'){
			firstSelect(right_triangle_select);
		}else if(right_triangle_select == 'B'){
			rightTriangleSelect(right_triangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(right_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 << "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;
		if(right_triangle_select == '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;
			if(right_triangle_select == 'O'){
				firstSelect(right_triangle_select);
			}else if(right_triangle_select == 'B'){
				rightTriangleSelect(right_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(right_triangle_select == 'S'){
			RightTriangle object;
			object.right_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;
			if(right_triangle_select == 'O'){
				firstSelect(right_triangle_select);
			}else if(right_triangle_select == 'B'){
				rightTriangleSelect(right_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(right_triangle_select == 'B'){
			rightTriangleSelect(right_triangle_select);
		}else{
			cout << "\nWrong character!" << endl;
			rightTriangleSelect(right_triangle_select);
		}
	}else if(right_triangle_select == 'B'){
		triangleSelect(right_triangle_select);
	}else{
		cout << "\nWrong character!" << endl;
		rightTriangleSelect(right_triangle_select);
	}
}

	// 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;
	if(equilateral_triangle_select == '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;
		if(equilateral_triangle_select == 'O'){
			firstSelect(equilateral_triangle_select);
		}else if(equilateral_triangle_select == 'B'){
			equilateralTriangleSelect(equilateral_triangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(equilateral_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 << "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;
		if(equilateral_triangle_select == '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;
			if(equilateral_triangle_select == 'O'){
				firstSelect(equilateral_triangle_select);
			}else if(equilateral_triangle_select == 'B'){
				equilateralTriangleSelect(equilateral_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(equilateral_triangle_select == 'S'){
			EquilateralTriangle object;
			object.equilateral_area();
			cout << "Triangle area = " << object.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;
			if(equilateral_triangle_select == 'O'){
				firstSelect(equilateral_triangle_select);
			}else if(equilateral_triangle_select == 'B'){
				equilateralTriangleSelect(equilateral_triangle_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(equilateral_triangle_select == 'B'){
			equilateralTriangleSelect(equilateral_triangle_select);
		}else{
			cout << "\nWrong character!" << endl;
			equilateralTriangleSelect(equilateral_triangle_select);
		}
	}else if(equilateral_triangle_select == 'B'){
		triangleSelect(equilateral_triangle_select);
	}else{
		cout << "\nWrong character!" << endl;
		equilateralTriangleSelect(equilateral_triangle_select);
	}
}

	// 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;
	if(different_side_triangle_select == '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;
		if(different_side_triangle_select == 'O'){
			firstSelect(different_side_triangle_select);
		}else if(different_side_triangle_select == 'B'){
			differentSideTriangleSelect(different_side_triangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(different_side_triangle_select == '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;
		if(different_side_triangle_select == 'O'){
			firstSelect(different_side_triangle_select);
		}else if(different_side_triangle_select == 'B'){
			differentSideTriangleSelect(different_side_triangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(different_side_triangle_select == 'B'){
		triangleSelect(different_side_triangle_select);
	}else{
		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'){
		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'){
			firstSelect(circle_on_a_triangle_select);
		}else if(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'){
		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'){
			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'){
				firstSelect(circle_on_a_triangle_select);
			}else if(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'){
			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'){
				firstSelect(circle_on_a_triangle_select);
			}else if(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'){
			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'){
		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'){
		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'){
			firstSelect(circle_in_a_triangle_select);
		}else if(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'){
		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'){
			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'){
				firstSelect(circle_in_a_triangle_select);
			}else if(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'){
			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'){
				firstSelect(circle_in_a_triangle_select);
			}else if(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'){
			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'){
				firstSelect(circle_in_a_triangle_select);
			}else if(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'){
			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'){
		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'){
		parallelogramSelect(polygons_select);
	}else if(polygons_select == 'T'){
		trapezoidSelect(polygons_select);
	}else if(polygons_select == 'R'){
		rhombusSelect(polygons_select);
	}else if(polygons_select == 'E'){
		rectangleSelect(polygons_select);
	}else if(polygons_select == 'S'){
		squareSelect(polygons_select);
	}else if(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 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'){
			firstSelect(parallelogram_select);
		}else if(parallelogram_select == 'B'){
			parallelogramSelect(parallelogram_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(parallelogram_select);
		}else if(parallelogram_select == 'B'){
			parallelogramSelect(parallelogram_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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 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'){
			firstSelect(trapezoid_select);
		}else if(trapezoid_select == 'B'){
			trapezoidSelect(trapezoid_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(trapezoid_select);
		}else if(trapezoid_select == 'B'){
			trapezoidSelect(trapezoid_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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 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'){
			firstSelect(rhombus_select);
		}else if(rhombus_select == 'B'){
			rhombusSelect(rhombus_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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 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'){
				firstSelect(rhombus_select);
			}else if(rhombus_select == 'B'){
				rhombusSelect(rhombus_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}else if(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'){
				firstSelect(rhombus_select);
			}else if(rhombus_select == 'B'){
				rhombusSelect(rhombus_select);
			}else{
				cout << "Program is suspended" << endl;
			}
		}
	}
}

	// 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 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'){
			firstSelect(rectangle_select);
		}else if(rectangle_select == 'B'){
			rectangleSelect(rectangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(rectangle_select);
		}else if(rectangle_select == 'B'){
			rectangleSelect(rectangle_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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 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'){
			firstSelect(square_select);
		}else if(square_select == 'B'){
			squareSelect(square_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(square_select);
		}else if(square_select == 'B'){
			squareSelect(square_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
		mathematicalOperationsSelect(arithmetic_select);
	}else if(arithmetic_select == 'U'){
		measurementUnitsConverterSelect(arithmetic_select);
	}else if(arithmetic_select == 'E'){
		equationSelect(arithmetic_select);
	}else if(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'){
		weightMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'L'){
		lenghtMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'V'){
		volumeMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(measurement_unit_converter_select == 'T'){
		timeMeasurementUnitsSelect(measurement_unit_converter_select);
	}else if(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 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'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(weight_measurement_units_select);
		}else if(weight_measurement_units_select == 'B'){
			weightMeasurementUnitsSelect(weight_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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 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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(length_measurement_unit_select);
		}else if(length_measurement_unit_select == 'B'){
			lenghtMeasurementUnitsSelect(length_measurement_unit_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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 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'){
			firstSelect(volume_measurement_units_select);
		}else if(volume_measurement_units_select == 'B'){
			volumeMeasurementUnitsSelect(volume_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}
	}else if(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'){
			firstSelect(volume_measurement_units_select);
		}else if(volume_measurement_units_select == 'B'){
			volumeMeasurementUnitsSelect(volume_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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 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'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(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'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(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'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}	
	}else if(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'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(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'){
			firstSelect(time_measurement_units_select);
		}else if(time_measurement_units_select == 'B'){
			timeMeasurementUnitsSelect(time_measurement_units_select);
		}else{
			cout << "Program is suspended" << endl;
		}		
	}else if(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 - ";
}

	// Make the mathematical operations choice
void mathematicalOperationsSelect(char mathematical_operations_select){
	cout << "\nSelect what you want!" << endl;
	cout << "Addition - 'A'\nSubtraction - 'S'\nDivision - 'D'\nMultiplication - 'M'\nGo back - 'B'" << endl;
	cout << "Enter the selected character - ";
}









Editor is loading...