Notes, summaries, assignments, exams, and exercises for Computer science for Vocational training

Understanding Maps and Double Linked Lists in Java

Computer science8.4 KB

Map & Diccionarios

Import Statements

import java.security.InvalidParameterException;
import java.util.*;

RedCarreteras Class

public class RedCarreteras { 
    private Map<String, Map<String, Integer>> red;

    //CONSTRUCTORES
    public RedCarreteras() {
        red = new HashMap<>();// Nuevo dicc a 0
    }

    //METODOS
    private void validarTramo(String una, String otra, int distancia) {
        if (una == null || otra == null || una.equals(otra) || distancia < 1)
            throw new InvalidParameterException();
    }

    public Set<String> ciudades() {
        return red.keySet();
    }

    public int nuevoTramo(String una, String otra, int distancia) {
        validarTramo(una, otra, distancia);
...
Continue reading "Understanding Maps and Double Linked Lists in Java" »

Data Project Management: A Comprehensive Guide to DR, MVP, and Data Pipelines

Computer science3.25 KB

Data Project Management: A Comprehensive Guide

Goal Setting: The Foundation of Project Planning

Every project requires a clear destination to determine its success. Goal setting is the first step in project planning, providing a roadmap for the project's journey.

Tools & Skills: Assessing Project Resources

The upper blocks of DR (Data Requirements) focus on evaluating the resources necessary for data project implementation. These resources include:

  • Hard Resources: Data, software tools, processing
  • Soft Resources: Skills, domain expertise, human resources for execution

Process & Value: Implementation and Delivery

The lower blocks of DR concentrate on project implementation and delivery. DR serves as a planning tool, helping project managers:

  • Identify
...
Continue reading "Data Project Management: A Comprehensive Guide to DR, MVP, and Data Pipelines" »

Reverse Engineering Fundamentals: Process, Steps, and CAD Model Generation

Computer science2.76 KB

Forward Engineering Defined

Forward engineering is the traditional process of moving from high-level abstractions and logical designs to the physical implementation of a system.

Understanding Reverse Engineering

Reverse engineering (RE) is the process of duplicating an existing part, sub-assembly, or product without original drawings, documentation, or a computer model.

It is also defined as the process of obtaining a geometric Computer-Aided Design (CAD) model from 3-D points acquired by scanning or digitizing existing parts.

Alternative Name for Reverse Engineering

The process is often referred to as the Physical-to-Digital process.

Key Purposes of Reverse Engineering (RE)

Reverse engineering serves several critical functions, including:

  • The user
...
Continue reading "Reverse Engineering Fundamentals: Process, Steps, and CAD Model Generation" »

Using Proximity, White Space, Alignment, Contrast, and Repetition in Design

Computer science1.05 KB

Proximity

Proximity is all about using visual spaces to show relationships in your content. We can group the items in blocks of text or elements in the graphic to take visual emphasis.

White Space

White space, also known as negative space, refers to the spaces between your content, between lines, and even the margins. White space defines and separates different sections.

Alignment

We can separate text boxes, images, etc. by imagining their content as a range inside of a grid. Centering the images to the text and using equal size margins can create a visually pleasing alignment.

Contrast

Contrast means that one item is different from another. We can create contrast using color, size, shape, or contrasting styles of text. Hierarchy, a visual technique...

Continue reading "Using Proximity, White Space, Alignment, Contrast, and Repetition in Design" »

Computer System Personnel Roles and Digital Numbering Bases

Computer science4.05 KB

1.5 The Human Element in Computer Systems

The human element, or personnel, is the most important component within a computer system. It comprises a group of people who perform various functions related to the use and maintenance of computers and applications.

Key Roles in Computer System Personnel

  • Staff Director: Responsible for directing and coordinating a department, a data processing center, or any related division.
  • Staff Analysis (System Analyst): Manages application development, focusing on design, production of algorithms, and analyzing possible uses and modifications.
  • Programming Personnel: In charge of transcribing the algorithms designed by the analyst into a specific programming language. This role also involves implementing the programs
...
Continue reading "Computer System Personnel Roles and Digital Numbering Bases" »

Key Concepts in Operating Systems

Computer science3.92 KB

Operating System Process Management

Process States

Different states a process can be in:

  • Execution: The process is executing instructions and has been granted CPU time.
  • Ready: A process is ready to be executed, waiting for its turn to use its time slice and access system resources.
  • Blocked: The process is held or blocked for some reason, waiting for an event (e.g., I/O completion).

Process State Transitions

Transitions between process states:

  • Transition A: Occurs when a running process needs a resource, signal, etc., to continue execution and moves to the blocked state.
  • Transition B: Occurs when a process has used its allocated CPU time slice and moves from execution back to the ready state.
  • Transition C: Occurs when a process in the ready state moves
...
Continue reading "Key Concepts in Operating Systems" »

Computer Character Encoding Standards: ASCII and EBCDIC

Computer science4.06 KB

Computer Character Encoding Standards

ASCII Code: American Standard Code for Information Interchange

The ASCII Code is the most popular coding method used by computers to convert characters (letters, numbers, punctuation, etc.) to digital form. The standard ASCII has 128 positions, represented by 7 binary digits. There is also an extended version with 256 characters.

EBCDIC Code: Extended Binary Coded Decimal Interchange Code

The EBCDIC Code is used by IBM for its business systems, including the IBM PC series. Each character is represented by 8 bits, allowing for the representation of $2^8 = 256$ characters.

The Standard IEEE 754

The IEEE 754 Standard is a computer program specification that dictates how arithmetic instructions for floating-point...

Continue reading "Computer Character Encoding Standards: ASCII and EBCDIC" »

Microsoft Word & Computer Basics: Key Features Explained

Computer science4.08 KB

Key Concepts in Microsoft Word and Computer Applications

1. Microsoft Word Application Type

Which type of computer application is Microsoft Word an example of?

Word processing

2. Touchscreen Right-Click

Which action enables you to right-click on a touchscreen?

Press and hold for a few seconds

3. Word 2016 Document Starting Point

A preformatted document used as a starting point in Word 2016 is known as what?

A template

4. Wordwrap Functionality

Word uses wordwrap. If a word does not fit at the end of a line, what happens to that word?

It is automatically moved to the next line.

5. Understanding Inline Objects

What does inline object refer to?

A picture or object positioned directly in the text at the insertion point, just like a character in a sentence.

6.

...
Continue reading "Microsoft Word & Computer Basics: Key Features Explained" »

Pascal Code Examples: Arrays, Matrices, and Logic

Computer science5.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" »