Skip to content

Commit f0a82df

Browse files
Add files via upload
1 parent 2af0688 commit f0a82df

File tree

10 files changed

+92
-61
lines changed

10 files changed

+92
-61
lines changed

EN/calc.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
11
#!/usr/bin/python3
2+
from inputden import *
23
"Copyright© 2023 LinuxUsersLinuxMint"
34
"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
45
"Python Calcutator All Rights Reserved under the GPL(General Public License)."
56
"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
67
"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
78

8-
command=input('calc> ')
9-
about= "Python Calcutator CLI(Command Line Interface) LICENCE=GPL2"
109
if command=="calc":
1110
print("calc> Transactions You Can Enter: ")
1211
print("collect\nExtraction\n\Impact\nDivide\nPercentage\nabout")
13-
number1=input('calc> Enter the 1st number: ')
14-
number2=input('calc> Enter the 2nd number: ')
15-
process=input('calc> Enter the action you want to perform: ')
16-
collect=float(number1)+float(number2)
17-
Extraction=float(number1)-float(number2)
18-
Impact=float(number1)*float(number2)
19-
Divide=float(number1)/float(number2)
20-
Percentage=float(number1)%float(number2)
12+
number1 , number2 , process
2113
if process=="collect":
22-
print("{0} + {1} = {2}". format(number1,number2,collect))
14+
print("{0} + {1} = {2}". format(number1,number2,addition))
2315
elif process=="Extraction":
24-
print("{0} - {1} = {2}". format(number1,number2,Extraction))
16+
print("{0} - {1} = {2}". format(number1,number2,subraction))
2517
elif process=="Impact":
26-
print("{0} * {1} = {2}". format(number1,number2,Impact))
18+
print("{0} * {1} = {2}". format(number1,number2,multiplication))
2719
elif process=="Divide":
28-
print("{0} / {1} = {2}". format(number1,number2,Divide))
20+
print("{0} / {1} = {2}". format(number1,number2,division))
2921
elif process=="Percentage":
3022
print("{0} % {1} = {2}". format(number1,number2,Percentage))
3123
else:
@@ -42,7 +34,7 @@
4234
elif command=="web-site":
4335
print("linuxuserslinuxmint.github.io")
4436
elif command=="ver":
45-
print("Version: 0.1.5.5 (Last Updated September 6 , 2023 , 22:22)")
37+
print("Version: 0.1.7 (Last Updated September 8 , 2023 , 18:08)")
4638
elif command=="licence":
4739
print("This Software is protected under the GPL2 license")
4840
else:

EN/inputden.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
command=input('calc> ')
3+
comtxt="calc> "
4+
about="Python Calcutator CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
5+
number1=input('{0} Enter The 1st number: '. format(comtxt))
6+
number2=input('{0} Enter The 2st number: '. format(comtxt))
7+
process=input('{0} Enter the Transaction You Want to Perform: '. format(comtxt))
8+
addition=float(number1)+float(number2)
9+
subraction=float(number1)-float(number2)
10+
multiplication=float(number1)*float(number2)
11+
division=float(number1)/float(number2)
12+
Percentage=float(number1)%float(number2)

INSTALL/EN/inputden.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
command=input('calc> ')
3+
comtxt="calc> "
4+
about="Python Calcutator CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
5+
number1=input('{0} Enter The 1st number: '. format(comtxt))
6+
number2=input('{0} Enter The 2st number: '. format(comtxt))
7+
process=input('{0} Enter the Transaction You Want to Perform: '. format(comtxt))
8+
addition=float(number1)+float(number2)
9+
subraction=float(number1)-float(number2)
10+
multiplication=float(number1)*float(number2)
11+
division=float(number1)/float(number2)
12+
Percentage=float(number1)%float(number2)

INSTALL/TR/calc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
#!/usr/bin/python3
2+
from inputdtr import *
23
"Copyright© 2023 LinuxUsersLinuxMint"
34
"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
45
"Python Calcutator All Rights Reserved under the GPL(General Public License)."
56
"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
67
"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
78

8-
command=input('calc> ')
99
about= "Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
1010
if command=="calc":
1111
print("calc> Girebileceğiniz işlemler: ")
1212
print("top\ncık\n\carp\nbol\nyuzde\nabout")
13-
sayi1=input('calc> 1.sayiyi giriniz: ')
14-
sayi2=input('calc> 2.sayiyi giriniz: ')
15-
islem=input('calc> Gerçekleştirmek istediğiniz işlemi giriniz: ')
16-
top=float(sayi1)+float(sayi2)
17-
cık=float(sayi1)-float(sayi2)
18-
carp=float(sayi1)*float(sayi2)
19-
bol=float(sayi1)/float(sayi2)
20-
yuzde=float(sayi1)%float(sayi2)
13+
sayi1 , sayi2 , islem
2114
if islem=="top":
2215
print("{0} + {1} = {2}". format(sayi1,sayi2,top))
2316
elif islem=="cık":
@@ -42,7 +35,7 @@ elif command=="git-address":
4235
elif command=="web-site":
4336
print("linuxuserslinuxmint.github.io")
4437
elif command=="ver":
45-
print("Sürüm: 0.1.5.5 (Son Güncellenme Tarihi 6 Eylül , 2023 , 22:22)")
38+
print("Sürüm: 0.1.7 (Son Güncellenme Tarihi 8 Eylül , 2023 , 18:08)")
4639
elif command=="licence":
4740
print("This Software is protected under the GPL2 license")
4841
else:

