Python
Python
Assignment 1
1. Write a program to calculate the percentage of student based on marks of any 5 subjects.
per=(s/500)*100
print(per)
print("Quotient:", quotient)
print("Remainder:", remainder)
# Simple Interest
principal = float(input("Enter the principal amount: "))
time = float(input("Enter the time: "))
rate = float(input("Enter the rate of interest: "))
# Compund Interest
P = float(input("principal amount : "))
R = float(input(" annual interest : "))
T = float(input("Enter the time period in years (T): "))
A = P * (1 + R) ** T
CI = A - P
6. Write a Program to input two angles from user and find third angle of the triangle.
first angle: 45
second angle: 45
The third angle of the triangle is 90.0
d = b**2 - 4*a*c
number of days: 34
Years: 0 Weeks: 4 Days: 6
9. Write a program to enter base and height of a triangle and find its area.
radius: 34
Volume: 164552.74666666667