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

Pascal Air Quality Index Calculator: Analyzing Measurement Files

Computer science5.42 KB

FUNCTION fnboIndizeakKalkulaturikBai (sFitxIzen : tsKateLuze) : Boolean ;

VAR

f: tfrdNeurketenFitxategia;

rdNeurketaBat: trdNeurketa ;

boKalkulatuak: Boolean ;

iNeurketaKopurua : Integer ;

BEGIN

boKalkulatuak := TRUE ;

Assign(f, sFitxIzen) ;

Reset(f) ;

iNeurketaKopurua := FileSize(f) ;

IF 1 <= iNeurketaKopurua THEN

BEGIN

Seek(f, iNeurketaKopurua - 1) ;

Read(f, rdNeurketaBat) ;

IF rdNeurketaBat.iKI = -1 THEN

boKalkulatuak := FALSE ;

END ;

Close(f) ;

fnboIndizeakKalkulaturikBai := boKalkulatuak ;

END ;

Behatokiaren Zerrenda Lortu

PROCEDURE BehatokiarenZerrendaLortu (sFitxIzen : tsKateLuze ;

sBehatokiBat : tsKateLabur ;

VAR ardNeurketenZerrenda : tardNeurketenZerrenda ;

VAR iLuzera : Integer) ;

VAR

f: tfrdNeurketenFitxategia;

rdNeurketaBat : trdNeurketa ;

BEGIN

iLuzera...

Continue reading "Pascal Air Quality Index Calculator: Analyzing Measurement Files" »

8051 Microcontroller Architecture and Pin Configuration

Computer science1.86 MB

Architecture of 8051

1. CPU (Central Processing Unit)

  • Controls all operations of the microcontroller.
  • Performs arithmetic and logical operations.
  • Executes program instructions.

2. RAM (Random Access Memory)

  • Temporary storage for data.
  • Stores variables and intermediate results.
  • Data is lost when power is turned off.

3. ROM (Read Only Memory)

  • Stores the program permanently.
  • Retains data even when power is off.

4. Timers/Counters

  • Used to generate time delays.
  • Can count external events.
  • 8051 has Timer 0 and Timer 1.

5. Ports

  • Used for input and output operations.
  • 8051 has 4 ports (P0, P1, P2, P3).
  • Each port is 8-bit.

6. Serial Communication

  • Used to exchange data with other devices.
  • Uses TXD (Transmit) and RXD (Receive) pins.
  • Supports serial data transmission and reception.
...
Continue reading "8051 Microcontroller Architecture and Pin Configuration" »

Comprehensive Organic Chemistry Dictionary and Formulas

Computer science2.27 KB

Chemistry Dictionary

Alkanes and Radicals

NameFormulaNameFormula
MethaneCH4MethylCH3
EthaneCH3 CH3EthylCH3 CH2
PropaneCH3 CH2 CH3PropylCH3 CH2 CH2
PropaneCH3 CH2 CH3IsopropylCH3 CH CH3
ButaneCH3 CH2 CH2 CH3ButylCH3 CH2 CH2 CH2
ButaneCH3 CH2 CH2 CH3Secondary butylCH3 CH2 CH CH3
Isobutane (2 – Methyl – propane)CH3 CH CH3 CH3IsobutylCH3 CH CH2 CH3
Isobutane (2 – Methyl – propane)CH3 CH CH3 CH3Tertiary butylCH3 C CH3 CH3
PentaneCH3 CH2 CH2 CH2 CH3PentylCH3 CH2 CH2 CH2 CH2
PentaneCH3 CH2 CH2 CH2 CH3Secondary pentylCH3 CH2 CH2 CH CH3
Isopentane (2 – Methylbutane)CH3 CH2 CH CH3 CH3IsopentylCH3 CH2 CH CH2 CH3
Isopentane (2 – Methylbutane)CH3 CH2 CH CH3 CH3TertiarypentylCH3 CH2 C CH3 CH3
2,2 – dimethyl – propaneCH3 CH3 C CH3 CH3

Vocabulario Inglés-Español: Teléfono, Correo y Envíos

Computer science5.27 KB

Vocabulario inglés-español

Teléfono y contestador

  • Contact someone – contactar con alguien
  • Cord – cordón (teléfono)
  • Delete – borrar, eliminar
  • Dial a phone number – marcar un número de teléfono
  • Enter your access code – introducir código de acceso
  • Fast forward – adelantar
  • Listen to incoming messages – escuchar mensajes entrantes
  • Location – ubicación
  • Loud – alto de volumen
  • Loudspeaker – altavoz
  • Modify – modificar
  • Off the hook – estar libre de obligaciones
  • Press this button – presionar el botón
  • Receiver – receptor
  • Record an outgoing message – grabar un mensaje saliente
  • Replay – repetir
  • Retrieve – recuperar
  • Review – revisión
  • Rewind – rebobinar
  • Save – salvar, guardar

Computación y formato de texto

  • Attachment – archivo
...
Continue reading "Vocabulario Inglés-Español: Teléfono, Correo y Envíos" »

Mastering OOP Fundamentals: Objects, Classes, and Java Terms

Computer science2.57 KB

Core Concepts of Object-Oriented Programming (OOP)