INSTALL/TR/inputdtr.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
command=input('calc> ')
3+
comtxt="calc> "
4+
about="Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
5+
sayi1=input('{0} 1. sayiyi giriniz: '. format(comtxt))
6+
sayi2=input('{0} 2. sayiyi giriniz: '. format(comtxt))
7+
islem=input('{0} Gerçekleştirmek İstediğiniz İşlemi Giriniz: '. format(comtxt))
8+
top=float(sayi1)+float(sayi2)
9+
cık=float(sayi1)-float(sayi2)
10+
carp=float(sayi1)*float(sayi2)
11+
bol=float(sayi1)/float(sayi2)
12+
yuzde=float(sayi1)%float(sayi2)

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55

66
* Calculate with "calc> _" interface
77
* A calculator that is constantly updated and aimed at improvement
8+
9+
Updated 8 September , 2023 , 18:08:
10+
11+
* inputdtr / inputden module added
12+
NOTE: This is a new process and you should report any unexpected Errors that may be observed.
13+
NOTE2: Report errors to the report.txt file.
619 Bytes
Binary file not shown.

TR/calc.py

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,41 @@
11
#!/usr/bin/python3
2+
from inputdtr import *
23
"Copyright© 2023 LinuxUsersLinuxMint"
34
"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
45
"Python Calcutator All Rights Reserved under the GPL(General Public License)."
56
"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
67
"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
78

8-
command=input('calc> ')
9-
about= "Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
109
if command=="calc":
11-
print("calc> Girebileceğiniz işlemler: ")
12-
print("top\ncık\n\carp\nbol\nyuzde\nabout")
13-
sayi1=input('calc> 1.sayiyi giriniz: ')
14-
sayi2=input('calc> 2.sayiyi giriniz: ')
15-
islem=input('calc> Gerçekleştirmek istediğiniz işlemi giriniz: ')
16-
top=float(sayi1)+float(sayi2)
17-
cık=float(sayi1)-float(sayi2)
18-
carp=float(sayi1)*float(sayi2)
19-
bol=float(sayi1)/float(sayi2)
20-
yuzde=float(sayi1)%float(sayi2)
21-
if islem=="top":
22-
print("{0} + {1} = {2}". format(sayi1,sayi2,top))
23-
elif islem=="cık":
10+
print("calc> Girebileceğiniz işlemler: ")
11+
print("top\ncık\n\carp\nbol\nyuzde\nabout")
12+
sayi1 , sayi2 , islem
13+
if islem=="top":
14+
print("{0} + {1} = {2}". format(sayi1,sayi2,top))
15+
elif islem=="cık":
2416
print("{0} - {1} = {2}". format(sayi1,sayi2,cık))
25-
elif islem=="carp":
17+
elif islem=="carp":
2618
print("{0} * {1} = {2}". format(sayi1,sayi2,carp))
27-
elif islem=="bol":
19+
elif islem=="bol":
2820
print("{0} / {1} = {2}". format(sayi1,sayi2,bol))
29-
elif islem=="yuzde":
21+
elif islem=="yuzde":
3022
print("{0} % {1} = {2}". format(sayi1,sayi2,yuzde))
31-
else:
23+
else:
3224
print("Geçersiz İşlem")
33-
if command=="about":
34-
print(about)
35-
elif command=="exit":
36-
exit()
37-
elif command=="help":
38-
print("Python calc Help")
39-
print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence")
40-
elif command=="git-address":
41-
print("Github Link: https://github.com/LinuxUsersLinuxMint")
42-
elif command=="web-site":
43-
print("linuxuserslinuxmint.github.io")
44-
elif command=="ver":
45-
print("Sürüm: 0.1.5.5 (Son Güncellenme Tarihi 6 Eylül , 2023 , 22:22)")
46-
elif command=="licence":
47-
print("This Software is protected under the GPL2 license")
48-
else:
49-
print("Geçersiz Komut")
25+
if command=="about":
26+
print(about)
27+
elif command=="exit":
28+
exit()
29+
elif command=="help":
30+
print("Python calc Help")
31+
print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence")
32+
elif command=="git-address":
33+
print("Github Link: https://github.com/LinuxUsersLinuxMint")
34+
elif command=="web-site":
35+
print("linuxuserslinuxmint.github.io")
36+
elif command=="ver":
37+
print("Sürüm: 0.1.7 (Son Güncellenme Tarihi 8 Eylül , 2023 , 18:08)")
38+
elif command=="licence":
39+
print("This Software is protected under the GPL2 license")
40+
else:
41+
print("Geçersiz Komut")

TR/inputdtr.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/python3
2+
command=input('calc> ')
3+
comtxt="calc> "
4+
about="Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
5+
sayi1=input('{0} 1. sayiyi giriniz: '. format(comtxt))
6+
sayi2=input('{0} 2. sayiyi giriniz: '. format(comtxt))
7+
islem=input('{0} Gerçekleştirmek İstediğiniz İşlemi Giriniz: '. format(comtxt))
8+
top=float(sayi1)+float(sayi2)
9+
cık=float(sayi1)-float(sayi2)
10+
carp=float(sayi1)*float(sayi2)
11+
bol=float(sayi1)/float(sayi2)
12+
yuzde=float(sayi1)%float(sayi2)

report.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)