• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 2 páginas
Resumen

Summary Programming Logic and Design Ch 3

Document preview thumbnail
Vista previa 1 fuera de 2 páginas

This document provides an in depth and thorough summary of chapter 3 of Programming Logic and Design. It is ready for exam and tests. Everything is laid out as it is in the textbook. All needed information is provided in short. It is written in an easy to study format and reads easy. I got distinctions in exams and tests.

Vista previa del contenido

Chapter 3
Describe the disadvantages of unstructured spaghetti code
 Spaghetti code - Logically twisted program statement, complicated mess
 Programs work, but are difficult to read and maintain, confusing and prone to error
 Unstructured programs - do not follow rules of structured programs
 Structured programs - do follow the rules of structured programs

Describe the three basic structures
 Structure - Basic unit of programming logic
 Any program can be constructed using one or more of these three structures
 Sequence structure
 Perform actions in order
 No branching or skipping any task
 Selection structure (decision structure)
 Ask a question, takes one of two actions (only true or false)
 Also, decision structure or selection structure
 Boolean expression- decision statement (if)
 Dual-alternative ifs or single-alternative ifs
 contains two alternatives (if-then-else endif)
 contains only one alternative (if-then endif) else not required (if it rains then take an
umbrella)
 null case - situation where nothing is done (if it does not rain, do nothing)
 end structure statement- endif


 Loop structure
 Repeat actions while a condition remains true
 Loop body- actions taken within loop
 also called repetition or iteration
 condition tested first in most common form of loop
 (while...do) or (while) loop


 Combining structures
 Structures can be combined in an infinite number of ways
 Any individual task or step in a structure can be replaced by a structure
 Stacking structures - attaching structures end-to-end
 End structure statement- indicates end of structure (endif) (endwhile)
 Nesting structure - placing one structure within another, indent the nested structure's
statements
 Block - a group of statements that execute as a single unit

Libro relacionado
 image
Editorial: 2023 ISBN: 9780357880876 Edición: Desconocido

Información del documento

¿Un libro?
No
¿Qué capítulos están resumidos?
3
Subido en
15 de noviembre de 2025
Número de páginas
2
Escrito en
2025/2026
Tipo
Resumen
$3.75

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
tanjanel1303
5.0
(2)
Vendido
11
Seguidores
2
Artículos
47
Última venta
1 mes hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes