Notes, summaries, assignments, exams, and exercises for Computer science for Secondary education

Gestión de Pedidos en Java y MySQL con ClasePedido

Computer science5.35 KB

Gestión de Pedidos en Java con MySQL y Swing

La clase ClasePedido permite gestionar pedidos, interactuar con bases de datos relacionales MySQL a través de JDBC y vincular los datos con componentes gráficos de Java Swing mediante DefaultTableModel.

Código Fuente de ClasePedido

import java.sql.*;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.*;

public class ClasePedido {
private static Connection cn = null;
private Statement st = null;
private ResultSet rs = null;
beanClientes cliente = new beanClientes();
DefaultTableModel datos = new DefaultTableModel();
beanProductos productos = new beanProductos();
...
Continue reading "Gestión de Pedidos en Java y MySQL con ClasePedido" »

Java JDBC Database Connection and Client Management Class

Computer science3.11 KB

Java Database Client Management Class

Below is the complete implementation of the beanClientes Java class designed to handle database connections, search client records by telephone, generate unique client codes, and insert new records using JDBC and Java Swing.

Source Code Implementation

import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

public class beanClientes {
    private static Connection xcn = null;
    private Statement xst = null;
    private ResultSet xrs = null;
    private String xcod, xnom, xdir, xref, xtel;

    public void EnlasaBeanClientes(Connection cn) {
        try {
            xcn = cn;
            xst = xcn.createStatement();
        } catch (SQLException
...
Continue reading "Java JDBC Database Connection and Client Management Class" »

Mastering HTML Special Characters and Entity Codes

Computer science3.08 KB

Symbols: Why Do You Use Codes?

There are several operating systems in the world of computers. These systems are nothing but special programs that run immediately after turning on the computer and are in charge of giving "life" to the machine.

Along with these programs, computers load special tables into memory that match the characters present on a keyboard and a few others that are not, but can be entered online by other means. These tables, unfortunately, are not always the same and vary from one system to another, from one brand of computer to another, and of course, from one language to another. For example, accented letters from a PC are not like those from a Macintosh or a UNIX terminal when typing directly from the keyboard.

Universal Language

...
Continue reading "Mastering HTML Special Characters and Entity Codes" »

Understanding Computer Fundamentals: FAQ

Computer science3.72 KB

What is a Computer?

A computer is an information processing machine capable of storing a large amount of data.

What is an Abacus?

The Abacus was a device capable of performing automatic calculations.

What is the Computer's Brain?

The computer's brain is the microprocessor.

What is Multimedia?

Multimedia is the ability to use images and sound through the computer.

What is the Internet?

The Internet is a network that allows access to information stored on computers.

What is Compatibility?

Compatibility refers to the ability of different components or software to work together.

What is a Power Supply?

The power supply is a component that connects your computer to the electric current.

What is the Motherboard?

The motherboard is the main circuit board of a computer,...

Continue reading "Understanding Computer Fundamentals: FAQ" »

180 Essential Excel Shortcuts for Windows

Computer science220.94 KB

Cheat Sheets N More

180 Essential Excel Shortcuts for PC

Master Anything Faster · Cheat Sheets N More

Microsoft Windows Edition

200 Shortcuts

Part 1: Absolute Basics

Moving Around

  • Move one cell in any direction: Arrow Keys
  • Confirm entry and move down: Enter
  • Confirm entry and move up: Shift + Enter
  • Move one cell to the right: Tab
  • Move one cell to the left: Shift + Tab
  • Move down one screen: Pg Dn
  • Move up one screen: Pg Up
  • Move one screen to the right: Alt + Pg Dn
  • Move one screen to the left: Alt + Pg Up
  • Move to first column in row: Home

Important Places

  • Go to cell A1: Ctrl + Home
  • Go to last used cell: Ctrl + End
  • Jump to edge of data region: Ctrl + Arrow
  • Select to edge of data region: Ctrl + Shift + Arrow
  • Open Go To dialog: F5
  • Open Go To (alternate): Ctrl + G

Selecting Cells

  • Extend selection
...
Continue reading "180 Essential Excel Shortcuts for Windows" »

The 7 Layers of the OSI Model Explained for Networking Professionals

Computer science5.35 KB

The 7 Layers of the OSI Model

The Open Systems Interconnection (OSI) model defines a networking framework to implement protocols in seven distinct layers. Understanding these layers is fundamental to grasping how data communication occurs across networks.

Application Layer (Layer 7)

The Application Layer, OSI Model Layer 7, supports application and end-user processes. Key functions include identifying communication partners, defining quality of service, considering user authentication and privacy, and identifying any constraints on data syntax. Everything at this layer is application-specific.

This layer provides application services for file transfers, e-mail, and other network software services. Examples of applications existing entirely at this...

Continue reading "The 7 Layers of the OSI Model Explained for Networking Professionals" »

5 Essential Computer System Hardware Components Explained

Computer science1.76 KB

Computer System Components

There are five main hardware components in a computer system: Input, Processing, Storage, Output, and Communication devices. These devices are used for entering data or instructions into the central processing unit.

The Five Basic Components of a Computer System

  • Input Unit: Data and instructions must enter the computer system before any computation can be performed. The input unit links the external environment with the computer system to perform this task.
  • Output Unit: The job of an output unit is the reverse of an input unit. It supplies information and results of computation to the outside world, linking the computer with the external environment.
  • Storage Unit: Data and instructions entered through input units must
...
Continue reading "5 Essential Computer System Hardware Components Explained" »