Object Characteristics: State and Behavior

Objects in real life possess two primary characteristics: state and behavior.

  • State: Defined by a set of parameters that define and distinguish an object from others of the same type.
  • Behavior: Allows distinguishing objects of different types (e.g., a dog object behaves differently than a cat object).

Class Structure and Components

A class is a template or prototype that defines a particular object type. A class defines the attributes and methods that an object will possess.

Defining Object Components

Attributes or Member Variables
The parameters or variables that define the state of an object.
Methods or Member Functions
Actions that objects can perform.
Accessing
...
Continue reading "Mastering OOP Fundamentals: Objects, Classes, and Java Terms" »

VB.NET Student Management Application: Code Walkthrough and Data Handling

Computer science29.51 KB

VB.NET Student Management Application

Module Module1

Data Structure and Global Variables

Structure alu

Dim Codice As String(5)

Dim nominativo As String(25)

Dim Classe As String(5)

Dim Media As Single

End Structure

Public recalu As alu

Public numerec, pos, pos2, posgiusta, tot As Short

Public media As Single

Public classe As Short

Public recalu2 As alu

End Module


Frm9 – Student List by Name Ending

Student list of the class and name ending with

Public Class Frmvisua5

Private Sub Btnvisua_click(ByVal Sender As System.Object, ByVal E As System.EventArgs) Handles Btnvisua.Click

Txtvisua.Text = "iis6naudi" + Chr(13) + Chr(10)

Txtvisua.Text = Txtvisua.Text + "Student list of the class and name ending with " + txtnomi.Text + " " + txtclasse.Text + Chr(13) + Chr(10)...

Continue reading "VB.NET Student Management Application: Code Walkthrough and Data Handling" »

소프트웨어 품질·개발 모델 핵심 정리와 예상 문제

Computer science11.55 KB

1) 필수 정의 ― 단답형 빈칸 대비

  • 소프트웨어 = 프로그램 + 데이터 + 문서(절차 포함)

  • 품질 = 사용 목적 적합성 + 요구사항 부합(Conformance)

  • 제품 품질 ⇐ 프로세스 품질 (과정이 결과를 좌우)

  • 표준 = 합의·승인된 반복 적용 규칙/지침

  • Verification vs Validation = 올바르게 만들었는가 vs 올바른 것을 만들었는가

  • 베이스라인 = 공식 승인된 참조 버전(변경은 CCB 승인 필요)

  • PPQA = 정의된 프로세스 준수·산출물 객관 점검

  • RTM = 요구↔설계/테스트/결함 추적 매트릭스

공식/지표(숫자 문제 대비)

  • DRE = 발견 / (발견 + 유출)

  • 가용성 = MTBF / (MTBF + MTTR)

  • 성능 지표 = 응답시간·처리량·동시성

  • 보안 핵심 =

...

Continue reading "소프트웨어 품질·개발 모델 핵심 정리와 예상 문제" »

Object-Oriented Programming in C++: Key Concepts and Benefits

Computer science3.37 KB

α

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a ante ut purus aliquam pellentesque. Suspendisse potenti. In sit amet risus quam, et egestas mauris. Nunc feugiat risus ut est facilisis condimentum. Sed et turpis velit, sit amet pharetra lacus.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a ante ut purus aliquam pellentesque. Suspendisse potenti. In sit amet risus quam, et egestas mauris. Nunc feugiat risus ut est facilisis condimentum. Sed et turpis velit, sit amet pharetra lacus.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a ante ut purus aliquam pellentesque. Suspendisse potenti. In sit amet risus quam, et egestas mauris. Nunc feugiat risus ut est facilisis condimentum. Sed

...

Continue reading "Object-Oriented Programming in C++: Key Concepts and Benefits" »

Java Swing: Removing and Exporting Candidate Data to a Text File

Computer science2.92 KB

Removing and Exporting Candidate Data in Java Swing

The following methods handle the removal of a candidate record and the export of candidate data to a text file.

Removing a Candidate

btnRemoverMousePressed removes the candidate whose CPF is shown in the txtCPF field, then displays the first remaining candidate, if any.

private void btnRemoverMousePressed(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    if (this.dados.containsKey(txtCPF.getText())) {
        this.dados.remove(txtCPF.getText());
        this.indices.remove(txtCPF.getText());
    }

    if (this.indices.size() > 0) { // Check whether any records remain
        String cpfProx = this.indices.get(0); // Return to the first record
        Candidato c
...
Continue reading "Java Swing: Removing and Exporting Candidate Data to a Text File" »

How to Configure Network Permissions and Shared Resources

Computer science2.51 KB

Specify Permissions for Network Users

In Folder Options, under the View tab, locate the advanced settings and uncheck the box labeled Always use File Sharing. To establish special permissions for specific users registered on the same computer or network, follow these steps:

  • Step 1: Right-click the folder you wish to share and select the Sharing and Security menu.
  • Step 2: Click the Permissions button.
  • Step 3: To add new users, click the Add button. In the window that appears, enter the user type, location, and name. Note that these users must already exist in the requested network location.

Once configured, remove the Everyone group, as it is unnecessary when providing individual access to specific users. The My Network Places window displays all...

Continue reading "How to Configure Network Permissions and Shared Resources" »