C# Object-Oriented Programming: CSV Parsing and Inheritance

CSV Data Processing in C#

public class Program
{
    public static void Main(string[] args)
    {
        List<Employee> employees = new List<Employee>();
        string filePath = "employees.csv";

        try
        {
            using(StreamReader reader = new StreamReader(filePath))
            {
                reader.ReadLine(); // Skip header
                string line;
                while((line = reader.ReadLine()) != null)
                {
                    string[] data 
Read More

Research Methodology: Sampling, Testing, and Reporting

Part 1: Sampling Design and Sampling Procedure

In research, it is usually impossible, too expensive, or too time-consuming to collect data from every single individual in a population (referred to as a census). Instead, researchers select a smaller, representative subset of that population, known as a sample.

  • Population (N): The total collection of all elements that share a common set of characteristics (e.g., all BBA students in a university).
  • Sample (n): The actual group chosen from the population
Read More

Essential Algebra Formulas and Graphing Techniques

Algebraic Formulas and Equations

Quadratic and Polynomial Functions

  • AOS: x = -b/2a
  • Quadratic Formula: x = (-b ± √b² – 4ac) / 2a
  • Discriminant (b² – 4ac):
    • > 0: Two solutions
    • < 0: No real solutions
    • = 0: One solution
  • Completing the Square: Take 1/2 of b, square it, and add to both sides. Rewrite as (x ± 1/2b)².

Sequences and Financial Math

  • Arithmetic Sequence: aₙ = a₁ + d(n – 1)
  • Geometric Sequence: aₙ = a₁ * rⁿ⁻¹
  • Compound Interest (Annually): P(1 + r)ᵗ
  • Compound Interest (Quarterly): P(
Read More

Algorithmic Solutions: String Manipulation and Parsing

String Duplicate Removal

def removeDuplicates(self, s: str, k: int) -> str:
    stack = []
    for char in s:
        if not stack:
            stack.append((char, 1))
        else:
            last_char, last_cnt = stack[-1]
            if char != last_char:
                stack.append((char, 1))
            else:
                if last_cnt + 1 < k:
                    stack[-1] = (last_char, last_cnt + 1)
                else:
                    stack.pop()
    return ''.join(c * cnt for 
Read More

Innovation Lifecycle: Strategy, Execution, and Scaling

Innovation Strategy and Planning

Objective

Ensure the innovation strategy is fully aligned with business and sustainability goals.

Key Results (KRs)

  • KR1: Approve and publish the strategy within Q2.
  • KR2: Define at least 5 strategic innovation focus areas.

Inputs

  • Strategic goals, mission, and Corporate Social Responsibility (CSR).
  • Insights from the exploration phase (P1).
  • Stakeholder needs and expectations.
  • Internal capabilities and resources.
  • Market and technology trends.

Activities

  • Defining innovation vision
Read More

String Operations and Queue Data Structures Explained

String Storage and Memory Representation

A string is a collection of characters stored together in memory. Strings are used to store names, words, sentences, and other text data in computer systems. In programming languages like C, a string is stored as an array of characters and ends with a special null character '\0'.

Example of String: char name[] = "ROHIT";

In memory, the string is stored as:

| R | O | H | I | T | \0 |

Here, \0 represents the end of the string.

Methods of String Storage

1. Fixed Length

Read More

Computer Science Basics and Programming Fundamentals

Computer Science Basics: Programming Languages

Listening Task: Choose the correct options to make true sentences (3 Points).

  • Operate differently from one another
  • With vehicles
  • Web developer

Sentence Completion

Listen to the recording again and complete the sentences (4 Points).

  • … and directions
  • … like desktop
  • … more complex graphics
  • … a background

Cybersecurity and Network Safety

Choose the correct options from the table to complete the sentences (10 Points).

  • … unauthorized access
  • … from malware
  • ..
Read More

Foundations and History of Catholic Social Teaching

Historical Periods of the Social Doctrine

Two historical periods can be distinguished in the history of the Social Doctrine of the Church (SDC): before and after 1891.

The Period Before 1891

Before 1891, the SDC was mainly based on the Gospel and developed through the teachings of the Fathers of the Church and the Doctors of the Middle Ages. Important figures include:

  • Augustine of Hippo
  • Ambrose
  • Jerome
  • Pope Gregory the Great
  • St. Thomas Aquinas

The Church already reflected on social issues, human dignity,

Read More

One-Way ANOVA: Concepts, Assumptions, and Applications

Understanding One-Way Analysis of Variance (ANOVA)

One-Way Analysis of Variance (ANOVA) is a statistical technique used to compare the means of three or more independent groups based on a single independent variable (factor).

It is utilized to determine whether there is a significant difference between group averages. In simple terms, One-Way ANOVA helps identify whether different groups behave differently regarding a measurable outcome.

Examples of One-Way ANOVA

  • Comparing marks of students from three
Read More

Statistical Inference and Hypothesis Testing Practice

Exercise 1: Multiple Choice

1. Different Rejection Rule

  • (a) H₁: µ = 90 (< 100) → reject for small X̄ (left tail)
  • (b) H₁: µ < 100 → reject for small X̄ (left tail)
  • (c) H₁: µ = 90, H₀: µ > 90 → reject for small X̄ (left tail)

All three tests reject on the left tail. Re-examining the options: all are left-tailed. Looking again at (c): H₀: µ > 90 vs H₁: µ = 90. Here, H₁ specifies a value below H₀, so we reject for small values. They all look left-tailed, but (c)

Read More