Skip to content

Commit 4aada60

Browse files
Minor edit.
1 parent 81491c9 commit 4aada60

File tree

7 files changed

+101
-6
lines changed

7 files changed

+101
-6
lines changed

EN/Basic_Maths.py

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2024 LinuxUsersLinuxMint
3+
Basic_Maths Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
Basic_Maths All Rights Reserved under the GPL(General Public License).
5+
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/Basic_Maths
6+
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/Basic_Maths"""
7+
8+
import time
9+
10+
global result,input_dialog,error_dialog
11+
12+
input_dialog = str()
13+
error_dialog = str()
14+
15+
def p(userString):
16+
print(userString)
17+
18+
def error_msg():
19+
p(error_dialog)
20+
21+
def exit_program_dialog_time(exit_dialog_msg,userTime):
22+
p(exit_dialog_msg)
23+
time.sleep(userTime)
24+
exit()
25+
26+
def exit_program_time(userTime):
27+
time.sleep(userTime)
28+
exit()
29+
30+
def exit_program_dialog(exit_dialog_msg):
31+
p(exit_dialog_msg)
32+
exit()
33+
34+
def program_welcome_msg(welcome_msg):
35+
p(welcome_msg)
36+
37+
def program_info(programnamedialog,program_name,programversiondialog,program_version,programsupportosdialog,program_support_os,programlicencedialog,program_licence,programauthordialog,program_author,programreleasedatedialog,program_rs_date):
38+
p("{0} {1}". format(programnamedialog,program_name))
39+
p("{0} {1}\n". format(programversiondialog,program_version))
40+
p("{0} {1}\n". format(programsupportosdialog,program_support_os))
41+
p("{0} {1}\n". format(programlicencedialog,program_licence))
42+
p("{0} {1}\n". format(programauthordialog,program_author))
43+
p("{0} {1}\n". format(programreleasedatedialog,program_rs_date))
44+
45+
46+
def InputN1N2():
47+
global number_one, number_two
48+
number_one = str(input("{0}". format(input_dialog)))
49+
number_two = str(input("{0}". format(input_dialog)))
50+
51+
select_func = str()
52+
"""
53+
Example:
54+
55+
input_select = str(input('Which process?'))
56+
select_func = input_select
57+
58+
def addition(x,y,ResultDialog):
59+
result=x+y
60+
print("{0} {1} {2} + {3} = {4}". format(select_func,ResultDialog,x,y,result))
61+
62+
"""
63+
64+
def addition(x,y,ResultDialog):
65+
result=x+y
66+
p("{0} {1} {2} + {3} = {4}". format(select_func,ResultDialog,x,y,result))
67+
68+
def Extraction(x,y,ResultDialog):
69+
result=x-y
70+
p("{0} {1} {2} - {3} = {4}". format(select_func,ResultDialog,x,y,result))
71+
72+
def Multiplication(x,y,ResultDialog):
73+
result=x*y
74+
p("{0} {1} {2} * {3} = {4}". format(select_func,ResultDialog,x,y,result))
75+
76+
def Division(x,y,ResultDialog,check_zero_control_msg):
77+
if x==0 or y==0:
78+
p(check_zero_control_msg)
79+
if y>0 and x>0:
80+
result=x/y
81+
p("{0} {1} {2} / {3} = {4}". format(select_func,ResultDialog,x,y,result))
82+
83+
def Percentage(x,y,ResultDialog):
84+
result=x%y
85+
p("{0} {1} {2} % {3} = {4}". format(select_func,ResultDialog,x,y,result))
86+
87+
def FullDivision(x,y,ResultDialog):
88+
result=x//y
89+
p("{0} {1} {2} // {3} = {4}". format(select_func,ResultDialog,x,y,result))
90+
91+
def TakingExponents(x,y,ResultDialog):
92+
result=x ** y
93+
p("{0} {1} {2} ** {3} = {4}". format(select_func,ResultDialog,x,y,result))
94+
95+
def TakingRoots(x,y,ResultDialog):
96+
result=x ** (1/y)
97+
p("{0} {1} {2} / (1/y) = {3}". format(select_func,ResultDialog,x,result))
98+
99+
def SqaureRoot(x,ResultDialog):
100+
result=x ** (1/2)
101+
p("{0} {1} {2} ** (1/2) = {3}". format(select_func,ResultDialog,x,result))

EN/calc

-6.3 MB
Binary file not shown.

EN/calc.exe

-4.78 MB
Binary file not shown.

EN/note.txt

-3
This file was deleted.

TR/calc.exe

-4.78 MB
Binary file not shown.

TR/calc_tr

-6.3 MB
Binary file not shown.

TR/not.txt

-3
This file was deleted.

0 commit comments

Comments
 (0)