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

Sort by
Subject
Level

C++ Code Examples: Arithmetic Mean, Sum, Product, Square

Classified in Computers

Written on in English with a size of 1.55 KB

Arithmetic Mean

The following C++ code calculates the arithmetic mean of numbers from 1 to n:

int main() {
    int n;
    double suma = 0;
    cout << "Vnesi broj: ";
    cin >> n;
    if (n <= 0) {
        cout << "Brojot na elementi mora da bide pogolem od 0!" << endl;
        return 1;  
    }
    for (int i = 1; i <= n; i++) {
        suma += i;  
    }
    double sredina = suma / n;
    cout << "Aritmetichkata sredina na broevite od 1 do " << n << " e: " << sredina << endl;
    return 0;
}

Sum

The following C++ code calculates the sum of numbers from 1 to n:

int main() {
    int n, sum = 0;
    cout << "Vnesi broj n: ";
    cin >> n;
    for (int i = 1; i <= n; i++)
... Continue reading "C++ Code Examples: Arithmetic Mean, Sum, Product, Square" »

CSS Styling Techniques and Responsive Design

Classified in Visual arts

Written on in English with a size of 9.39 KB

Table Styles

/* 1. Agregar borde a todas las celdas */
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 10px;
    text-align: left;
}

/* 2. Alternar colores de fondo en las filas */
tr:nth-child(odd) {
    background-color: white;
}

tr:nth-child(even) {
    background-color: lightgray;
}

/* 3. Aplicar fondo amarillo a la primera fila */
tr:first-child {
    background-color: yellow;
}

/* 4. Cambiar color de fondo al pasar el mouse */
tr:hover {
    background-color: lightblue;
}

Card Styles

