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

Sort by
Subject
Level

Flowcharts vs Class Diagrams: Structured vs Object-Oriented Analysis

Classified in Computers

Written on in English with a size of 1.7 KB

Advantages of Using Flowcharts

  • Quick understanding of relationships.
  • Effective analysis of different program sections.
  • Useful as working models for designing new systems.
  • Improved communication with users.
  • Proper program documentation.
  • Efficient program coding.
  • Streamlined debugging and testing.

Disadvantages of Flowcharts

  • Diagrams are often complex and laborious to design.
  • Paths following decision symbols can be difficult to follow.
  • Lack of standardized rules for including all desired details.

Class Diagram Advantages

  • Automatically generates code.
  • Proposes solutions to common errors.
  • Represents relationships between classes.
  • Protects system data and components.
  • Allows for a reduction in coupling.

Class Diagram Disadvantages

  • The method tends to be slow.
  • Implementation
... Continue reading "Flowcharts vs Class Diagrams: Structured vs Object-Oriented Analysis" »

Proprietary File Analysis: Keystream Recovery and Resource Extraction

Classified in Computers

Written on in English with a size of 5.58 KB

C Implementation for Proprietary File Decryption (The Glide Utility)

This C source code outlines a utility, likely named glide, designed to analyze and decrypt data stored in a proprietary file format (possibly a PWL file). The process involves reading the file, recovering parts of the encryption keystream based on known offsets and user input, and then decrypting embedded resources.

Core Data Structures and Global Declarations

The program utilizes several global arrays to manage file data, the derived keystream, and resource pointers.

unsigned char Data[100001];
unsigned char keystream[1001];
int Rpoint[300];
  • Data: Stores the entire content of the input file.
  • keystream: Holds the recovered encryption key stream used for XOR decryption.
  • Rpoint: An
... Continue reading "Proprietary File Analysis: Keystream Recovery and Resource Extraction" »

Mastering Vector Drawing Tools and Basic Shapes

Classified in Computers

Written on in English with a size of 3.48 KB

Freeform Vector Drawing Tools

In the Toolbar, within the Vector group, you will find the tools that allow you to draw freely: the Line and Pen tools.

To use them, simply select the desired tool from the Toolbar and move the mouse to the work area. Click the mouse where you wish to start and keep the button pressed until you reach the end point.

The Line Tool

The line is the simplest vector element, as it is composed of only two points and the line that connects them.

With this tool, you can form different lines to create the desired figure. Example of Line Tool usageTo deselect a line, click in the negative area of the document. To select it again, grab the Pointer Tool from the Select group in the Toolbar. Example of selecting and deselecting a line

Using the Properties Inspector

Always remember to observe the Properties

... Continue reading "Mastering Vector Drawing Tools and Basic Shapes" »

Understanding Computer Hardware, Software, and Core Concepts

Classified in Computers

Written on in English with a size of 3.22 KB

PC Hardware: Essential Components

Hardware refers to the set of physical elements, machinery, and components (such as the microprocessor, monitor, and keyboard) that constitute a personal computer (PC).

Software, on the other hand, consists of programs or applications, along with the data or information they process and store.

Understanding Data and Information

Data serves as the raw material input that computers transform into information. Processed data, or information, is the result, distinguished by its usefulness.

Key Characteristics of Useful Information:

  • Relevant: The information is applicable to the current situation.
  • Current: Information is updated and available precisely when needed.
  • Accurate: Data entered into a computer and the resulting
... Continue reading "Understanding Computer Hardware, Software, and Core Concepts" »

Digital Modulation, Network Topologies and IP Addressing

Classified in Computers

Written on in English with a size of 2.87 KB

Digital Modulation Techniques

FSK Modulation: Each set of bits is represented by a discrete frequency. In the simplest case, two frequencies are used: F0 and F1.

ASK Modulation: Each set of bits is represented by a discrete amplitude. Information is transmitted based on the amplitude of the carrier. If the bit is 0, it is sent as amplitude A0; if the bit is 1, it is sent as amplitude A1. In the case of ASK2, it reduces to phase modulation, as it changes the sign of the carrier (a 180-degree phase jump), which is the basis of QPSK.

PSK Modulation: Each set of bits is represented by a discrete phase of the carrier. Signaling 0 and 1 by sending the reference carrier and a 180-degree phase jump is commonly called BPSK modulation.

Voice Digitization

