import math
#My first programm in Python
print("Hello")
print("Geethani Subhashani")
print("Rathnapura Sumana Balika Vidyalaya")
print("Puwakgahawelawaththa,Dodampe,Rathnapura")
print("077-9311524")
#Example3-Variables and operators
a=10.7
print("a=",a)
print("a+5=",a+5)
print("a-1=",a-1)
print("5*a=",5*a)
print("a*a=",a*a)
print("a/5=",a/5)
print("a//5=",a//5)
print("a/4=",a/4)
print("a//4=",a//4)
print("a%3=",a%3)
#Example4
x=8
y=5
print("x+y=",x+y)
print("x-y",x-y)
print("x*y=",x*y)
print("x/y=",x/y)
print("x*x=",x*x)
print(math.sqrt(x))
print("x%y=",x%y)
#Example5-Type
number=6
type(number)
name="UCSC"
type(name)
gpa=3.5
type(gpa)
x=8
type(x)
result=number>x
type(result)
average=5.333
type(average)
y=3.5+4.4j
type(y)
#Type conversion
x1=34.28656456
type(x1)
x2=int(x1)
type(x2)
#Activity7
r=7
a=22/7*r*r
Area=a
print("Area=",Area)
#Temperature Converter(Farenheite to Celsius)
Farenheite=237.6
Celsius=(Farenheite-32)*5/9
print("Celsius=",Celsius)
#Celsius to Farenheite converter
Celsius=100
Farenheite=(Celsius+32)*9/5
print("Farenheite=",Farenheite)
#Activity10
a=10-4+4
b=5*6
c=16.0/8.0
print("These are the values:",a,b,c)
print("Increment",a,"by one:")
a=a+1
print(a)
print("The sum of",a,"and",b,"is")
d=a+b
print(d)
#Quadratic equation
#Ex01
a=1
b=-5
c=6
discRoot=math.sqrt(b*b-4*a*c)
root1=(-b+discRoot)/(2*a)
root2=(-b-discRoot)/(2*a)
print("root1=",root1)
print("root2=",root2)
#Ex02
a=1
b=-1
c=-20
discRoot=math.sqrt(b*b-4*a*c)
root1=(-b+discRoot)/(2*a)
root2=(-b-discRoot)/(2*a)
print("root1=",root1)
print("root2=",root2)
#Ex03
a=1
b=2
c=1
discRoot=math.sqrt(b*b-4*a*c)
root1=(-b+discRoot)/(2*a)
root2=(-b-discRoot)/(2*a)
print("root1=",root1)
print("root2=",root2)
                     
