Please guyes inke answers bata do 8. WAP in python to calculate Simple Interest
9. WAP in python to calculate area & perimeter of rectangle
10. WAP in python to calculate salary of employee by adding HRA,DA,TA in basic salary
11. WAP in python to calculate average marks of five subjects of a student
12. WAP in python to calculate square of a number
Answers
8.
p = int ( input ("enter the value of principal"))
r = int ( input ("enter the value of rate"))
t = int ( input ("enter the value of time"))
c = p*r*t/100
print("simple interest is : ",c)
9.
l = int ( input (" enter length "))
b = int ( input ( " enter breadth " ))
print ( " area of rectangle ", l*b)
print ( " perimeter of rectangle ", 2*(l+b))
10. question is incomplete please provide the remaining data
11.
a = int (input (" enter the value of 1st subject "))
b = int (input (" enter the value of 2nd subject "))
c = int (input (" enter the value of 3rd subject "))
d = int (input (" enter the value of 4th subject "))
e = int (input (" enter the value of 5th subject "))
print ("average marks ", (a+b+c+d+e)/5 )
12.
a = int (input ("enter any number"))
print ("square is", a*a)
Answer:
Hey! This is in python...
Question 9 program:
l = float(input("Enter length of rectangle: "))
b = float(input("Enter breadth of rectangle: "))
print("Area of rectangle = ", l*b)
print("Perimeter of rectangle = ", 2*(l+b))
# Sorry, I didn't understand your 10th question...
Question 11 program:
sum = 0
s = int(input("How many subjects? "))
for i in range(s):
marks = float(input("Enter marks: "))
sum+=marks
print("Average of marks = ", sum/s)
Question 12 program:
num = int(input("Enter a number: "))
print("Square of", num, "=", num**2)
# HOPE THIS HELPS!!