Skip to content

sayeraselvan/Semester_assignments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Assignments

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)


Table of Contents

  1. Triplet Order Check
  2. Remainder Checker
  3. Three Distinct Numbers
  4. Moving Average Calculator
  5. Factorial Numbers
  6. Character Comparison
  7. Character Classification
  8. Extreme Characters
  9. Substring Search
  10. Statistical Measures

1. Triplet Order Check

Input: Three numbers (x, y, z)
Output: "TRUE" if strictly increasing/decreasing, else "FALSE"


2. Remainder Checker

Input: Two integers M and N
Output: 0 if M divides N evenly, else 1


3. Three Distinct Numbers

Input: Sorted sequence of positive numbers (ending with -1)
Output: "True" if ≥3 distinct numbers exist, else "False"


4. Moving Average Calculator

Input: Sequence of non-negative floats (ending with -1)
Output: Moving average rounded to 1 decimal place


5. Factorial Numbers

Input: Positive integer n
Output: All factorial numbers ≤ n


6. Character Comparison

Input: Characters until '0' is entered
Output: Comparison with previous character


7. Character Classification

Input: 20 characters
Output: Classification (digit/lower-case/upper-case)


8. Extreme Characters

Input: 25 characters
Output: Smallest and largest character


9. Substring Search

Input: String and search characters
Output: Position if found, else not found


10. Statistical Measures

Input: Sequence of real numbers
Output: Mean, median, variance, standard deviation

About

Assignments - Semester (C programming)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages