diff --git a/Python program with the help of module.py b/Python program with the help of module.py new file mode 100644 index 0000000..15c13cd --- /dev/null +++ b/Python program with the help of module.py @@ -0,0 +1,49 @@ +import circle +import rectangle +import square +import triangle +print('\t\t\tmenu') +print('1. area of circle') +print('2. circumference of circle') +print('3. area of rectangle') +print('4. perimeter of rectangle') +print('5. area of square') +print('6. perimeter of square') +print('7. area of triangle') +print('8. perimeter of triangle') +print('9. quit') +choice=int(input('enter your choice-')) +if choice==1: + radius=int(input('enter the radius-')) + print('the area is',circle.area(radius)) +elif choice==2: + radius=int(input('enter the radius-')) + print('the circumference is',circle.circumference(radius)) +elif choice==3: + width=int(input('enter the width-')) + length=int(input('enter the length-')) + print('the area is',rectangle.area(width,length)) +elif choice==4: + width=int(input('enter the width-')) + length=int(input('enter the length-')) + print('the perimeter is',rectangle.perimeter(width,length)) +elif choice==5: + side=int(input('enter the side of square-')) + print('the area of square is',square.area(side)) +elif choice==6: + side=int(input('enter the side of square-')) + print('the perimeter of square is',square.perimeter(side)) +elif choice==7: + a=int(input('enter the side of triangle-')) + b=int(input('enter the side of triangle-')) + c=int(input('enter the side of triangle-')) + print('the area of triangle is',triangle.area(a,b,c)) +elif choice==8: + a=int(input('enter the side of triangle-')) + b=int(input('enter the side of triangle-')) + c=int(input('enter the side of triangle-')) + print('the perimeter of triangle is',triangle.perimeter(a,b,c)) +elif choice==9: + print('quit') +else: + ('invalid selection') diff --git a/find total bill 1.py b/find total bill 1.py new file mode 100644 index 0000000..ffa0a00 --- /dev/null +++ b/find total bill 1.py @@ -0,0 +1,9 @@ +#aim to find the liberary charges +d=int(input("enter the days-")) +if d<=5 : + f=d*40 +elif d<=10 : + f=200+(d-5)*65 +else: + f=200+325+(d-10)*80 +print("total cost is",f)