Please enable JavaScript to use CodeHS

Ciencias de la computación, Nivel A (Nitro)

Description

En esta lección, los estudiantes aprenderán cómo y cuándo usar un while loop. El código repetitivo se puede evitar utilizando un while loop. Estos bucles se usan para repetir un conjunto de declaraciones hasta que una condición se cumpla. Esta lección corresponde al tema 4.1 de Programación Avanzada de Ciencias Computacionales.

Objective

Students will be able to:

  • Represent iterative processes using a while loop
  • Execute a return or break statement inside an iteration statement to halt the loop and exit the method or constructor
  • Develop an algorithm
  • Identify if an integer is or is not evenly divisible by another integer
  • Determine a minimum or maximum value
  • Compute a sum, average, or mode
Description

En esta lección. Los estudiantes aprenderán a usar for loops en sus programas. El for loop permite a los estudiantes repetir una parte específica del código un cierto número de veces.

for(int i = 0; i < 4; i++)
{
        // El código se repetirá cuatro veces
}

Esta lección corresponde al tema 4.2 de Programación Avanzada de Ciencias Computacionales.

Objective

Students will be able to:

  • Represent iterative processes using a for loop
Description

En esta lección, los estudiantes aprenderán cómo desarrollar algoritmos usando Strings. Los estudiantes recorrerán Strings usando un comando For loop y el comado print.length() (imprimir longitud).

for(int i = 0; i < string.length(); i++)
{
        String character = string.substring(i, i+1);
}

Esta lección corresponde al tema 4.3 de Programación Avanzada de Ciencias Computacionales.

Objective

Students will be able to:

  • Develop an algorithm using Strings
  • Find if one or more substrings has a particular property
  • Determine the number of substrings that meet specific criteria
  • Create a new string with the characters reversed
Description

En esta lección, los estudiantes aprenderán sobre bucles anidados (nested loops). Los bucles anidados son while loops que se colocan dentro de otros bucles para crear programas más complejos. Cuando un bucle está anidado dentro de otro bucle, el bucle interno debe completar todas sus iteraciones antes de que el bucle exterior pueda continuar. Esta lección corresponde al tema 4.4 de Programación Avanzada de Ciencias Computacionales.

Objective

Students will be able to:

  • Represent nested iterative processes

Enduring Understandings

This lesson builds toward the following Enduring Understandings (EUs) and Learning Objectives (LOs). Students should understand that…

  • EU Con-2 Programmers incorporate iteration and selection into code as a way of providing instructions for the computer to process each of the many possible input values. (LO’s 2.C, 2.D, 2.E, 2.F, 2.G)
Description

En esta lección, los estudiantes examinarán el concepto de análisis de pseudocódigo. Esto incluye la exactitud, la eficiencia y la capacidad de ser entendido de un algoritmo. Esta lección corresponde al tema 4.5 de Programación Avanzada de Ciencias Computacionales.

Objective

Students will be able to:

  • Compute statement execution counts of iterative statements
  • Compute informal run-time comparison of iterative statements