Notes, summaries, assignments, exams, and problems for Vocational training

Sort by
Subject
Level

Dijkstra's Algorithm in C: Code & Explanation

Classified in Computers

Written on in English with a size of 3.5 KB

Dijkstra's Algorithm in C

This code implements Dijkstra's algorithm to find the shortest path from a source vertex to all other vertices in a graph represented as an adjacency matrix. The program reads graph data from an input.txt file and writes the results to an output.txt file.

Code Implementation


#include <stdio.h>
#include <limits.h>
#include <stdbool.h>

#define MAX_VERTICES 100

// Function to find the vertex with minimum distance
int minDistance(int dist[], bool visited[], int vertices) {
    int min = INT_MAX, min_index;

    for (int v = 0; v < vertices; v++)
        if (!visited[v] && dist[v] <= min) {
            min = dist[v];
            min_index = v;
        }

    return min_index;
}

// Dijkstra'
... Continue reading "Dijkstra's Algorithm in C: Code & Explanation" »

Essential Pharmacy Terminology and Acronyms

Classified in Medicine & Health

Written on in English with a size of 3.15 KB

Pharmacovigilance Defined

Pharmacovigilance is the science and activities relating to the detection, assessment, understanding, and prevention of adverse effects or any other medicine/vaccine-related problem.

Clinical Pharmacy Explained

Clinical pharmacy is a branch of pharmacy that involves the provision of patient care with the use of medications to optimize the health outcomes of patients.

PTC Full Form in Pharmacy

PTC stands for the Pharmacy and Therapeutics Committee.

Pharmacy Inventory Control Techniques

There are three primary methods used in pharmacy to manage inventory:

  • The visual method
  • The periodic method
  • The perpetual method

Composition of Universal Antidote

The universal antidote is composed of:

  • Zinc or magnesium oxide
  • Tannic acid
  • Charcoal

Activated

... Continue reading "Essential Pharmacy Terminology and Acronyms" »

Professional Communication and Meeting Documentation Examples

Classified in Other subjects

Written on in English with a size of 3.22 KB

Business Communication and Documentation

Review of the Social Media Strategy Meeting

Last Monday, a meeting was held to discuss our Social Media Strategy.

Meeting Details

  • Date Held: May 10th
  • Location: Main Office
  • Purpose: To improve our social media presence.

Attendees

  • Monica Sanchez Perez (Marketing Head)
  • Mark Lee (Content Manager)
  • Laura Green (SEO Specialist)
  • Paul Kim (CEO)

Discussion Summary

The meeting featured high-quality discussions and was well-organized. The atmosphere was collaborative, and everyone shared their insights.

Areas for Improvement

However, the following issues were noted:

  • Time management was poor, leading to some key points being missed.
  • Not all team members contributed equally.

Final Recommendation

Better time management and equal participation... Continue reading "Professional Communication and Meeting Documentation Examples" »

Business English Vocabulary and Grammar Essentials

Classified in English

Written on in English with a size of 7.15 KB

Essential Business English Vocabulary

Pursue
To follow or chase (someone or something); to strive to gain or accomplish (a goal) over a long period.
Boardroom
A room where a company's board of directors meets.
Storm
To enter suddenly and forcefully (e.g., storm the boardroom).
Account for
To represent or form a particular proportion or part of something.
Fulfilling
Achieving satisfaction or happiness through one's actions; satisfying.
Single-handedly
Done by one person alone; without help.
Slightly
To a small degree; not considerably; a little bit.
Gruffly
In a rough, stern, or abrupt manner.
Although
Conjunction meaning 'in spite of the fact that'; similar to 'but'.
Stepped back
To move back physically or mentally; to withdraw from a situation to gain perspective.
... Continue reading "Business English Vocabulary and Grammar Essentials" »

Push-Pull Supply Chain Strategies and Examples

Classified in Economy

Written on in English with a size of 2.27 KB

Chapter 6: Push–Pull

Question 1 — Push-Based vs Pull-Based

When demand uncertainty is low, a push-based supply chain allows the firm to reduce costs by making use of economies of scale in production and distribution without increasing inventory holding costs. A pull-based supply chain reacts to real customer orders rather than to forecasts. Thus, lead times and variability in the system are reduced by matching supply and demand. This leads to improved customer service and decreased inventory holding costs.

Question 2 — Industry Examples

As discussed, the automobile industry has traditionally employed a push-based supply chain strategy by building inventory for the dealer warehouses. On the other hand, in industries in which demand is relatively... Continue reading "Push-Pull Supply Chain Strategies and Examples" »

Shell script

Classified in Computers

Written on in English with a size of 2.47 KB

Ejercicio de descuentos:

#!/bin/bash

