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

Sort by
Subject
Level

Essential C++ Programming Examples and Code Snippets

Posted by Anonymous and classified in Computers

Written on in English with a size of 3.19 KB

Palindrome and Digit Sum Calculation

#include <iostream>
using namespace std;
int main() {
    int n, r, rev = 0, sum = 0, t;
    cin >> n; t = n;
    while (n) {
        r = n % 10;
        rev = rev * 10 + r;
        sum += r;
        n /= 10;
    }
    cout << (t == rev ? "Palindrome" : "Not");
    cout << "\nSum=" << sum;
}

Matrix Addition in C++

#include <iostream>
using namespace std;
int main() {
    int a[10][10], b[10][10], c[10][10], r, col;
    cin >> r >> col;
    for (int i = 0; i < r; i++)
        for (int j = 0; j < col; j++) cin >> a[i][j];
    for (int i = 0; i < r; i++)
        for (int j = 0; j < col; j++) cin >> b[i][j];
    for (int i = 0; i < r; i+
... Continue reading "Essential C++ Programming Examples and Code Snippets" »

European Geography: Key Facts on Nations and Economies

Posted by Anonymous and classified in Geography

Written on in English with a size of 5.04 KB

C.EU. Poland

Population: 95% Polish (homogenous), strong Roman Catholic presence.

Industry: Located in Upper Silesia (industrial heart) and Gdańsk/Gdynia (seaports).

Resources: Hard coal, copper, salt, sulfur.

Airports: Warsaw, Kraków.

Term: Conurbation (interlinked cities like Katowice).

Czechia (CZ) Regions

Regions: Bohemia, Moravia, Silesia.

Religion: Mostly Atheist.

Spas: Karlovy Vary, Mariánské Lázně, Františkovy Lázně.

Industry Highlights:

  • Auto: Škoda (Mladá Boleslav)
  • Beer: Plzeň, Budějovice
  • Glass: Jablonec

Hungary (HU)

Religion: Catholic and Calvinist.

Agriculture: Wheat, maize, sunflowers, peppers (paprika).

Wine Regions: Tokaj, Eger (Bull's Blood), Lake Balaton.

Austria (A) & Germany

Austria (A)

Resources/Industry: Alps (Tourism). Magnesite,

... Continue reading "European Geography: Key Facts on Nations and Economies" »

Calculating Net and Gross Calorific Value of Coal

Posted by Anonymous and classified in Chemistry

Written on in English with a size of 476.54 KB

Calculating Coal Calorific Value

Calculate the net and gross calorific value of a coal sample with the following composition: C = 82%, H = 8%, O = 5%, N = 1.4%, and ash = 3.5%.

Step 1: Calculate the Gross Calorific Value (GCV)

Dulong's formula is used to calculate the GCV based on the percentages of carbon (C), hydrogen (H), and oxygen (O) in the coal sample. The formula is:

Dulong's formula for GCV
GCV = 1/100 [8080C + 34500(H - O/8) + 2240S]

Assuming no sulfur (S) is present (not listed in the composition):

GCV calculation step 1
GCV = 1/100 [8080(82) + 34500(8 - 5/8)]
GCV calculation step 2
GCV = 1/100 [662560 + 34500(7.375)]
GCV calculation step 3
GCV = 1/100 [662560 + 254437.5]
GCV calculation step 4
GCV = 916997.5 / 100
Final GCV result
GCV = 9169.975 kcal/kg

Step 2: Calculate the Net Calorific Value (NCV)

The NCV is calculated from the GCV by subtracting the latent heat of condensation... Continue reading "Calculating Net and Gross Calorific Value of Coal" »

Pathophysiology Essentials: Inflammation, Endocrine, and GI Disorders

Posted by Anonymous and classified in Biology

Written on in English with a size of 3.78 KB

Inflammatory vs. Non-Inflammatory Conditions

  • Inflammatory: Immune involvement, increased CRP/ESR, pain, redness, and swelling (e.g., RA).
  • Non-Inflammatory: Mechanical or degenerative, minimal lab changes (e.g., OA).

Structural Damage and Functional Loss

Tissue damage leads to impaired function (e.g., cirrhosis, fibrosis, portal hypertension).

Hormone Excess vs. Deficiency

  • Excess: Overstimulation (e.g., weight loss, tachycardia).
  • Deficiency: Slowed systems (e.g., fatigue, weight gain).

Chronic Disease and Multisystem Effects

Long-term inflammation and hormone imbalances affect cardiovascular, renal, neurological, and immune systems.

Autoimmune Targeting

  • Thyroid: Metabolic changes.
  • Joints: Deformity.
  • CNS: Neurological system impairment.

Compensation Mechanisms

Initially... Continue reading "Pathophysiology Essentials: Inflammation, Endocrine, and GI Disorders" »

Essential C Programming Examples and Algorithms

Posted by Anonymous and classified in Computers

Written on in English with a size of 72.94 KB

wfSCE5je3rPDgAAAABJRU5ErkJggg==

Leap Year

#include <stdio.h>
int main() {
    int y;
    scanf("%d", &y);
    if ((y % 4 == 0 && y % 100 != 0) || y % 400 == 0)
        printf("Leap Year");
    else
        printf("Not Leap Year");
    return 0;
}

Simple Calculator Using Switch

#include <stdio.h>
int main() {
    char op;
    float a, b;
    scanf(" %c %f %f", &op, &a, &b);
    switch (op) {
        case '+': printf("%.2f", a + b); break;
        case '-': printf("%.2f", a - b); break;
        case '*': printf("%.2f", a * b); break;
        case '/':
            if (b != 0)
                printf("%.2f", a / b);
            else
                printf("Error");
            break;
        default: printf("Invalid Operator");
    }
    return
... Continue reading "Essential C Programming Examples and Algorithms" »

Essential Pharmacology: Drug Classes, Mechanisms, and SAR

Posted by Anonymous and classified in Medicine & Health

Written on in English with a size of 14.24 KB

Diuretics (Water Pills)

Diuretics, also known as water pills, are medications that help your body get rid of excess fluid by increasing urine production. They are commonly used to treat conditions like high blood pressure, heart failure, and edema (swelling caused by fluid retention).

Types of Diuretics

  1. Thiazide Diuretics: These are often used to treat high blood pressure. Examples include hydrochlorothiazide and chlorthalidone.
  2. Loop Diuretics: These are used to treat edema and heart failure. Examples include furosemide (Lasix) and bumetanide.
  3. Potassium-Sparing Diuretics: These help the body get rid of water without losing potassium. Examples include spironolactone and amiloride.

How Diuretics Work

Diuretics work on different parts of the kidneys... Continue reading "Essential Pharmacology: Drug Classes, Mechanisms, and SAR" »

Denture Complications: Flabby and Flat Ridge Management

Posted by Anonymous and classified in Medicine & Health

Written on in English with a size of 5.07 KB

Flabby Etiology and Treatment

Etiology of Flabby Tissue:

  1. Old, loose dentures.
  2. Anterior interference determining Vertical Dimension of Occlusion (VDO).
  3. Rapid ridge resorption leading to a knife-edge ridge.
  4. Complete maxillary denture opposing natural mandibular teeth.
  5. Loose, ill-fitting dentures.
  6. Dentures with anterior porcelain teeth and posterior resin teeth.
  7. Over-eruption of opposing natural teeth.
  8. Failure to remove dentures at night.
  9. Overextended denture border causing epulis fissuratum.

Treatment for Flabby Tissue:

A) Removal of Cause:

  • Remove pressure areas.
  • Relining old dentures with soft tissue conditioning.
  • Correction of occlusal disharmonies.
  • Restoration of lost VDO.

B) Remove Denture: (For acute inflammation).

C) Recovery Program:

  1. Massage soft tissues.
... Continue reading "Denture Complications: Flabby and Flat Ridge Management" »

Gingival Fibers and Periodontal Bacterial Virulence Factors

Posted by Anonymous and classified in Biology

Written on in English with a size of 4.65 KB

Gingival Fibers and Connective Tissue Components

1. Collagen Fibers

Collagen fibers are the most essential components of the gingival connective tissue. They include:

  • A. Circular fibers: Located in the free gingiva, these encircle the tooth.
  • B. Dentogingival fibers: These project from the cementum in a fan-like manner into the free gingiva.
  • C. Dentoperiosteal fibers: These extend from the cementum to the periosteum.
  • D. Alveologingival fibers: These run from the alveolar crest to the free gingiva.

2. Other Fiber Types

  • Reticulin fibers: Associated with the basement membrane (BM) and blood vessels.
  • Oxytalin fibers: Provide vascular support.
  • Elastic fibers: Found within blood vessels.

Gingival Blood Supply and Defense Mechanisms

Sources of Blood Supply to

... Continue reading "Gingival Fibers and Periodontal Bacterial Virulence Factors" »

Android Development Concepts: UI Components and Architecture

Posted by Anonymous and classified in Computers

Written on in English with a size of 11.09 KB

1. ListView vs RecyclerView Comparison

ListView

ListView is an older Android UI component used to display a scrollable list of items vertically. Each item is displayed one below another.

  • Uses Adapter to bind data.
  • Uses convertView for view reuse.
  • Only supports vertical scrolling.
  • Less efficient for large datasets.
  • No built-in animations.
  • ViewHolder pattern is optional.
  • Simple to use.
  • Suitable for small lists.

Example:

ListView listView = findViewById(R.id.listview); 
// ArrayAdapter<String> adapter = 
// new ArrayAdapter<>(this, 
// android.R.layout.simple_list_item_1, data); 
///listView.setAdapter(adapter);

RecyclerView

RecyclerView is an advanced and flexible version of ListView, introduced in Android.

  • Uses ViewHolder pattern by default.
  • Highly
... Continue reading "Android Development Concepts: UI Components and Architecture" »

WTO and IMF: Foundations of Global Economic Governance

Classified in Law & Jurisprudence

Written on in English with a size of 3.62 KB

The Marrakesh Agreement (1994)

The Marrakesh Agreement (1994) is the constitution that defines the WTO’s objectives, functions, institutional structure, and decision-making procedures. Its annexes form a comprehensive system of binding rules, including:

  • Trade in goods (GATT 1994)
  • Trade in services (GATS)
  • Intellectual property (TRIPS)
  • Dispute settlement (DSU)
  • Plurilateral agreements

WTO Functions

The WTO administers and implements trade agreements, provides a forum for multilateral negotiations, resolves disputes through a legally binding system, reviews national trade policies, and offers technical assistance to developing and least-developed countries.

Core Principles

The organization operates on principles of non-discrimination (MFN and NT), reciprocity,... Continue reading "WTO and IMF: Foundations of Global Economic Governance" »