10 Program List For Record File
10 Program List For Record File
PRACTICAL-1
Sample Output:
Sample Output:
Enter the principal:- 1200
Enter the rate of interest :- 10
Enter the time in years :- 2
Simple Interest = 240.0
PRACTICAL-3
#Aim:- A program to find out of Profit and Profit Percentage.
#Done by: Your Name
#Mentor: Dhananjay Kumar Singh
Sample Output:
Sample Output:
Enter English marks out of 100:56
Enter Hindi marks out of 100:78
Enter Maths marks out of 100:45
Enter Science marks out of 100:89
Enter Social Science marks out of 100:76
Total Marks = 344.0
Percentage Marks = 68.8
PRACTICAL-5
Sample Output:
Enter temperature in degree celsius:--98.4
Fahrenheit Temperature is 209.12
PRACTICAL-6
v = u + a* t
print(" The Final Velocity is ", v)
Sample Output:
Enter the Initial Velocity :- 45
Enter the Acceleration :- 2
Enter the Time in Sec :- 45
The Final Velocity is 135.0
PRACTICAL-7
Sample Output:
Enter the no. of sixes :- 1
Enter the no. of fours :- 2
Enter the no. of three’s :- 3
Enter the no. of two’s :- 2
Enter the no. of one’s :- 2
The total run scored by a player is 29
PRACTICAL-8
Sample Output:
Enter the height of a person in cm :- 175
The Height of a person is 1 m and in centimeter is 75 cm
PRACTICAL-9
Sample Output:
Enter the Length of a Rectangle :- 20
Enter the Breadth of a Rectangle :- 30
The Area of Rectangle is 600.0 and the Perimeter is: 100.0
PRACTICAL-10
p=float(input('Enter principle:--'))
r=float(input('Enter rate:--'))
t=float(input('Enter time:--'))
ci=(p*(1+(r/100))**t)-p
print('Compound Interest is ',ci)
Sample Output:
Enter principle:--2000
Enter rate:--10
Enter time:--3
Compound Interest is 662.0000000000009
PRACTICAL-11
#Aim:- Write a program to check whether the given number is Even or Odd.
#Done by: Your Name
#Mentor: Dhananjay Kumar Singh
Sample Output:
Enter the number: 45
45 is Odd number
PRACTICAL-12
#Aim:- Write a program to check whether the given year is leap or not.
#Done by: Your Name
#Mentor: Dhananjay Kumar Singh
PRACTICAL-14
#Aim:- Write a program to display table of a given number.
#Done by: Your Name
#Mentor: Dhananjay Kumar Singh
Sample Output:
Enter the number for table:5
5x1=5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
PRACTICAL-15
#Aim:- Write a program to check whether the given number is prime or not.
#Done by: Your Name
#Mentor: Dhananjay Kumar Singh
if num == 1:
print(num, "is not a prime number")
elif num > 1:
# check for factors
for i in range(2,num):
if (num % i) == 0:
print(num,"is not a prime number")
print(i,"times",num//i,"is",num)
break
else:
print(num,"is a prime number")
else:
print(num,"is not a prime number")
Sample Output:
Enter a number: 23
23 is a prime number
#Aim:- Write a program to accept two no’s and find the HCF & LCM
#Done by: Your Name
#Mentor: Dhananjay Kumar Singh
lcm=(n1*n2)/hcf
print("HCF is :-",hcf)
print("LCM :-",lcm)
Sample Output:
Enter first number: 20
Enter second number: 8
HCF is :- 4
LCM :- 40.0
n=int(input("Enter number:"))
temp=n
rev=0
while(n>0):
dig=n%10
rev=rev*10+dig
n=n//10
if(temp==rev):
print("The number is a palindrome!")
else:
print("The number isn't a palindrome!")
Sample Output:
Enter number: 12321
The number is a palindrome