INFORMATION TECHNOLOGY various

Home / Πληροφορική Θεματα / INFORMATION TECHNOLOGY various

INFORMATION TECHNOLOGY various

How to edit your host file

https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

Προγραμμα σε Python για συγκριση των τιμων ηλεκτρικου ρευματος

import sys
print(“αυτο ειναι το πρασινο τιμολογιο!!!! avg prices 4 digits ” )
print(“το προγραμμα υπολογιζει την μεταβολη των μεταβλητων με διαφορα σεναρια “)
import numpy as np

try:
a=float(input(“enter the a value e.g a= 1.3115== “))
teavg1min=float(input(“give me the min TEA average of previouw month “))

teavg1max=float(input("give me the max TEA  of previouw month "))

step=float(input("give me the CALCULATION STEP E.G 0.01      "))
teavg2min=float(input("give me the min TEA   of 2 months before "))

teavg2max=float(input("give me the max TEA   of 2 mont before "))
ll=float(input("give me the l lower value = e.g a=0.03   " ))
lu=float(input("give me the l upper  value = e.g a=0,04   " ))

except ValueError :
print(‘WRONG INPUT !!!! ‘)
sys.exit(“please enter again correct data . the program stops!! run it from start”)

for i in np.arange (teavg1min,teavg1max,step):
for j in np.arange (teavg2min,teavg2max,step ) :
b=a(i-j) if i < ll: price=0.089+a(i-ll)+b
elif ( i> ll and i < lu ) : price=0.089 elif i >lu:
price=0.089+a*(i-lu)+b
price=round(price,2)
i=round(i,2)
j=round(j,2 )
print(“price= ” , price ,” tea 1 month before = “,i,” tea 2 months before = “, j )

termination=1
while (termination != 0):
print (“0 to stop otherwise program will not stop , “)
termination=int(input(“press 0 to stop “))
print (” bye bye from programmer pantelis “)

Comments are closed.