1
2
# aquest programa et resol tots els apartats d'un problema de construcció d'una piscina climatitzada.
import t1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
def Cforat(v,ct,st,t,n):
return (v+ct)+(st*t*n)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
def Cint(v,cc,cg,cm,cf):
return (v*(cc+cg+cm+cf))
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
def Cext(v,ce,cl):
return ((v*ce)+(v*cl))
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
def Sous(ss,sr,n,Mant,t):
return (ss*n*t)+(sr*t)+(Mant*t)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
def Ctotal(v,Caig,Cforat,Cint,Cext,Sous,Mant):
return ((v*Caig)+Cforat+Cint+Cext+Sous+Mant)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
def Tamort(Ctotal,Pent,Sous,Mant,n):
return (Ctotal/(Pent*n*10)+((Sous+(Mant*10))/(Pent*n*10)))
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Adding or removing images is disabled during broadcasting. You'll be able to update images again once the broadcast session is over.

Images listed here are available to use in your code in this trinket. Click the Image Library button to include more or upload new images.

How To Use Images

Images can be used with the turtle module.

import turtle
screen = turtle.Screen()
# set the screen background
screen.bgpic("filename.png")

# Or, set the shape of a turtle
screen.addshape("filename.png")
tina = turtle.Turtle()
tina.shape("filename.png")

Powered by

Run your code first!

It looks like you haven't tried running your new code.

Try clicking  Run and if you like the result, try sharing again.

×