0% found this document useful (0 votes)
21 views2 pages

Assignment1 1 (Introduction)

The document lists 24 programming questions/assignments involving a variety of tasks like printing text, performing mathematical calculations, data type conversions, evaluating expressions, bitwise operations, and calculating values based on input data. The questions cover basic concepts like input/output, arithmetic, conditional statements, loops and functions, and involve calculating areas, volumes, salaries, and other values from given formulas.

Uploaded by

tyler8durden90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Assignment1 1 (Introduction)

The document lists 24 programming questions/assignments involving a variety of tasks like printing text, performing mathematical calculations, data type conversions, evaluating expressions, bitwise operations, and calculating values based on input data. The questions cover basic concepts like input/output, arithmetic, conditional statements, loops and functions, and involve calculating areas, volumes, salaries, and other values from given formulas.

Uploaded by

tyler8durden90
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

LIST OF PROGRAMS- ASSIGNMENT 1

Q1. Write a program to print “Hello “on the screen.

Q2. Write a program to accept three numbers multiply all three


Numbers and print the result.
Q3. Write a program to read two numbers and display the sum.
Q4.Write a program enter a number and display its cube.
Q5. Write a program to enter student’s rolls number, 3 subject paper
Marks. Calculate the total marks and average.
Q6. Write a program to calculate the simple interest
(Formula SI = (P*R*T)/100 ;
(Assume P,R,T as float /integer accordingly)
Q7. Write a program to swap two numbers using third variable.
Q8. Write a program to swap two numbers without using third variable.
Q9. Write a program to input an integer and display its first 3 multiples.
Q10 Write a program to convert seconds into hours, min and seconds.
Q11. Write a program to convert Celsius temperature to Fahrenheit
Temperature ( F = 1.8*C+32 )
Q12. Write a program to convert Fahrenheit temperature to Celsius
temperature (C= (F- 32) * 5/9 )
Q13. Write a program to convert litre into gallon
(Given 1 galon= 3.471 litre)

Q14. Write a program to convert inches into foot (1foot =12inches)

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)

Q18. Write a program to find the sum of five digit number.

Q19. Write a program to reverse a five digit number.

Q20 . Write a program to evaluate the expression

6*2/ (2+1 *2/3+6) + 8* (8/4)

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)

You might also like