Notes, summaries, assignments, exams, and problems for Other courses

Sort by
Subject
Level

Object-Oriented Programming Examples: Delphi and C++

Posted by Anonymous and classified in Computers

Written on in English with a size of 9.22 KB

Introduction to OOP Concepts

This document presents practical code examples demonstrating fundamental Object-Oriented Programming (OOP) concepts in both Delphi (Pascal) and C++. It covers class definitions, object instantiation, properties, events, static members, inheritance, polymorphism, memory management, and exception handling.

Delphi Object-Oriented Programming

The following Delphi code illustrates the creation of classes, properties, events, and static members, along with their usage in a console application.


program Cheat;
{$APPTYPE CONSOLE}

uses
  SysUtils, Classes;

type
  TNotify = procedure(Sender: TObject) of object;

  TEngine = class
    procedure Start;
    begin
      Writeln('Engine Started');
    end;
  end;

  TCar = class
... Continue reading "Object-Oriented Programming Examples: Delphi and C++" »

Mastering Passive Voice and Reporting Verbs in English Grammar

Classified in Greek

Written on in English with a size of 3.39 KB

Understanding Passive Voice and Reporting Verbs

1. Passive Voice with Modal Verbs

  • Passive with Modal Verbs (Present):

    Subject + modal + be + past participle

    Example: This jacket should be worn in cold weather.

  • Passive with Modal Verbs (Past):

    Subject + modal + have + been + past participle

    Example: My phone must have been stolen. (used to express a past situation)

2. Passive Voice with Infinitive or Verb + -ing

  • Passive Infinitive:

    Subject + verb + to be + past participle

    Example: She hopes to be chosen for the school concert.

  • Passive Verb + -ing (Gerund):

    Subject + verb + being + past participle

    Example: I hate being told what to eat.

3. Passive Voice with Reporting Verbs (General Beliefs)

  • Passive with Reporting Verbs (to talk about general beliefs):

    Example:

... Continue reading "Mastering Passive Voice and Reporting Verbs in English Grammar" »

Essential Calculus and Probability Formulas

Classified in Other languages

Written on in English with a size of 7.39 KB

Probability Concepts

  • Union of Events: P(A∪B) = P(A) + P(B) - P(A∩B)
  • Complement of an Event: P(Ac) = 1 - P(A)
  • Intersection of B and Complement of A: P(B∩Ac) = P(B) - P(A∩B)
  • Conditional Probability: P(B|A) = P(A∩B) / P(A)
  • Intersection of Complements: P(Ac∩Bc) = 1 - P(A∪B)
  • Mutually Exclusive Events: P(A∩B) = 0
  • Independent Events: P(A∩B) = P(A)·P(B)

Binomial Distribution Parameters

  • Mean (μ): μ = n·p
  • Standard Deviation (σ): σ = √(n·p·q)

Binomial Distribution

Notation: B(n, p)

Probability Mass Function: P(X=a) = (na) pa qn-a

Where:

  • n = number of trials
  • p = probability of success
  • q = complement of p (q = 1-p)

Normal Distribution

Notation: X ∼ N(μ, σ)

Important Probabilities:

  • P(Z < a) or P(Z > a) can be found using a standard normal
... Continue reading "Essential Calculus and Probability Formulas" »

Core Concepts in Compiler Design and Language Runtime

Classified in Computers

Written on in English with a size of 10.45 KB

Core Concepts in Compiler Design

Compiler

Compiler: Translates entire source code to target code before execution. It requires a full parse and upfront error checking, then executes the generated target code.

Interpreter

Interpreter: Executes source code incrementally (line-by-line or statement-by-statement). It translates and executes on the fly, and may partially execute ill-formed programs until an error is encountered.

LVar vs. x86 Architecture

LVar: Features nested expressions, implicit control flow (represented by an Abstract Syntax Tree - AST), and an unlimited number of logical variables.

x86: Characterized by flat instructions, atomic operands (registers/memory), explicit control flow (jumps), and a limited set of registers. Compilation passes... Continue reading "Core Concepts in Compiler Design and Language Runtime" »

Essential Concepts in Nanotechnology, AI, and Smart Systems

Classified in Technology

Written on in English with a size of 3.64 KB

Advanced Technology Concepts: Nanotubes and Robotics

Carbon Nanotubes: Properties and Benefits

What are Nanotubes?

Nanotubes are cylindrical molecules made of carbon atoms, possessing extraordinary strength and electrical properties.

Advantages over Traditional Materials:

  • High strength
  • Lightweight structure
  • Excellent conductivity (electrical and thermal)
  • Superior chemical stability

Androids Versus Automata

What is the difference between androids and automata?

Androids
Robots designed to resemble humans, often incorporating advanced Artificial Intelligence (AI).
Automata
Mechanical devices that perform predefined actions, typically lacking human-like design or advanced AI.

Wireless Communication and Smart Systems

Key Wireless Systems

Name two common types of... Continue reading "Essential Concepts in Nanotechnology, AI, and Smart Systems" »

Orthodontic Malocclusion Types and Craniofacial Syndromes

