100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4,6 TrustPilot
logo-home
Summary

Summary Programming Logic and Design Ch 3

Rating
-
Sold
-
Pages
2
Uploaded on
15-11-2025
Written in
2025/2026

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.

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Course

Document information

Summarized whole book?
No
Which chapters are summarized?
3
Uploaded on
November 15, 2025
Number of pages
2
Written in
2025/2026
Type
Summary

Subjects

Content preview

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
$3.89
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
tanjanel1303 Rosebank College (Pretoria)
Follow You need to be logged in order to follow users or courses
Sold
10
Member since
1 year
Number of followers
2
Documents
47
Last sold
2 months ago

5.0

2 reviews

5
2
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions