Exercise

Create Flowcharts and Psuedocode for the following problems:

NOTE:

  • For terms and topics you do not understand: Google to understand what they are.
  • Most of the terms are important computing terms/problems
  • You need to practise Googling

Level 1

  1. Calculate the area of a rectangle given its length and width.
  2. Determine if a number is even or odd.
  3. Find the largest of three given numbers.
  4. Convert temperature from Celsius to Fahrenheit.
  5. Calculate the sum of all numbers from 1 to n.
  6. Check if a given year is a leap year.
  7. Generate the first n terms of the Fibonacci sequence.
  8. Calculate the factorial of a given number.
  9. Determine if a given string is a palindrome.
  10. Find the average of n numbers.
  11. Convert a decimal number to binary.
  12. Check if a number is prime.
  13. Reverse a given string.
  14. Calculate the compound interest for a given principal, rate, and time.
  15. Find the GCD (Greatest Common Divisor) of two numbers.
  16. Convert a given number of days to years, weeks, and days.
  17. Generate a multiplication table for a given number.
  18. Calculate the power of a number (x^n).
  19. Find the smallest element in an array.
  20. Determine if a triangle is equilateral, isosceles, or scalene given its sides.
  21. Calculate the roots of a quadratic equation.
  22. Convert a given number of seconds to hours, minutes, and seconds.
  23. Find the number of vowels in a given string.
  24. Calculate the perimeter of a circle given its radius.
  25. Determine if a number is a perfect square.
  26. Generate all prime numbers up to n.
  27. Calculate the sum of digits of a given number.
  28. Find the LCM (Least Common Multiple) of two numbers.
  29. Check if a given number is a Armstrong number.
  30. Calculate the simple interest for a given principal, rate, and time.

Level 2

  1. Find the sum of all even numbers between 1 and n.
  2. Calculate the area of a triangle given its base and height.
  3. Determine if a number is positive, negative, or zero.
  4. Convert a binary number to decimal.
  5. Find the factors of a given number.
  6. Calculate the volume of a cube given its side length.
  7. Generate a sequence of n random numbers between 1 and 100.
  8. Find the maximum and minimum values in an array.
  9. Calculate the sum of squares of numbers from 1 to n.
  10. Determine if a given character is a vowel or consonant.
  11. Calculate the perimeter of a rectangle given its length and width.
  12. Find the number of occurrences of a specific digit in a given number.
  13. Generate a pattern of asterisks in the shape of a right-angled triangle.
  14. Calculate the average of numbers in an array, excluding the largest and smallest values.
  15. Determine if a given year is a century year.
  16. Find the sum of all odd numbers between two given numbers.
  17. Calculate the distance traveled given initial velocity, acceleration, and time.
  18. Generate the first n terms of an arithmetic sequence given the first term and common difference.
  19. Find the absolute difference between two numbers.
  20. Calculate the area of a circle given its diameter.

Level 3

  1. Implement a basic calculator that can handle multiple operations in one expression. (BEDMAS)
  2. Find the second largest and second smallest elements in an array.
  3. Check if a given password is strong based on criteria: length, inclusion of numbers, special characters.
  4. Calculate the Body Mass Index (BMI) and categorize it (underweight, normal, overweight, obese).
  5. Implement a basic Caesar cipher for encrypting and decrypting messages.
  6. Find the most frequent element in an array.
  7. Calculate the nth term of a geometric sequence.
  8. Implement a simple game of rock-paper-scissors against the computer.
  9. Convert a decimal number to its Roman numeral representation (up to 3999).
  10. Calculate the area of a regular polygon given the number of sides and side length.