... Continue reading "Digital Modulation, Network Topologies and IP Addressing" »

Importing Bitmap Images into Fireworks: Supported Formats

Classified in Computers

Written on in English with a size of 2.59 KB

Importing Bitmap Images into Fireworks

Defining the Canvas

The first step is defining the work area or canvas (remember to have the negative area visible). Then, select the import option from the File menu.

A window like the one below will open.

Locating and Selecting the Image

In the Look in option, you'll search the folder where your image is saved. In the Files of type menu, the formats that Fireworks recognizes are shown. Once you select the file, click Open.

Placing the Image

The following mark will be displayed on the canvas, which means Fireworks is ready to bring in the selected image.

Simply click with your mouse or try to trace the desired size of the image.

That way, the image will appear on the canvas.

Image Properties

This image's properties... Continue reading "Importing Bitmap Images into Fireworks: Supported Formats" »

Pascal Code Examples: Arrays, Matrices, and Logic

Classified in Computers

Written on in English with a size of 5.97 KB

Pascal Code Examples

1. String Search in Array

This program searches for a given name within an array of strings.

Program Pzim;
var
  vet1: array[1..10] of string;
  nome: string;
  i, j: integer;
begin
  j := 0;
  for i := 1 to 10 do
  begin
    write('Enter the names: ');
    readln(vet1[i]);
  end;
  write('Enter the name to be searched: ');
  readln(nome);
  for i := 1 to 10 do
  begin
    if (nome = vet1[i]) then
    begin
      writeln('FOUND');
      j := j + 1;
    end;
  end;
  if (j = 0) then
    writeln('NOT FOUND');
end.

2. Merging Two Arrays

This program merges two arrays (vet1 and vet2) into a third array (vetx).

Program Pzim;
var
  vet1: array[1..5] of integer;
  vet2: array[1..10] of integer;
  vetx: array[1..15] of integer;
... Continue reading "Pascal Code Examples: Arrays, Matrices, and Logic" »

Database Essentials: Understanding Tables, Fields, and Queries

Classified in Computers

Written on in English with a size of 4.22 KB

Database Components: Fields and Records

What is a Table?

Tables are the most fundamental objects in a database. They are used to store data organized into specific categories, structured in rows and columns.

What is a Field?

A field is the most basic unit of a database, representing a single piece of data. The names of fields cannot start with a space or special characters. A collection of fields for a single item is called a record.

Common Database Field Types

Different types of fields are used to store various kinds of data:

  • Text: For alphanumeric characters, names, and descriptions up to 255 characters.
  • Memo (Long Text): Used to store text longer than 255 characters with rich formatting options. It is ideal for notes, long explanations, and formatted
... Continue reading "Database Essentials: Understanding Tables, Fields, and Queries" »

Network Devices Explained: Bridges, Switches, and Routers

Classified in Computers

Written on in English with a size of 3.34 KB

Bridges and Switches: Essential Network Elements

Bridges (Puentes) and Switches are network elements that possess control capabilities, storing and forwarding the frames they receive through their ports based on their content.

They are primarily used to interconnect similar or different Local Area Networks (LANs). A bridge isolates traffic between network segments.

For instance, if an Ethernet network needs to exceed 2.5 km in length, a bridge can be installed to segment the network. By assigning each segment a length not exceeding 2.5 km, a total network length of up to 5 km can be achieved.

OSI Layer 2 Operation

Bridges operate at OSI Layer 2 (Data Link Layer). Their basic unit of operation is the frame.

Phases in Frame Pathing Between Segments:

... Continue reading "Network Devices Explained: Bridges, Switches, and Routers" »

Essential Components and Architecture of Modern Computers

Classified in Computers

Written on in English with a size of 2.43 KB

Essential Components of a PC

Hardware

Hardware refers to the set of physical elements, machinery, and components (such as the microprocessor, monitor, and keyboard) that constitute a PC.

Software and Data

Software consists of programs or applications, along with the data or information they handle and store. Computers transform data (raw input) into information (processed results). To be useful, information must meet the following criteria:

  • Relevant: Applicable to the current situation.
  • Current: Updated and available when needed.
  • Right: Accurate in all details.
  • Concise: Condensed into a reasonable size.
  • Comprehensive: All important elements are covered.

Human Intervention and Procedures

People: Computers require human intervention to function effectively.... Continue reading "Essential Components and Architecture of Modern Computers" »