{"id":20696490,"url":"https://github.com/mohamed-94/super-calculator_cpp_commandline","last_synced_at":"2025-03-11T02:47:37.757Z","repository":{"id":188067771,"uuid":"134603977","full_name":"Mohamed-94/Super-Calculator_Cpp_CommandLine","owner":"Mohamed-94","description":"this repository is a C++ command line application....that use a long String of operators .. ","archived":false,"fork":false,"pushed_at":"2018-10-23T22:47:28.000Z","size":3836,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T18:26:51.633Z","etag":null,"topics":["algorithm","c","c-plus-plus","console-application"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mohamed-94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-05-23T17:28:12.000Z","updated_at":"2023-12-31T19:26:33.000Z","dependencies_parsed_at":"2023-08-13T16:11:16.032Z","dependency_job_id":null,"html_url":"https://github.com/Mohamed-94/Super-Calculator_Cpp_CommandLine","commit_stats":null,"previous_names":["mohamed-94/super-calculator_cpp_commandline"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohamed-94%2FSuper-Calculator_Cpp_CommandLine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohamed-94%2FSuper-Calculator_Cpp_CommandLine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohamed-94%2FSuper-Calculator_Cpp_CommandLine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mohamed-94%2FSuper-Calculator_Cpp_CommandLine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mohamed-94","download_url":"https://codeload.github.com/Mohamed-94/Super-Calculator_Cpp_CommandLine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242961754,"owners_count":20213315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","c","c-plus-plus","console-application"],"created_at":"2024-11-17T00:14:09.564Z","updated_at":"2025-03-11T02:47:37.739Z","avatar_url":"https://github.com/Mohamed-94.png","language":"C++","readme":"# Super-Calculator_Cpp_CommandLine\n\nthis repository is a C++ command line application....that use a long String of operators ..provided by \n\nuser (with tow numbers to calculate)..and than calculate the whole operation as long as there is an operator in the user field..\n\neach operation has its option and limits in the user field for example you can not enter an Addition operator while the operation is\nMultiplication ...instead use an Addition operation first - and vise versa..\n\n*to go to the real and main function of this app you should use *All Operations* option which is provided as well..there you can\n\nget the result from all operations through combining all possible operators and than calculate them together ...\n\n\n*perhaps the user want to calculate 10 + 10\n\nhe will use Addition Operation[+]\n\nand then he will enter a long string in the operator field like this:\n\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\nthis will led the algorithm to calculate the operation like this\n\n10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10\n\nand then add the whole result like this\n\n20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20\n\nit calculate all that depends on the string entered by the user..long or short.\n\nand then it genrates the result and the times operation has been applied \n\n*result = 540\n\n*applied = 45 times\n\n_*Multiplication[*]\n\nuser numbers: 10 , 10\n\nuser input\n\n[***********************************************************]\n\nthis will led the algorithm to calculate the operation like this\n\n10 * 10  10 *10  10 *10  10 *10  10 *10  10 *10  10 *10  10 *10  10 *10  10 *10\n\nand then add the whole result like this\n\n100 + 100 + 100 + 100+100 + 100+100 + 100+100 + 100+100 + 100+100 + 100+100 + 100+100 \n\n-*Division\n\nuser numbers: 10 , 5\n\nuser input\n\n//////////////////////////////////////////////////////////////\n\nthis will led the algorithm to calculate the operation like this\n\n10 / 5  10 /5  10 /5  10 /5  10 /5  10 /5  10 /5  10 /5  10 /5  10 /5\n\nand then add the whole result like this\n\n2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2\n\n\n_*Substruction\n\nuser numbers: 10 , 5\n\nuser input\n\n[------------------------------------------------------------]\n\nthis will led the algorithm to calculate the operation like this\n\n10 - 5  10 - 5  10 - 5  10 - 5  10 - 5  10 - 5  10 - 5  10 - 5  10 - 5  10 - 5\n\nand then add the whole result like this\n\n5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 +5 + 5 \n\n-*Modulo\n\nuser numbers: 10 , 5\n\nuser input\n\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\nthis will led the algorithm to calculate the operation as follows\n\n10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 10 % 5 \n\nand then add the whole result like this\n\n0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 + 0 +0 \n\n-*Power\n\nuser numbers: 10, 2\n\nuser input\n\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nthis will led the algorithm to calculate the operation like this\n\n10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2  10 ^ 2 \n\nand then add the whole result like this\n\n100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100 + 100\n\n_*Factorial\n\nuser numbers: 5\n\nuser input\n\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\nthis operation takes only one number to return the factorial..and that\n\nwill led the algorithm to calculate the operation like this( if user choose 5)\n\n!5 !5 !5 !5 !5  !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5 !5\n\nand then add the whole result like this\n\n121 + 121 +121 + 121 +121 + 121 + 121 + 121 +121 + 121 +121 + 121 +121 + 121 +121 + 121 \n\n_*All Operations[*.*]\n\nNow its came to the real function of the Algorithm to take all operations combined and parsse the user input(operator field) and then\n\nreturn the result of eche operation with its operator (provided by user) ..\n\nfor example a user want to calculate two numbers 10 and 7\n\nand then he entered the follewing input (in the operator field)\n\nuser numbers: 10, 7\n\nuser input\n\n+++++++++**************///////////////////%%%%%%%%%%%%%%%^^^^^^^^^^^^^^^^!!!!!!!!!!!--------++++++\n\nthis will led the algorithm to calculate the operation like this\n\n10 + 7 10 + 7 10 + 7 10 + 7  10 * 7  10 * 7 10 * 7  10 * 7 10 * 7 * 10 * 7 10 * 7  10 * 7  10 / 7 10 / 7 10 / 7 10 / 7 10 / 7 10\n/ 7 10 / 7 10 / 7  10 % 7  10 % 7 10 % 7 10 % 7 10 % 7 10 % 7  10 ^ 7 10 ^ 7 10 ^ 7 10 ^ 7 10 ^ 7 10 ^ 7  10 ^ 7 10 ^ 7 \n!10 ! 10 !10 !10 !10 !10 !10 !10  10 - 7  10 - 7  10 - 7  10 - 7  10 - 7  10 - 7  10 - 7 10 - 7 10 + 7 10 + 7 10 + 7 10 + 7 \n\n(notice that factorial ! operator applied only on first number wich is 10) \n\nand then add the whole result like this\n\n17 + 17 +17 + 17 +17 + 17 +17 + 17 + 70 + 70 +70 + 70 +70 + 70 +70 + 70 +70 + 70 + 1.4 + 1.4 +1.4 + 1.4 +1.4 + 1.4 +1.4 + 1.4 +1.4 + 1.4\n+1.4 + 1.4 +1.4 + 1.4 + 3 + 3 +3 + 3 +3 + 3 +3 + 3 +3 + 3 +3 + 3 + 3 + 3 + 10000000 + 10000000 +10000000 + 10000000 +10000000 + 10000000\n+10000000 + 10000000 +10000000 + 10000000 +10000000 + 10000000 + 5040 + 504 +5040 + 504 +3628800 +3628800 + 3628800 + 3628800 +3628800\n+3628800 +3628800 +3628800 +3628800 +3628800 + 3 +3 +3 + 3 + 3 +3 +3 +17 +17 +17 +17 +17 +17\n\nit calculate all that depends on the string entered by the user..\n\nthe result will be 100% correct ..However if the user inputs the wrrong charecter within the operator field ..it will not included in the calculation ..and the program will return an error message (that in the GUI version).\n\nthis the standard features .. more features will come soon with more operations suported..\n\nhowever a gui version is exist, which is include more features by default.. \n\nGUI version..\n\nthis was a Console Mode Application which developed with C++ ..\n\nthe GUI version is now available in other repository [Mega Number]..its developed with C# and contain all the standard features included in the console application so far ...\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamed-94%2Fsuper-calculator_cpp_commandline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamed-94%2Fsuper-calculator_cpp_commandline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamed-94%2Fsuper-calculator_cpp_commandline/lists"}