Assignment1 1 (Introduction)
Assignment1 1 (Introduction)
Q15. Write a program to calculate the area of right angled triangle ( Area = ½* B* h)
Q16. Write a program to calculate the area and perimeter of circle (Area= 3.14 V r*r) (Perimeter = 2*3.14*r)
Q17. Write a program to calculate volume of cone (volume of cone= 0.33 x 3.14 *r*r*h)
Q21. Write a program bitwise AND, OR, XOR, left shift and Right shift.
Q22. Write a program to input and print the name, age of student ( using strings )
Q23. Write a program to input the name,marks in three subjects and calculate total marks, percentage and
display.
Q24. Write a program to input the name,basic salary and calculate DA,HRA,IT, and PF
DA=25% OF BS , HRA= 10% OF BS, PF=5% OF BS AND IT =10% OF BS.
Calculate the Net Salary = ( BS+DA+HRA)-(IT+PF)