A collection of 10 programming problems covering conditional logic, sequence processing, statistical calculations, and character/string manipulation (semester 6 of my BSMS degree, this is when i started developing my coding skils)
- Triplet Order Check
- Remainder Checker
- Three Distinct Numbers
- Moving Average Calculator
- Factorial Numbers
- Character Comparison
- Character Classification
- Extreme Characters
- Substring Search
- Statistical Measures
Input: Three numbers (x, y, z)
Output: "TRUE" if strictly increasing/decreasing, else "FALSE"
Input: Two integers M and N
Output: 0 if M divides N evenly, else 1
Input: Sorted sequence of positive numbers (ending with -1)
Output: "True" if ≥3 distinct numbers exist, else "False"
Input: Sequence of non-negative floats (ending with -1)
Output: Moving average rounded to 1 decimal place
Input: Positive integer n
Output: All factorial numbers ≤ n
Input: Characters until '0' is entered
Output: Comparison with previous character
Input: 20 characters
Output: Classification (digit/lower-case/upper-case)
Input: 25 characters
Output: Smallest and largest character
Input: String and search characters
Output: Position if found, else not found
Input: Sequence of real numbers
Output: Mean, median, variance, standard deviation