You are on page 1of 4

Quest: 1

# Let variable; A be Area of a room

# Let variable; B be Lenght of a room

# Let variable; C be Width of a room

lenght_A = float(input("Enter the lenght of the room in Meter: "))

Width_B = float(input("Enter the width of the room in Meter: "))

Area_C = lenght_A * Width_B

print("The Area of the room is", Area_C, "Meter")

Quest 2:

# The summation of x and y integer

X = float(input("Enter the figure for X: "))

Y = float(input("Enter the figure for Y: "))

Summation = X + Y

print("The sum of the two integers is", Summation)

# The Product of x and y integer

X = float(input("Enter the figure for X: "))

Y = float(input("Enter the figure for Y: "))

Product = X * Y

print("The Product of the two integers is", Product)

# The Difference of x and y integer

X = float(input("Enter the figure for X: "))

Y = float(input("Enter the figure for Y: "))

Difference = X - Y

print("The Difference of the two integers is", Difference)

# The Quotients of x and y integer

X = float(input("Enter the figure for X: "))

Y = float(input("Enter the figure for Y: "))

Quotient = X // Y

print("The Quotient of the two integers is", Quotient)


Quest: 3

# The Diameter of a Circle using the radius

raduis = float(input("Enter the radius: "))

Pie = 3.14159

Diameter = 2 * raduis45

print("The diameter of the circle is", Diameter, "centimeters")

# The Circumference of a Circle using the radius

raduis = float(input("Enter the radius: "))

Pie = 3.14159

Circumference = 2 * Pie * raduis

print("The Circumference of the circle is", Circumference, "centimeters")

# The Area of a Circle using the radius

raduis = float(input("Enter the radius: "))

Pie = 3.14159

Area = Pie * (raduis * raduis)

print("The Area of the circle is", Area, "centimeters")

Quest: 4

# let x be under weight variables be 18.5

# let y be height variables be 1.72 meters

x = float(input("Enter the Weight of the person in Kg: "))

y = float(input("Enter the Height of the person in meter: "))

BMI = x //(y * y)

print("The results for the Underweight is", BMI, "BMI")

# let x be Normal weight variables be 21.70 on average

# let y be height variables 1.54 meters

x = float(input("Enter the Weight of the person in Kg: "))

y = float(input("Enter the Height of the person in meter: "))

BMI = x //(y * y)

print("The results for the Normal is", BMI, "BMI")

# let x be Over-weight variables be 27.45 on average

# let y be height variables 1.75 meters

x = float(input("Enter the Weight of the person in Kg: "))

y = float(input("Enter the Height of the person in meter: "))


BMI = x //(y * y)

print("The results for the Overweight is", BMI, "BMI")

# let x be Obess-weight variables be 30 on average

# let y be height variables 1.45 meters

x = float(input("Enter the Weight of the person in Kg: "))

y = float(input("Enter the Height of the person in meter: "))

BMI = x //(y * y)

print("The results for the Obess-weight is", BMI, "BMI")

Quest: 5

# Net growth Population = (Birth - Death)/ Population Size

# The current Net population growth = 1.05%

# The current Population Size = 7.9 billion

Quest: 5

# Estimating the World Population

# 1st Year population Size = 81,330,639

World_Population_size = 7900000000

Year_1 = float(input("Enter the Global yearly population Size: "))

First_Year = (World_Population_size + Year_1)

print("The first year population growth is",First_Year)

# 2nd Year population Size = 81,330,639

World_Population_size = First_Year

Year_2 = float(input("Enter the Global yearly population Size: "))

Second_Year = (World_Population_size + Year_2)

print("The second year population growth is",Second_Year)

# 3nd Year population Size = 81,330,639

World_Population_size = Second_Year

Year_3 = float(input("Enter the Global yearly population Size: "))

Third_Year = (World_Population_size + Year_3)

print("The third year population growth is",Third_Year)

# 4th Year population Size = 81,330,639

World_Population_size = Third_Year

Year_4 = float(input("Enter the Global yearly population Size: "))

fourth_Year = (World_Population_size + Year_4)

print("The fourth year population growth is",fourth_Year)

# 5th Year population Size = 81,330,639

World_Population_size = fourth_Year
Year_5 = float(input("Enter the Global yearly population Size: "))

fifth_Year = (World_Population_size + Year_5)

print("The fifth year population growth is",fifth_Year)

You might also like