/* 1. Estilos generales para las tarjetas */
.tarjeta {
    background-color: #f5f5f5;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, background-color... Continue reading "CSS Styling Techniques and Responsive Design" »

Consider the following bond issues: Bond A: 5% 15-year bond Bond B: 5% 30-year bond Neither bond has an embedded option. Both bonds are trading in the market at the same yield. Which bond will fluctuate more in price when interest rates change? Why

Classified in Mathematics

Written on in English with a size of 597.67 KB

Residual claim: shareholders get only what is left-over after everyone has been paid. Discount rate: the rate at which present and future values are traded off. Future value of cash flow: C x (1+ r)^n. R= (FV/PV)^1/n - 1. Present value= C/(1+ r)^n. Compound interest: exponential growth in wealth, initial amount of money + the interest that has been added the previous years. Perpetuity, Growing Perpetuity, Annuity: multiple payments overtime, same amount, regular interest. NsiVhHlHiJkAAAAASUVORK5CYII=ARZztg+LFFEoAAAAAElFTkSuQmCCNPV: the difference between and investment's value and its cost. Positive NPV=investment yes; NPV=0 project earns the required rate. HHnusUVC0Zbt27arOPfdcsxDbvFpd77rrLkVciKQEM4O76CypfHESHecs0Y1vC8VRpAcQRwowalyFBIE8EBAGIQ9Upc12hQDupDHnxGcCDEItpQZFBRJGgYVJFqfazpBlDuhVsK8t9s3YmzAIzTjr8s6CgCAgCAgCgkAMAqKkGAOQPBYEBAFBQBAQBJoRAWEQmnHW5Z0FAUFAEBAEBIEYBIRBiAFIHgsCgoAgIAgIAs2IgDAIzTjr8s6CgCAgCAgCgkAMAsIgxAAkjwUBQUAQEAQEgWZEQBiEZpx1eWdBQBAQBAQBQSAGAWEQYgCSx4KAICAICAKCQDMiIAxCM866vLMgIAgIAoKAIBCDgDAIMQDJY0FAEBAEBAFBoBkREAahGWdd3lkQEAQEAUFAEIhBQBiEGIDksSAgCAgCgoAg0IwICIPQjLMu7ywICAKCgCAgCMQgIAxCDEDyWBAQBAQBQUAQaEYEhEFoxlmXdxYEBAFBQBAQBGIQ+D9dawnmr27i1AAAAABJRU5ErkJggg== . IRR measures the average return on the investment: accept project if IRR is greater than the discount rate(minimum return you want). LJpYK4NR1Bwor62WY+31yZkAl6ZXI7ayvjwDbiQCbo24jxWbMZByqTA5mgVya3s7YyDmwjDvwLNZ4w3mHp5DcAAAAASUVORK5CYII=Payback

... Continue reading "Consider the following bond issues: Bond A: 5% 15-year bond Bond B: 5% 30-year bond Neither bond has an embedded option. Both bonds are trading in the market at the same yield. Which bond will fluctuate more in price when interest rates change? Why" »

Vocabulary and Sentence Structure Review

Classified in English

Written on in English with a size of 4.63 KB

Vocabulary Definitions and Terms

Here is a list of English words with their Spanish translations and related terms:

  • ATTEND: asistir
  • ACHIEVE: lograr, conseguir
  • PAY ATTENTION: prestar atención
  • ENCOURAGE: animar
  • DISRUPT: interrumpir
  • REVISE: repasar
  • ACCEPT: aceptar
  • ALLOW: permitir
  • APPEAR: aparecer
  • BEG: rogar, pedir
  • MISS: echar de menos, perder algo
  • CURRICULUM: currículo, plan de estudios
  • SUBJECT: asignatura
  • DISCIPLINE: disciplina
  • ASSIGNMENT: trabajo, tarea
  • COMPULSORY: obligatorio
  • STRESSED: estresado
  • STRICT: estricto
  • SECURE: seguro, confiado
  • SUPPORT: apoyo
  • SENSE OF BELONGING: sensación, sentimiento de pertenencia
  • DEGREE: título universitario
  • INCOME: salario, sueldo
  • STEP: paso
  • STRUGGLE: esfuerzo
  • ACCOMPLISHMENT: logro, éxito
  • AID: ayuda
  • DELIGHTED: contento, encantado
  • REMARKABLE:
... Continue reading "Vocabulary and Sentence Structure Review" »

Rajput Dynasty: Origins, Governance, and Kingdoms

Classified in Social sciences

Written on in English with a size of 2.46 KB

Rajputs: Origins, Governance, and Legacy

Theories of Rajput Origin

  1. Foreign Origin Theory: This theory suggests that the Rajputs were of foreign origin, specifically from Central Asia or Scythia.
  2. Indigenous Origin Theory: This theory proposes that the Rajputs were of indigenous origin, emerging from the local population of India.
  3. Mixed Origin Theory: This theory suggests that the Rajputs were of mixed origin, with both foreign and indigenous elements.

Rajput Administration System

  1. Monarchical System: The Rajputs followed a monarchical system, with the king holding supreme power.
  2. Feudal System: The Rajputs also followed a feudal system, with the king granting land and titles to his nobles and vassals.
  3. Council of Ministers: The king was advised by a council
... Continue reading "Rajput Dynasty: Origins, Governance, and Kingdoms" »

Workplace Efficiency: Meeting Prep, HR Records, Office Vocabulary

Classified in Language

Written on in English with a size of 6.23 KB

Preparing for Your Upcoming Staff Meeting

Dear Team,

I hope this email finds you well. This message provides important instructions to help you prepare for our staff meeting, scheduled for [date and time].

Key Preparation Steps

  • Review the Agenda: Please review the attached meeting agenda carefully. Note any items requiring your input or preparation for discussion.
  • Prepare Updates & Reports: Ensure all relevant updates or reports are ready to share during the meeting.
  • Finalize Presentations: If you are responsible for presenting, finalize your slides and upload them to the shared drive by [deadline]. Please ensure your content is clear, concise, and focuses on key points.
  • Gather Supporting Documents: Bring any necessary documents, such as reports
... Continue reading "Workplace Efficiency: Meeting Prep, HR Records, Office Vocabulary" »

Canada Trip & Family Vacation: Travel Stories & Johnny Depp Bio

Classified in English

Written on in English with a size of 2.77 KB

Letter to a Friend About a Trip

From: [Your Name]

To: [Friend’s Name]

Subject: My Trip to Canada

Hi [Friend’s Name],

How are you? I have amazing news! I’m going to Canada for three weeks to study English!

I’ll be arriving on January 15th and staying at a student residence close to the school. My course has 20 lessons a week, and I’ll take morning classes. In the afternoons, I plan to join some activities, like city tours and maybe trying fun things like ice skating. I also want to explore and enjoy Canadian food. It’s going to be so exciting!

I hope you’re doing well. Do you think I should pack anything special for the trip? Let me know!

Take care,

[Your Name]

Family Vacation in La Serena, Chile

I went on vacation in February with my family... Continue reading "Canada Trip & Family Vacation: Travel Stories & Johnny Depp Bio" »

Formulaire d'Inscription et Collecte de Données

Classified in Computers

Written on in English with a size of 518 bytes

Formulaire d'Identification et d'Inscription

Veuillez renseigner les informations suivantes pour votre dossier :

  • Nom :
  • Prénom :
  • CIN :
  • Tél :

Validation des Coordonnées Personnelles

Veuillez confirmer les informations ci-dessous :

  • Nom :
  • Prénom :
  • CIN :
  • Tél :

The Epic Story of Les Misérables: Redemption and Revolution

Classified in Religion

Written on in English with a size of 3.5 KB

Les Misérables: Key Plot Points and Character Arcs

Chapter 1: Release and the Bishop's Kindness

Jean Valjean is released from prison after serving 19 years for stealing bread. Marked as a dangerous ex-convict, he is rejected everywhere until he finds shelter at the bishop’s house, where he is treated with kindness and taught the value of redemption.

Chapter 2: The Act of Mercy and Javert's Pursuit

Valjean steals the bishop’s silver, but when caught, the bishop defends him, claiming it was a gift. This profound act of mercy sets Valjean on a path toward true redemption. Meanwhile, Inspector Javert begins searching for the escaped convict.

Chapter 3: Fantine and the Thénardiers

Fantine, a young mother, leaves her daughter Cosette with the cruel... Continue reading "The Epic Story of Les Misérables: Redemption and Revolution" »

Essential Algorithms and Data Structures: A Quick Reference

Classified in Computers

Written on in English with a size of 580.94 KB

fUlQAAAABJRU5ErkJggg==

AOUNZyjQwEJMAAAAAElFTkSuQmCC


Essential Algorithms and Data Structures

Longest Increasing Subsequence (LIS):

  • Subproblem: dp[i] = length of LIS ending at index i
  • Recursion: dp[i] = max(dp[j] + 1 for j < i and arr[j] < arr[i])
  • Base case: dp[i] = 1 (every element is a subsequence of length 1)
  • Time Complexity: O(n^2), O(n log n) with binary search optimization.

Longest Alternating Subsequence (LAS):

  • Subproblem: dp[i][0] (increasing), dp[i][1] (decreasing)
  • Recursion: dp[i][0] = max(dp[j][1] + 1 for j < i and arr[j] < arr[i]), dp[i][1] = max(dp[j][0] + 1 for j < i and arr[j] > arr[i])
  • Base case: dp[0][0] = 1, dp[0][1] = 1
  • Time Complexity: O(n^2)

0/1 Knapsack Problem:

  • Subproblem: dp[i][w] = maximum value for the first i items and weight limit w
  • Recursion: dp[i][w] = max(
... Continue reading "Essential Algorithms and Data Structures: A Quick Reference" »