Please help im having a lot of trouble and need it at the earliest!! ;D
Answers
Answer:
20)#program to assign the grades
theory=int(input("enter the theory marks out of 70"))
practical=int(input("enter the practical marks out of 30"))
total=theory+practical
if total>=95:
print("A+")
elif total<95 and total>=90:
print("A")
elif total<90 and total >=80 :
print("B+")
elif total<80 and total>=70:
print("B")
elif total<70 and total>=60:
print("C")
elif total<60 and total>=50:
print("D")
elif total<50 and total>=40:
print("E")
else:
print("F")
21)#program to input name,telephone number,telephone bill
name=str(input("enter the name"))
telephone_number=int(input("enter the telephone number"))
total_calls=int(input("enter the total number of calls "))
telephone_rent=200
if total_calls<=100:
print("your telephone bill is",telephone_rent)
elif total_calls>100 and total_calls<=300:
print("your telephone bill is",telephone_rent+(1.5*(total_calls-100)))
elif total_calls>300:
print("your telephone bill is",telephone_rent+300+(2*(total_calls-300)))
22)#program to calculate the income tax
employee_code=int(input("enter the employee code"))
employee_name=str(input("enter the employee name"))
gross_salary=float(input("enter the salary of the employee"))
if gross_salary<=300000:
print("income tax deduction is '0'")
elif gross_salary>300000 and gross_salary<=500000:
print("income tax deduction is",(5/100)*(gross_salary-300000))
elif gross_salary>500000 and gross_salary<=1000000:
print("income tax deduction is",10000+(8/100)*(gross_salary-500000))
elif gross_salary>1000000:
print("income tax deduction is",500000+(15/100)*(gross_salary-1000000))
23)#program to calculate the net amount
name=str(input("enter the name"))
bill_number=int(input("enter the bill number"))
date=str(input("enter the date as dd/mm/yyyy"))
item_price1=float(input("enter the item price"))
item_details=str(input("enter the item details"))
item_price2=float(input("enter the item price"))
item_details=str(input("enter the item details"))
item_price3=float(input("enter the item price"))
item_details=str(input("enter the item details"))
total=item_price1+item_price2+item_price3
print(total,"is the price of three items")
if total<=2000:
print("you got '0%' discount")
print("your net amount is",total)
elif total>2000 and total<=5000:
print("you got '5% discount")
print("your net amount is",(5/100)*total)
elif total>5000 and total<=10000:
print("you got '10%' discount")
print("your net amount is ",(10/100)*total)
elif total>10000:
print("you got '20%' discount")
print("you net amount is",(20/100)*total)
#hope it helps you!!!
please mark brainliest