Classified in Biology

Written on in English with a size of 4.83 KB

Orthodontic Classifications

Angle Class II Malocclusion

  • Class II, Division 1: Characterized by proclined upper incisors, lingual inclination of lower incisors, and a deep overbite. It often features a V-shaped palate, mandibular deficiency, abnormal muscle pressure, and mouth breathing.
  • Class II, Division 2: Characterized by upper central incisors with lingual overlap by the lateral incisors and a deep overbite. It features a square upper arch, normal muscle pressure, and no mouth breathing.

Dewey’s Modification of Malocclusion

Class I Modifications

  • Type 1: Crowded maxillary anterior teeth.
  • Type 2: Maxillary incisors in labioversion (protruded).
  • Type 3: Maxillary incisors in lingoversion (retruded).
  • Type 4: Molars and premolars in buccal or lingual
... Continue reading "Orthodontic Malocclusion Types and Craniofacial Syndromes" »

Craniofacial Development and Malocclusion Etiology

Classified in Biology

Written on in English with a size of 4.17 KB

Cranial Synchondroses and Closure Times

Synchondroses are temporary cartilaginous joints crucial for craniofacial growth:

  1. Spheno-occipital: Located between the occipital and sphenoidal base. Closes at 18–20 years old.
  2. Inter-sphenoidal: Located between the anterior and posterior sphenoid. Closes before birth (prenatally).
  3. Spheno-ethmoidal: Located between the sphenoidal and ethmoidal bones. Closes at 5–7 years old.
  4. Intra-occipital: Located inside the occipital bone. Closes at 3–5 years old.

Etiology of Local Malocclusion

Local factors contributing to malocclusion are categorized as Hereditary, Acquired, or Other:

  • Hereditary Manifestations:
    • Skeletal manifestation
    • Soft tissue manifestation
    • Dental manifestations
  • Acquired Factors:
    • Trauma (Macro trauma,
... Continue reading "Craniofacial Development and Malocclusion Etiology" »

BPSK and QPSK Modulation Techniques with Python

Classified in Computers

Written on in English with a size of 4.97 KB

BPSK Signal Generation

This section demonstrates the generation of a Binary Phase Shift Keying (BPSK) signal using Python.

import numpy as np
import matplotlib.pyplot as plt

def bpsk_detect(modulated_signal, carrier):
    return np.sign(modulated_signal * carrier)

message_frequency = 10
carrier_frequency = 20
sampling_frequency = 30 * carrier_frequency
t = np.arange(0, 4/carrier_frequency, 1/sampling_frequency)
message = np.sign(np.cos(2 * np.pi * message_frequency * t) + np.random.normal(scale = 0.01, size = len(t)))
carrier = np.cos(2 * np.pi * sampling_frequency/carrier_frequency * t)
modulated_signal = carrier * message
detected_message = bpsk_detect(modulated_signal, carrier)

plt.figure(figsize=(12, 8))
plt.subplot(4, 1, 1)
plt.plot(t,
... Continue reading "BPSK and QPSK Modulation Techniques with Python" »

Common Benign Oral Pathologies and Their Features

Classified in Biology

Written on in English with a size of 9.96 KB

Common Oral Benign Lesions and Tumors

6. Peripheral Giant Cell Granuloma (PGCG)

Reactive lesion.

Key Features:

  • Prevalence: More common in females and older individuals.
  • Site: Exclusively on the gingiva or alveolar mucosa.
  • Etiology: Local irritation or trauma.

Clinical Characteristics:

  • Color: Dark red.
  • Surface: Often hemorrhagic and may be ulcerated.
  • Appearance: Sessile or pedunculated mass.

Radiographic Features (X-ray):

  • May show superficial bone resorption, sometimes described as "saucerization" or a "cupping effect".
  • Can appear as an ill-defined radiolucent (RL) area if bone is involved.

Histopathology:

Characterized by three zones:

  1. Zone of Hyperplastic Stratified Squamous Epithelium: Often shows acanthosis and hyperkeratosis.
  2. Giant Cell-Free Zone: A band
... Continue reading "Common Benign Oral Pathologies and Their Features" »

Clinical Pathology of Nevi and Facial Malformations

Classified in Biology

Written on in English with a size of 4.57 KB

Classification and Features of Nevi

Nevi are categorized into several types based on their clinical and histological characteristics:

  • 1) Keratotic Nevi: Also known as white spongy nevus.
  • 2) Vascular Nevi: Includes Hemangioma and Lymphangioma.
  • 3) Pigmented Nevi: These are further subdivided into:

Pigmented Nevi Varieties

  • A) Intradermal Nevus: Located in the connective tissue (CT). It presents as a papillomatous shape, often containing hair, and is less pigmented. Histopathology: Benign, non-encapsulated proliferation of nevus cells; lacks dendritic processes, has less cytoplasm, and contains less melanin.
  • B) Junctional Nevus: Located at the dermal-epidermal junction. It is flat and black in color. Histopathology: Benign, non-encapsulated proliferation
... Continue reading "Clinical Pathology of Nevi and Facial Malformations" »