#calculator
import random
from datetime import datetime
import time
class Calculator:
def setup(self):
while True:
back = float(input("Give me an number!!\n Type -143.123456789 to close this app!!"))
if back == -143.123456789:
break#
else:
number = float(input("Type another nuber!!\n Type -143.123456789 to close this app!!"))
if number == -143.123456789:
break
else:
operator = input("Give me an operator (+, -, *, /)\n Type home to close this app!!")
if operator == "+":
print(back + number)
elif operator == "-":
print(back - number)
elif operator == "*":
print(back * number)
elif operator == "/":
print(back / number)
elif operator == "home":
break
else:
print("error")
break
#calculator
class news:
def setup(self):
while True:
print("D.News")
newscommand = input("Type news to show the news! Type home to close the app! ")
if newscommand == "home":
break
elif newscommand == "news":
print("The year 2026 started")
print("A new D.eSystem came out")
print("This year will be good")
break
else:
print("unknown command!!")
#news
class Max:
def setup(self):
while True:
commandmax = input("Do everything for me!!(Type home to close max, type help to see all max commands)")
if commandmax == "hello":
answers = [
"hello",
"Hi,I am Max",
"Welcome",
"Hello friend",
"Hi,you are cool"
]
print(random.choice(answers))
elif commandmax == "why are you here":
answers = [
"Because I can",
"Why not",
"Because I want to help you",
"Becaus I want to be your friend",
"Because I am cool"
]
print(random.choice(answers))
elif commandmax == "what is the bigest planet in the solarsystem ":
answers = [
"Jupiter",
"Its jupiter.",
"The bigest planet is jupiter.",
"It is jupiter."
]
print(random.choice(answers))
elif commandmax == "how old are you":
answers = [
"I was introduced with D.OS 8th gen (scratch) on 26 december 2024",
"I was introduced on 26 december 2024",
"We dont talk about age"
]
print(random.choice(answers))
elif commandmax == "what is that":
answers = [
"This is D.eSystem (prototyp)",
"It is D.eSystem",
"It is the new D.eSystem"
]
print(random.choice(answers))
elif commandmax == "what do you like":
answers = [
"I like D.electronics,D.OS,D.System,D.eSystem.",
"I like you!!",
"I like the world"
]
print(random.choice(answers))
elif commandmax == "hi":
answers = [
"hi",
"hi friend",
"welcome"
]
print(random.choice(answers))
elif commandmax == "home":
break
elif commandmax == "help":
print("You can type: what do you like, what is that, how old are you, what is the bigest planet in the solarsystem, why are you here, hello")
elif commandmax == "random number":
small = float(input("Smallest number?\nType 0.0 to close Max!!"))
if small == 0.0:
print("Max closed")
else:
high = float(input("What is the highest number?\nType 0.0 to close Max!!"))
if high == 0.0:
print("Max closed!!")
break
else:
print(random.uniform(small, high))
elif commandmax == "Whats up":
answers =["Hi",
"Whats up",
"Hey",
"hello"]
print(random.choice(answers))
elif commandmax == "dumb":
answers = [
"why",
":(",
"whats wrong",
"I am not dumb"
]
print(random.choice(answers))
elif commandmax == "bad":
answers = [
"why",
":(",
"whats wrong",
"I am not bad"
]
print(random.choice(answers))
else:
print("unknown command!!\nType help to show all Max commands!!\nType home to close Max.")
#Max chatbot
class clock:
def setup(self):
while True:
commandclock = input("Type command for clock!!Type help to show all commands!!Type home to close clock!!")
if commandclock == "time":
now = datetime.now()
print(now.strftime("%H:%M:%S"))
elif commandclock == "timer":
timertime = float(input("How long?"))
print("If you close the app,the timer will stop.")
time.sleep(timertime)
elif commandclock == "home":
break
elif commandclock == "help":
print("You can type: time, timer, home")
else:
print("unknown command!!")
#clock
class calendar:
def setup(self):
while True:
commandcalendar = input("Type your command for calendar!!\nType home to close calendar,if you close the app the reminder will stop!!\nType help to show all commands!!")
if commandcalendar == "date":
now = datetime.now()
print(now.strftime("%d.%m.%Y"))
elif commandcalendar == "reminder":
remidname = input("Name your remind(Type home to close!!)")
if remidname =="home":
break
else:
wait1 = float(input("How many days?(Type 999.9 to close this app, if you close the app the reminder will stop)"))
if wait1 == 999.9:
break
else:
wait2 = wait1 * 86400
time.sleep(wait2)
print(remidname)
#calendar
elif commandcalendar == "home":
print("App closed!!")
break
elif commandcalendar == "help":
print("You can type: help, reminder, date, home")
class desysversion:
def setup(self):
while True:
commandversion = input("What do you want to see??\nType help to show all commands for this app!!\nType home to close this app!!")
if commandversion == "home":
print("App closed")
break
elif commandversion == "os":
print("OS: D.eSystem 3th gen")
elif commandversion == "ui":
print("UI: D.Touch UI string")
elif commandversion =="ux":
print("UX: String UX")
elif commandversion == "brand":
print("Brand: D.electronics")
elif commandversion == "help":
print("You can type: ui, ux, brand, os, help, kernel ")
elif commandversion == "kernel":
print("kernel: D.eCore 2.5")
else:
print("unknown command!!")
#D.eSystem version
class notes:
def setup(self):
note = ""
while True:
action = input("Type create to create a new note!!\nType show to show your note!!\nType home to close this app!!\nYou have to create a note befor you can show your note!!")
if action == "create":
note = input("Create a note!!")
elif action == "show":
if note == "":
print ("error!!You have no note")
else:
print(note)
elif action == "home":
break
else:
print("unknown command!!")
#notes
class lockscreen:
def setup(self):
while True:
wall10 = "hi"
wall9 = "hi"
wall8 = "hi"
wall7 = "hi"
wall6 = "hi"
wall5 = "hi"
wall4 = "hi"
wall3 ="hi"
wall2 = "hi"
wall = "hi"
wall11 = "hi"
code = input("Choose a code!!\nType home to go back to home")
if code == "home":
break
else:
wall = code
wall2 = code
wall3 = code
wall4 = code
wall5 = code
wall6 = code
wall7 = code
wall8 = code
wall9 = code
wall10 = code
wall11 = code
#print
while True:
unlock = input("Type your code!!")
if unlock == code:
if unlock == wall:
if unlock == wall2:
if code == wall3:
if unlock == wall4:
if unlock == wall5:
if unlock == wall6:
if unlock == wall7:
if unlock == wall8:
if unlock == wall9:
if unlock == wall10:
if unlock == wall11:
print("Unlocked")
break
else:
print("Hack detected, code reseted!!")
code = wall10
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Hack detected, code reseted!!")
code = wall11
else:
print("Wrong code!!")
#lockscreen
class sports:
def setup(self):
while True:
sportscmd = input("Type command for sports!!\nType help to show all commands!!\nType home to close!!")
if sportscmd =="help":
print("You can type: hiking, cycling, walking, soccer, help, home")
elif sportscmd == "hiking":
print("Walk a long time and enjoy the nature and have fun.")
elif sportscmd == "cycling":
print("Gop to your cycle and go out andride it.")
elif sportscmd == "walking":
print("Go outand walk fast for 10-15 min to make good sport.")
elif sportscmd == "soccer":
print("Go on a soccer place and trainand have fun.")
elif sportscmd == "home":
print("App closed")
break
else:
print("Unknown command!!")
#sports
class game:
def setup(self):
import random
while True:
number2 = random.randint(1, 10)
number = int(input("About which number between 1 and 10 im thinking?\n(Type 11 to close the app!!)"))
if number == 11:
print("App closed")
break
else:
if number == number2:
print("Right :)")
else:
print("Wrong :(")
#game
class stresstest:
def setup(self):
import time
import math
while True:
timestress = int(input("How many secconds do you want to run the stresstest?\n(Type 0 to close!!)"))
if timestress == 0:
print("App closed!!")
break
else:
try:
t = float(timestress)
except ValueError:
print("Please type a number!")
continue
print("Stresstest is runing...")
start =time.time()
while time.time() - start < t:
math.sqrt(987654321)
#stresstest
class thundercalculator:
def setup(self):
while True:
seccond = float(input("How many seconds are between the flash and the thunder?\n(Type 999 to close the app!!): "))
if seccond == 999:
print("App closed")
break
calculation = seccond / 3
if calculation < 1:
print("Go fast to a safe place, the thunderstorm is super near!!")
elif calculation <= 3:
print("Thunderstorm is nearly, stay inside a building!!")
else:
print("The thunderstorm isn't near.")
#thundercalculator
#OS
class DeSyseng:
def __init__(self, name, complete, mode):
self.name = name
self.complete = complete
self.mode = mode
def setup(self):
print("welcome to", self.name)
if self.complete == 1:
while True:
# base mode
if self.mode == 1:
command = input("Type command (help): ")
if command == "help":
print("Commands: help, calculator, shutdown, news, max, clock, d.esys version\ncalendar, notes, lockscreen,sports, game, thunder, stresstest")
elif command == "shutdown":
print("System shutting down...")
break
elif command == "calculator":
print("Opening calculator...")
self.mode = 2
elif command == "news":
print("Opening D.News...")
self.mode = 3
elif command == "max":
print("Here is max")
self.mode = 4
elif command == "clock":
print("Here is clock")
self.mode = 5
elif command == "calendar":
print("here is calendar")
self.mode = 6
elif command == "d.esys version":
print("Here is D.eSystem version")
self.mode = 7
elif command == "notes":
print("here are your notes")
self.mode = 8
elif command == "lockscreen":
print("Here is lockscreen!!")
self.mode = 9
elif command == "sports":
print("Here is sports")
self.mode = 10
elif command == "game":
print("Here is game")
self.mode = 11
elif command == "stresstest":
print("Here is stresstest!!")
self.mode = 12
elif command == "thunder":
print("Here is thundercalculator")
self.mode = 13
else:
print("unknown command")
#core
# open calculator
elif self.mode == 2:
Calculator().setup()
self.mode = 1 # home
elif self.mode == 3:
news().setup()
self.mode = 1 #home
elif self.mode == 4:
Max().setup()
self.mode = 1 #home
elif self.mode == 5:
clock().setup()
self.mode = 1 # home
elif self.mode == 6:
calendar().setup()
self.mode = 1 # home
elif self.mode == 7:
desysversion().setup()
self.mode = 1 #home
elif self.mode == 8:
notes().setup()
self.mode = 1 #home
elif self.mode == 9:
lockscreen().setup()
self.mode = 1 #home
elif self.mode == 10:
sports().setup()
self.mode = 1 #home
elif self.mode == 11:
game().setup()
self.mode = 1 #home
elif self.mode == 12:
stresstest().setup()
self.mode = 1 #home
elif self.mode == 13:
thundercalculator().setup()
self.mode = 1 #home
#D.eSys setup
class Person:
import random
def __init__(self, name):
self.name = name
def setup(self):
import time
import random
self.mode = 0
self.complete = 0
time.sleep(1)
print("Welcome in", self.name)
language = input("Welcome in D.eSystem!!\nYou can type later commands in hte shell to use D.eSystem!!\npress enter to continue!!: ")
if language == "english":
print("Welcome in D.eSystem setup")
elif language == "german":
print("Sie haben Deutsch ausgewählt.")
else:
print("Welcome in D.eSystem setup")
language = "english"
input("Press Enter to continue setup...")
self.mode = 1
self.complete = 1
self.language = language
#boot
p = Person("D.eSystem setup")
p.setup()
os = DeSyseng("D.eSystem", p.complete, p.mode)
os.setup()