Complete Python program with output for the given problem is given below :
Python Code :
import math
def rhombusPerimeter(d1, d2):
perimeter = 2 * math.sqrt(pow(d1, 2) +
pow(d2, 2))
print("The perimeter of rhombus with diagonals",
d1, "and", d2, "is", perimeter, "." )
def d1():
dia1 = int(input("Enter diagonal 1 : "))
return dia1
def d2():
dia2 = int(input("Enter diagonal 2 : "))
return dia2
if __name__ == '__main__':
x=d1()
y=d2()
rhombusPerimeter(x, y)
Output :
If you have any doubt regarding the solution then let me know in
comment. If it helps, kindly give an upVote to this answer.
11 Normal No Spacing Heading 1 Heading 2 .Implement the following algorithm in Python a D...
Digital logic design Question 2 [4+6=10Marks] I. Implement following function using 16 x 1 multiplexer? F(A,B,C,D) = I l.ec.(D1, D2, D3, D4,10,11,13,15) II. Implement function F given above using 8 x 1 multiplexer?