Notes, summaries, assignments, exams, and problems for Baccalaureate

Sort by
Subject
Level

Doubly Linked List Implementation in C

Classified in Computers

Written on in English with a size of 4.75 KB

Types definition


#include <stdbool.h>


#include <stdlib.h>


Struct Definition


typedef int tItemL;
typedef struct tNode* tPosL; //Ptr to tNode
struct tNode {
tItemL data;
tPosL next;
tPosL prev;
};
typedef tPosL tList;


Prototypes


void createEmptyList(tList *L);
bool createNode(tPosL* p);
bool insertItem(tItemL d, tPosL p, tList *L);
void updateItem(tItemL d, tPosL p, tList* L);
tPosL findItem(tItemL d,tList L);
bool isEmptyList(tList L);
tItemL getItem(tPosL p, tList L);
tPosL first(tList L);
tPosL last(tList L);
tPosL previous(tPosL p, tList L);
tPosL next(tPosL p,tList L);
void deleteAtPosition(tPosL p , tList *L);
void deleteList(tList *L);


Function Definitions


#include "doubly_linked_list.h"
bool isEmptyList(tList L) { return (L == NULL); }
void... Continue reading "Doubly Linked List Implementation in C" »

Vocabulary and Grammar Practice for English Learners

Classified in Teaching & Education

Written on in English with a size of 4.33 KB

Passionate, ambitious, loyal, optimistic, loyal, ambitious, television, influential, pessimistic.

At risk, creature, endangered, extinct, hunt, protected, rare, species, environment, habitat natural survive, dangerous, attack, vulnerable, fight, scared, danger, provided, tiger, mattress, hut, forest, wounded, shot, killed, boots, endangered, extinct, protected, desert, mountain, harmless, pepper spray, punch, seal, vertical, panic, unless, provided, survive, careful, drag, impressive, work out, record, take revenge, killed, provided, wounded.

Vocab- Affect, as a result, cause, effect, influence, is caused by, lead, result.

Arduous, strict, demanding, rigorous, testing, tricky, punishing, tough, gruelling, straightforward, awkward, struggle, stretch,... Continue reading "Vocabulary and Grammar Practice for English Learners" »

Understanding Canadian Law: Substantive, Procedural, Public, and Private

Classified in Law & Jurisprudence

Written on in English with a size of 130.22 KB

Substantive and Procedural Law in Canada

Substantive Law

Substantive law encompasses the rights and rules that govern behavior and set limits on conduct.

Procedural Law

Procedural law determines how substantive laws will be enforced.

Public and Private Law

Public Law

Public law includes constitutional law and determines how the country is governed. It also regulates our relationship with the government.

Private Law

Private law governs personal, social, and business relationships.

Canada's Constitution

The Constitution Act, 1982, formerly known as the British North America Act, created Canada in 1867. It serves as the "rulebook" that the government must follow. It includes the Charter of Rights and Freedoms.

Canada's Constitution has three elements:

  • Statutes
  • Case
... Continue reading "Understanding Canadian Law: Substantive, Procedural, Public, and Private" »

Personal Reflections on Life's Journey

Classified in English

Written on in English with a size of 2.78 KB

High School Reflections

High school has given me very good and not so good moments, but it was undoubtedly the best time of my life. I had many friends, and the days in class were fun and enjoyable. I remember that the first day of high school I entered with a lot of fear of not making friends since I didn't know anyone, but after the first playground I had already made 3 friends, one of whom today is my best friend. A not so good stage in high school was repeating the course, since I had a bad time both socially with my new classmates and on a personal level.

The Digital Connection

Today, both new and old generations have something in common: the need to connect to the internet, either to work or to hang out. I think that punishing a person without... Continue reading "Personal Reflections on Life's Journey" »

Fundamental Principles of Forces and Motion

Classified in Physics

Written on in English with a size of 2.77 KB

Understanding Physical Forces

A force is the interaction of a body with something external to it and is capable of:

  • Modifying its state of motion or rest (we will focus on it).
  • Causing deformation.

The Normal Force

The normal force (N) is a reaction force; it is a force resulting from the application of Newton’s third law, which must have exactly the value required for the net force along its axis to be null.

Newton’s Laws of Motion

Newton’s First Law

Newton’s first law states that every object will remain at rest or in uniform motion in a straight line unless compelled to change its state by the action of an external force. This tendency to resist changes in a state of motion is inertia.

Newton’s Second Law

Newton's second law of motion can... Continue reading "Fundamental Principles of Forces and Motion" »

