BCA IV Semester
Assignment-1
(Problem Solving and Python Programming)
[Link]. Date Program Remark
1. Write a program that asks the user for his name and
then greet him using “Hello!!!”.
2. Write a program that prompts the user to enter two
integers and display the total on the screen.
3. Write a program which accept principle, rate and time
from user and print the simple interest.
4. Write a program that prompts the user to enter number
in two variables and swap the contents of the variables
using third variable.
5. Write a program that prompts the user to enter number
in two variables and swap the contents of the variables
without using third variable.
6. Write a program that prompts the user to input values
and calculate the area of circle and rectangle. .
7. Write a program that prompts the user to input a
number and display if the number is even or odd.
8. Write a program that prompts the user to input three
integers and outputs the largest.
9. Write a program that prompts the user to input a year
and determine whether the year is a leap year or not.
10. The marks obtained by a student in 3 different subjects
are input by the user. Your program should calculate
the average of subjects and display the grade. The
student gets a grade as per the following rules:
Average Grade
90-100 A
80-89 B
70-79 C
60-69 D
0-59 F
11. Write a program that prompts the user to input a
character and determine the character is vowel or
consonant (using logical operator).
12. Write a program to print numbers from 1 to 10 except
5.
13. Write a program to sum of N positive even numbers
from 2 to 20 using while loop.
14. Write a program that prompts the user to input a
number and prints its multiplication table using for
loop.
15. Write a program to demonstrate exponential operator.
16. Write a program that prompts the user to input a
number and reverse its digits using while loop.
17. Write a program that prompts the user to input a
decimal integer and display its binary equivalent.
18. Write a program to find all Armstrong number in the
range of 0 and 99
19. Write programs to print following patterns :
*
**
***
****
*****
2.
1
222
33333
4444444
555555555
20. Write a program to print square root of a given number
using Lamda function.
Last date of submission:-Second week of March 2026