Assignment PSAT
Assignment PSAT
Assignment 1
Submission Date: 5/12/23
1. Write the algorithm and design a flow chart to replace an element in an array with a given
value at a given position
2. Write the algorithm and design a flow chart to delete an element from any array
3. Write the algorithm and design a flow chart to check whether the entered character is
upper case of lower case.
4. Write the algorithm and design a flow chart to print each character of a string separately
using len () and char ()
5. Print “A” once in 1st line, two “A A” in second line and three “A A A” in third line get
the (n) value from the user.
6. Construct an alphabet triangle from A to Z, first line should have A, second line A B,
third line A B C and till Z this has to follow. One alphabet hast increase for each line.
7. Write the algorithm and design a flow chart find the area of a triangle.
8. Write the algorithm and design a flow chart to find the area and circumference of a circle.
9. Write the algorithm and design a flow chart to convert a given degree from Celsius to
Fahrenheit.
10. Write the algorithm and design a flow chart to search the given element in an array.
11. Write the algorithm and design a flow chart to copy elements from one array to another.
12. Write the algorithm and design a flow chart to reverse the order of elements in an array.
13. Write the algorithm and design a flow chart to check whether all the elements in the array
are equal to another array. If yes, print “arrays are equal”. If not print “not equal”
14. Write the algorithm and design a flow chart to find the smallest element in an array
15. Write the algorithm and design a flow chart to find the largest element in an array.
16. Write the algorithm and design a flow chart to find the sum of all elements in an array.
17. Write the algorithm and design a flow chart to fill an array with squared numbers.
18. Write the algorithm and design a flow chart to reverse the elements of an array using
temp variable.
19. Write the algorithm and design a flow chart to swap two numbers using a temporary
variable.
20. Write the algorithm and design a flow chart to find the first and last digits of a 4 digit
number.
21. Write the algorithm and design a flow chart to reverse a two-digit number.
22. Write the algorithm and design a flow chart to print the sum of two numbers without
using a third variable.
23. Write the algorithm and design a flow chart to generate the first n terms of the Fibonacci
sequence.
24. Write the algorithm and design a flow chart to generate prime numbers between the
ranges [1 to n].
25. Write the algorithm and design a flow chart Check whether given number is Armstrong
Number or Not.
26. Write the algorithm and design a flow chart to print the sum of even numbers till a given
input (n).
27. Write the algorithm and design a flow chart to print the sum of odd & even numbers till
the given input n.
28. Write the algorithm and design a flow chart to print the multiplication tables of a given
number.
29. Write the algorithm and design a flow chart to count the number of vowels in a given
string.
30. Write the algorithm and design a flow chart to check if a given number is a palindrome.
31. Write the algorithm and design a flow chart to calculate the average of elements in an
array.
32. Write the algorithm and design a flow chart to check if a given year is a leap year.
33. Write the algorithm and design a flow chart to convert a decimal number to binary.
34. Write the algorithm and design a flow chart to implement linear search in an array.
35. Write the algorithm and design a flow chart to count the occurrences of a specific element
in an array.
36. Write the algorithm and design a flow chart to check if a given number is an Armstrong
number.
37. Write the algorithm and design a flow chart to determine the LCM (Least Common
Multiple) of two numbers.