Thanks to visit codestin.com
Credit goes to www.scribd.com

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

Pseudocode

The document outlines a series of programming problems categorized into three sections: Sequence-Based, Decision-Based, and Iteration-Based problems. Each section contains specific tasks, such as calculating discounted prices, checking for prime numbers, and generating multiplication tables. Additionally, there are mixed concept problems that involve multiple programming concepts, such as calculating averages and simulating an ATM withdrawal system.

Uploaded by

ahsan
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)
11 views2 pages

Pseudocode

The document outlines a series of programming problems categorized into three sections: Sequence-Based, Decision-Based, and Iteration-Based problems. Each section contains specific tasks, such as calculating discounted prices, checking for prime numbers, and generating multiplication tables. Additionally, there are mixed concept problems that involve multiple programming concepts, such as calculating averages and simulating an ATM withdrawal system.

Uploaded by

ahsan
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

Sequence-Based Problems

1. Input a price and discount percentage, then calculate the discounted price.

2. Input a number and display its square and cube.

3. Convert a time in 24-hour format to 12-hour format.

4. Calculate the speed from distance and time.

5. Input marks for 3 subjects and calculate percentage and total.

🔹 Decision-Based Problems
6. Input a number and check if it is prime using a simple condition (not loop-based).

7. Input a year and check if it is a century year or not (e.g., 1900, 2000).

8. Input a temperature and determine if it’s cold, moderate, or hot.

9. Input the side lengths of a triangle and check if it is scalene, isosceles, or equilateral.

10. Check whether a character is uppercase, lowercase, or not a letter.

🔹 Iteration-Based Problems
11. Input n and calculate the sum of all odd numbers up to n.

12. Generate the multiplication tables from 1 to 10.

13. Display the reverse of a given number using a loop.

14. Input n and find the sum of digits using a loop.

15. Input a number and count how many times each digit appears.

🔹 Mixed Concept Problems


16. Input multiple exam scores and calculate the average and highest score.

17. Input a string and count the number of vowels and consonants.

18. Input a number and check if it is an automorphic number (e.g., 76² = 5776 → ends in 76).
19. Simulate a basic ATM withdrawal system (check balance, deduct amount, update balance).

20. Input a 3-digit number and check if all digits are different.
Input a price and discount percentage, then calculate the discounted price.

2. Input a number and display its square and cube.

3. Convert a time in 24-hour format to 12-hour format.

4. Calculate the speed from distance and time.

5. Input marks for 3 subjects and calculate percentage and total.

🔹 Decision-Based Problems
6. Input a number and check if it is prime using a simple condition (not loop-based).

7. Input a year and check if it is a century year or not (e.g., 1900, 2000).

8. Input a temperature and determine if it’s cold, moderate, or hot.

9. Input the side lengths of a triangle and check if it is scalene, isosceles, or equilateral.

10. Check whether a character is uppercase, lowercase, or not a letter.

🔹 Iteration-Based Problems
11. Input n and calculate the sum of all odd numbers up to n.

12. Generate the multiplication tables from 1 to 10.

13. Display the reverse of a given number using a loop.

14. Input n and find the sum of digits using a loop.

15. Input a number and count how many times each digit appears.

You might also like