read -p "¿Desea el billete también de vuelta? (s/n): " idavuelta

until [ $idavuelta=="s" ] || [ $idavuelta=="n" ]; do

read -p "¿Desea el billete también de vuelta? (s/n): " idavuelta

done

read -p "¿Tiene carnet joven? (s/n): " carnetjoven

until [ $carnetjoven="s" ] || [ $carnetjoven="n" ]; do

read -p "¿Tiene carnet joven? (s/n): " carnetjoven

done

descuento=0 billete=20

if [ $idavuelta="s" ]; then

descuento=20

billete=" expr $billete \* 2'

fi

if [ $carnetjoven="s" ]j then

descuento=30

fi

costefinal=`expr $billete \* \( 100 - $descuento \) / 100`

echo "El precio final del billete es $costefinal"



Ejercicio de medias:

#!/bin/bash

acu=0

cont=0

read -p "Introduce un numero: " num

while [ $num -ne 0 ]; do

acu=`expr $acu + $num`

cont=... Continue reading "Shell script" »

SAP S/4HANA Cash Management Capabilities

Classified in Mathematics

Written on in English with a size of 6.48 KB

SAP S/4HANA Financial and Treasury Functions

The following table details various aspects, components, and features related to SAP S/4HANA, particularly focusing on Cash Management and Treasury functions.

S/4HANAIt provides real-time visibility into cash positions.
S/4HANAEnsuring sufficient funds to meet obligations.
S/4HANA CASHManages day-to-day cash activities.
S/4HANA CASHHandles Physical cash management aspects.
S/4HANA ComponentIncludes the Payment Run functionality.
S/4HANA ComponentSupports Risk Analysis.
S/4HANA FalseIt is primarily used for long-term financial planning (Note: This description seems contradictory to typical S/4HANA Cash Management focus, which is real-time).
S/4HANA FeatureManagement of Bank Account Master Data.
S/4HANA FeatureSupports
... Continue reading "SAP S/4HANA Cash Management Capabilities" »

Mastering Business English: Vocabulary & Grammar

Classified in Teaching & Education

Written on in English with a size of 100.93 KB

Essential Business English Terms

Understanding key distinctions in business is crucial:

  • Consumer: Uses or consumes the product.
  • Customer: Purchases the product.
  • Client: Receives a customized service.

5AAAAAElFTkSuQmCC

General Business Vocabulary

  1. Badge: A small item worn to identify a person, usually at events. Insignia o credencial.
  2. Business card: A small card with personal or professional contact details. Tarjeta de presentación.
  3. Contact: A person you communicate with for professional or business purposes. Contacto profesional.
  4. Samples: Small examples of products given to customers for free to encourage purchase. Muestras de producto.
  5. Stand: A booth or display space at a trade fair or exhibition. Puesto o expositor en ferias.

Key Verbs and Business Terms

  • Allocate: To
... Continue reading "Mastering Business English: Vocabulary & Grammar" »

Maritime Emergency Communication & Essential Seafaring Vocabulary

Classified in Medicine & Health

Written on in English with a size of 7.98 KB

Maritime Incident Report: Ocean Star Fire

The cargo ship Ocean Star was en route to Singapore with an estimated time of arrival (ETA) of 18:00 when its engine room suddenly caught fire. The crew bravely attempted to extinguish the flames, but thick smoke quickly spread throughout the vessel. The captain promptly sent a distress call, reporting their position as 15°N, 104°E. Nearby ships altered their course to assist, and emergency services were alerted to be on standby at the nearest port. By 17:45, the fire was brought under control, but the ship remained adrift, awaiting tugboats for safe harbor. This incident highlights the critical importance of effective maritime emergency procedures and communication.

Essential Maritime Vocabulary

Key

... Continue reading "Maritime Emergency Communication & Essential Seafaring Vocabulary" »

Mastering English Future Tenses & Word Transformations

Classified in English

Written on in English with a size of 5.99 KB

Understanding the Future Tenses in English

This section clarifies the usage and structure of the main future tenses in English, along with common word transformations.

The Future Simple with 'Will'

We use 'will' to talk about:

  • Decisions made at the time of speaking:
    "The window is open. I will close it."
  • General Predictions:
    "It will rain next week."
    "You won't like it here."

Affirmative Form with 'Will'

Structure: Subject + will + base form of verb

  • I / He / She / It / We / You / They will learn

Negative Form with 'Will'

Structure: Subject + will not (won't) + base form of verb

  • I / He / She / It / We / You / They will not learn (or won't learn)

Question Form with 'Will'

Structure: Will + subject + base form of verb?

  • Will I / He / She / It / We / You / They
... Continue reading "Mastering English Future Tenses & Word Transformations" »