Anatomy of the Eye: Retina, Vitreous Body, Accommodation, and Hemidecussation

Classified in Physics

Written on in English with a size of 643 bytes

Anatomy of the Eye

The retina of the eye, lining the posterior two-thirds of the eyeball, is located within the inner tunic.

The jelly-like substance located between the lens and retina is the vitreous body.

True or false: Accommodation refers to the change in lens thickness in order to provide fine focus of an image. The answer is true.

Functions of the Vitreous Body:

  • Maintains shape of eyeball
  • Refracts rays of light
  • Keeps retina smoothly pressed against inner surface of eye chamber

Hemidecussation occurs within the visual projection pathway at the optic chiasm.

Customer Experiences: Toys R Us, Cuerpo Norte Gym, and El Retiro

Classified in English

Written on in English with a size of 2.41 KB

Toys R Us: A Customer Complaint

Date: May 11, 2022

On May 9th, I purchased a remote-control car as a gift for my brother. Upon opening the package, we discovered the car was made of cheap plastic, lacked a remote control, and did not resemble a remote-controlled vehicle at all.

I went directly to the store to file a complaint, as the product was expensive and clearly defective. The staff accused me of swapping the item at home to get a refund, which made me very angry. I have escalated this complaint to management and expect a resolution, either through a replacement or a full refund. Thank you for your attention to this matter.

Sincerely, Sofia Gonzalez Lara

Cuerpo Norte: A Special Gym in Burgos

While there are many gyms in Burgos, Cuerpo Norte... Continue reading "Customer Experiences: Toys R Us, Cuerpo Norte Gym, and El Retiro" »

English Grammar Cheat Sheet: Conditionals, Passive Voice, and More

Classified in English

Written on in English with a size of 7.22 KB

Conditionals

0 Conditional

if + Present Simple + Present Simple

Situations that are always true or happen repeatedly.

1st Conditional

if + Present Simple + will (verb)

Describes what happens if a condition is met.

2nd Conditional

if + Past Simple + would (verb)

Imaginary future situations, hypothetical cases, unlikely events.

3rd Conditional

If + Past Perfect, would have + Past Participle

Impossible conditions as they refer to the past.

The Passive Voice

Present Simple: The waiter serves the customers (A) --> The customers are served by the waiter (P)

Present Continuous: ...is serving... --> ...are being served...

Past Simple: ...served... --> ...were served...

Past Continuous: ...was serving... --> ...were being served...

Present Perfect Simple:

... Continue reading "English Grammar Cheat Sheet: Conditionals, Passive Voice, and More" »

The Policy of Appeasement and the Road to World War II

Classified in History

Written on in English with a size of 4.32 KB

THE POLICY OF APPEASEMENT

Chamberlain returns from Munich and says he has saved world peace for a long time, waving a paper in which Hitler promised he didn't have more territorial demands in Czechoslovakia. A year later, Germany invades Czechoslovakia.

What is Appeasement?

A diplomatic policy of making political or material concessions to an aggressive power to avoid conflict. It was a total failure. It is applied to the foreign policy of the UK governments in the 1930s, towards the Nazis and Fascists in Italy.

Failure (future perspective):

Why appease Hitler?

  • The League of Nations abandoned Czechoslovakia
  • Britain is not prepared for war with the Luftwaffe
  • Munich was followed by more Nazi demands and attacks
  • The Czechs had 36 divisions ready to fight
... Continue reading "The Policy of Appeasement and the Road to World War II" »

Understanding Relative Clauses: Definitions and Examples

Classified in Training and Employment Advise

Written on in English with a size of 1.34 KB

DEFINING RELATIVE CLAUSES

WHO: Susan is who failed

THAT: Denis is the boy that has a cat (se puede quitar)

WHICH/THAT: This is the book which/that I read yesterday

WHOSE: That is the girl whose parents went to Paris

WHERE: This is the beach where I went on summer

WHEN: August is the month when I have my holiday

NON-DEFINING RELATIVE CLAUSES

WHO: Marta, who studied a lot, got a 10 in the exam

WHICH: Matilda, which I have read many times, is a really cool book

REDUCED RELATIVE CLAUSES

→ Present participle (-ing) replaced by active form

Se quita who’s, that’s…

Do you know who’s studying?

→ Past participle replace passive verbs

Some of the questions that were included were difficult


Who/That→ para personas (quien)

Which/That→para cosas (el cual)... Continue reading "Understanding Relative Clauses: Definitions and Examples" »