π Lecture 20 β Classifying, Cause and Effect Relationship
π Overview: This lecture focuses on two key academic skills: understanding the structured process of problem-solving in computing and mastering the language of classification and cause-effect relationships in English. It explains how programmers systematically solve problems through a defined sequence of steps, then teaches how to express logical relationships between ideasβcrucial for technical writing and comprehension.
ποΈ Topics Covered
The lecture covers six detailed steps of problem-solving in programming: defining the problem, formulating an algorithm/flowchart, translating into a computer program, keypunching, testing, and running the complete job. It then explores cause-and-effect relationships in texts with linguistic markers, followed by a comprehensive analysis of classifying languageβincluding expressions for moving from general to specific and from specific to generalβwith examples related to computer hardware components like the CPU, memory, and input/output devices.
π Lecture Summary
Steps in Problem Solving
The lecture explains that a computer is merely a machine that executes procedures given by a programmer, so the programmer is the true problem-solver. Problem-solving requires following a specific, logical sequence of steps. The first and fundamental step is to define the problem clearly. The programmer must determine generally how to approach the solution, asking "Do I understand the problem?". Problems vary in difficultyβsome are easy, while others require months of study.
π Definition β Algorithm: A straightforward sequence of steps of instructions used to solve the problem. π Formula/Definition: An algorithm can be described by a flowchart, which is stated either as a sequence of precise sentences or as a block diagram. A block diagram is a diagrammatic representation showing the sequence of events, with relationships shown by connecting arrows. π Example: A block diagram can visually represent if a process must be repeated or if alternative routes can be taken, using arrows to connect different decision points.
The third step is to translate the algorithm/flowchart into a computer program. The programmer writes detailed instructions for the computer using one of many computer languages, following the exact sequence of the flowchart. Programs are usually written on coding sheets, which have a specific format drawn on them.
In step four, the programmer must keypunch the program (or give coding sheets to a keypunch operator). The program is either punched on cards or entered into the computer at a terminal with a visual display unit.
Step five involves testing the program. The computer operator puts the deck of cards in the card reader and presses 'read' to transfer information to the computer's memory. A printout then shows if the program works or if it has errors (called bugs). If using a terminal, with a few commands the program can be stored in memory and a printout obtained.
The final step is to add the data to the program and complete the run. The computer performs the necessary calculations, following instructions to the minutest details. The lecture concludes that the computer is a robotβit doesn't think, but simply does what it is told.
π‘ Why this matters: Understanding these steps distinguishes between the machine's mechanical execution and the human's creative problem-solving, emphasizing that errors originate from programmers, not computers.
Understanding the Passage (Comprehension Check)
Key true/false corrections from the exercises clarify critical points: The computer does not solve problemsβthe programmer does (False). All problems are not equally difficult (False). An algorithm is indeed a sequence of instructions (True). The most important part of problem-solving is formulating the algorithm, not just defining the problem (False). Block diagrams do show relationships via arrows (False). Coding sheets are used for writing programs (True). Punched cards are not the only way to transfer programs (Falseβterminals also work). Without data, the computer cannot perform calculations (True). It is good practice to test the program before adding data (True). A computer is not capable of thinking (False).
Focus On: Cause and Effect/Result
The lecture identifies cause-effect/result markers in sentences from the problem-solving text. In the sentence "If the programmer is using a terminal instead of cards to enter his instructions, he can, with the aid of a few commands, store the program in the memory of the computer and get a printout," the cause (the condition/if-clause) is the programmer using a terminal; the effect/result is the ability to store the program and get a printout. The marker "If" signals this relationship.
In "The computer will follow the instructions in the program to the minutest details. Therefore, one can say that the computer is a robot," the cause is the computer following instructions exactly; the effect/result is the conclusion that the computer is a robot. The marker "Therefore" signals this logical conclusion.
Classifying
Classification is defined as separating objects from one another. The simplest classification divides things into groups that share characteristics and those that do not (e.g., fish and birds are not in the same class as trees). Classification usually goes from general to specific and is essential for making sense of our surroundings. It is a process of bringing order out of confusion by breaking down a general topic into related parts logically. Outlining is closely related to classification because it organizes information logically.
1. From General to Specific: When focusing on a high-level category and describing its parts, the following expressions are used (usually with singular main verbs):
- is / is made up of / can be divided into / is composed of / comprises / has / includes / consists of
π Example: The CPU is divided into three parts: the control unit, the arithmetic-logical unit, and memory. (Also correct: The CPU has/includes/is made up of/is composed of/consists of three parts...)
2. From Specific to General: When describing what smaller components make when put together, the following expressions are used (with plural verbs):
- are...of / constitute / make up / form / may be / can be
π Example: The control unit, the arithmetic-logical unit, and memory are the three parts of the CPU. (Also correct: ...are the three parts that make up/form/constitute the CPU. / ...together are classified as the CPU.)
π Important Note: The active/passive pairs "made up of" and "make up" are not interchangeable. "The CPU is made up of the control unit..." (general to specific) is correct. "The CPU makes up the control unit..." is incorrect. "The control unit...are made up of the CPU" is also incorrect.
Computer System Classification Exercise
The lecture applies classification language to computer hardware. A computer has four basic components: input, processor, memory, and output. The CPU consists of two parts: the control unit (directs and controls signals/commands) and the arithmetic-logical unit (ALU) (performs arithmetic and decision-making operations). The control unit is made up of a register, a decoder, a counter, and a clock. The ALU is composed of registers, a binary adder, and circuitry (which compares information and makes decisions).
Internal memory or primary memory refers to storage inside the computer. Secondary memory refers to storage in peripherals. Primary memory can be divided into three types: core, chip, and bubble. Secondary memory may be grouped as sequential (tape) or random access (disk).
Input devices can be a card reader, tape drive, disk drive, or terminalβthey enter information into the computer. After processing, output devices display results on a printer or terminal, or store them on tape/disk for future use.
β Key Takeaways
Mastering the six-step problem-solving sequenceβfrom defining the problem to running the complete jobβis essential for understanding how programmers and computers interact. The most critical concepts to remember are that the programmer, not the computer, solves problems, and that formulating the algorithm is the most important and time-consuming step. For language skills, you must be able to identify cause-effect markers (like "if" and "therefore") in technical texts. Equally vital is distinguishing between general-to-specific classification (using singular verbs with "consists of," "is divided into") and specific-to-general classification (using plural verbs with "make up," "constitute"), paying careful attention to non-interchangeable pairs like "made up of" vs. "make up." Finally, you should be able to classify computer system components (CPU parts, memory types, input/output devices) using these precise linguistic structures.
π§ Quick Revision Questions
- List the six steps of problem-solving in programming and identify which step the lecture describes as "the most important part of problem solving."
- What is the difference between an algorithm and a flowchart? How are they related in the problem-solving process?
- In the classification sentence "The control unit, the arithmetic-logical unit, and memory make up the CPU," is this an example of general-to-specific or specific-to-general classification? What verb form signals this?
- Why is "The CPU makes up the control unit, the arithmetic-logical unit, and memory" incorrect? Explain the grammatical rule violated.
- What are the three types of primary memory mentioned in the lecture, and how does secondary memory differ in classification (sequential vs. random access)?
π Lecture 21 β Reading: Presenting Information Graphically
π Overview: This lecture introduces flowcharting as a fundamental step in programming that visually represents the logical path a computer follows when executing a program. It covers the purpose of flowcharts, the standard symbols used, methods of creating them, and the importance of program documentation. Understanding flowcharts is critical because they reveal a programmer's logical and analytical ability before any code is written.
ποΈ Topics Covered
The lecture explains what flowcharting is and why it matters in programming, describing two ways to create flowcharts (freehand and template-based). It defines five essential flowcharting symbols: the terminal symbol, input/output symbol, processing symbol, decision symbol, and flow arrows. The concept of program documentation is explained alongside the relationship between flowcharts and actual programs. The lecture concludes with comprehensive exercises on main ideas, true/false comprehension, locating information, contextual reference, vocabulary, word forms, content review, cause and effect relationships, and making predictions.
π Lecture Summary
Reading: Presenting Information Graphically
Flowcharting is one of the steps in programming that indicates the logical path the computer will follow in executing a program. It is a drawing very much like a road map. Flowcharting is not restricted to the preparation of programs in a particular language and should be done for each major problem before writing the program is attempted.
If the finished program does not run as it should, the errors are more easily detected on the flowchart than in the maze of words, characters, and numbers that make up the computer program. In order to develop a flowchart successfully, a programmer should be aware of the sequence of steps needed to obtain a correct solution to a problem.
There are two ways of making a flowchart: the freehand version and the neater, more readable version using a template (a sheet of plastic with all the flowcharting symbols cut into it). The freehand version is satisfactory if the flowchart is not intended to be kept as a permanent record.
π Definition β Flowchart: A diagrammatic representation of the sequence of steps needed to solve a problem, showing the logical path the computer will follow in executing a program.
The following symbols should be used for uniformity:
The first and last symbol is the terminal symbol which indicates the beginning or the end of a program. The word 'START' must be inserted inside the figure if it is the beginning of the program and 'STOP' if it is the end of the program.
The figure in the form of a parallelogram is used as an input/output symbol. It indicates that something is either brought to or taken from the program.
The rectangular symbol stands for processing and indicates a place in the program where action is taken.
To indicate that a decision has to be made, the diamond shaped symbol is used. The decision is usually in the form of a question that must be answered by either 'yes' or 'no'.
Finally, the arrows are used to show the flow or direction in which the different actions in the program are performed.
π‘ Why this matters: These symbols are the universal language of flowcharting. Every programmer must memorize them because they allow anyone to read and understand a program's logic regardless of the programming language used.
π Definition β Program Documentation: The detailed written record of a program including a copy of the flowchart, the program itself, and instructions for its use and interpretation.
A flowchart is not a program, but only a step in the preparation of a program, and is used in determining how to set up and write the program. If the problem is not understood, neither the flowchart nor the program can be done correctly. It is possible for two programmers working separately to write programs to solve the same problem and come up with flowcharts and programs that may be altogether different.
After a program has been worked out, it is usually written down and kept with a copy of the flowchart along with detailed instructions for the use and interpretation of the program. This procedure is part of what is referred to as program documentation. If documentation isn't available, it is always possible to work backwards and make a flowchart from an application program.
Flowcharting is one of the first things a student programmer is taught because a flowchart shows how a person thinks about a problem. It is through this that a new programmer reveals his or her logical and analytical ability, which is a must in programming.
π Definition β Template: A sheet of plastic with all the flowcharting symbols cut into it, used for creating neat and readable flowcharts.
Exercises
1. Main Idea: Which statement expresses the main idea of the text? The correct answer is: Flowcharting is a basic step in programming. (It encompasses the entire purpose of the lecture, while the other choices are too narrow or specific.)
2. Understanding the Passage (True/False):
- True β A good flowchart takes into account the steps which are necessary to solve the problem.
- False β Correction: It is possible to draw a flowchart without using a template (using freehand method).
- False β Correction: There is more than one possible flowchart for every problem.
- True β Every programmer must learn flowcharting and realize its importance.
- False β Correction: The method of flowcharting does not depend on the programming language being used.
- True β Flowcharts show the logic one has to follow to solve a problem.
- True β Documenting a program is essential in explaining what the program is supposed to do.
- False β Correction: If the flowchart is correct, the program will not necessarily work (errors can still exist in the code).
- True β Each symbol in flowcharting has a specific meaning.
- False β Correction: Flowcharts can show both processes and decisions.
3. Locating Information: The answers with paragraph references indicate where in the text the information is found.
4. Contextual Reference:
- "It" (line 10) refers to: the program
- "The former version" (line 16) refers to: the freehand version
- "This" (line 18) refers to: graphic jotting down of outlines
- "The latter method" (line 20) refers to: the neater, more readable version using a template
- "It" (line 21) refers to: the sheet of plastic used as a template
- "Which" (line 23) refers to: the terminal symbol
- "It" (line 27) refers to: the parallelogram figure (input/output symbol)
- "That" (line 40) refers to: flowcharts and programs
- "The original one" (line 48) refers to: the flowchart
- "Which" (line 53) refers to: logical and analytical ability
5. Understanding Words (Synonyms):
- Route (line 6) β path
- Try (line 9) β attempt
- Answer (line 14) β solution
- Put in (line 25) β inserted
- Show (line 52) β reveals
Antonyms: 6. Unlimited (line 7) β restricted 7. Undiscovered (line 11) β detected 8. Temporary (line 19) β permanent 9. Inaccessible (line 45) β available 10. Illogical (line 53) β logical
6. Word Forms:
- a. involving, b. involves, c. involvement
- a. correct, b. correct, c. corrected
- a. Processing, b. process, c. processed
- a. Perform, b. performed, c. performance
- a. Documenting, b. documentation, c. documented
7a. Content Review (Glossary):
- The information describing what a program can do and what the results mean is referred to as documentation.
- It is advisable to test the program without data before executing it.
- A piece of plastic with different shapes used for flowcharting is called a template.
- Data used as input must be indicated with a parallelogram.
- The symbol which marks the beginning and end of a program is called the terminal symbol.
7b. Content Review (Flowchart Connectives): In calculating an employee's salary, a computer must go through a number of operations in a logical manner. First it must read the number of hours worked and the rate of pay for each hour worked. Next it must calculate the gross salary; that is multiply the hours worked by the rate of pay for each hour worked. Before doing these two operations it must find out whether the employee has worked overtime or not. (Note: The paragraph continues with additional connectives as per the original exercise.)
8. Focus Review (Cause and Effect):
- Cause: If the finished program does not run as it should β Effect: The errors are more easily detected on the flowchart
- Cause: If the flowchart is not intended to be kept as a permanent record β Effect: The freehand version is quite satisfactory
- Cause: If a permanent, neater and more readable flowchart is needed β Effect: The latter method (template) is used
- Cause: If it is the beginning of the program β Effect: The word 'START' must be inserted inside the terminal symbol
- Cause: If it is the end of the program β Effect: 'STOP' must be inserted inside the terminal symbol
- Cause: If the problem is not understood β Effect: Neither the flowchart nor the program can be done correctly
- Cause: If documentation isn't available β Effect: It is always possible to work backwards and make a flowchart from an application program
- Cause: Because a flowchart shows how a person thinks about a problem β Effect: Flowcharting is one of the first things a student programmer is taught
Making Predictions:
Predictions are statements about a particular subject related to a prior condition being fulfilled. They are special kinds of inference in which we tell in advance what we think will happen in the future. Predictions can be expressed at different levels of certainty:
- Certainly (100%): Will (definitely, certainly), Certain, sure, Without a doubt
- Probability (75%-90%): Probable/probably (75%), Likely (75%), Most/highly probable/likely (90%)
- Possibility: May (not), might (not), can, could, possible, possibly, perhaps
- Improbability (25%-10%): Improbable, unlikely (25%), Doubtful/questionable (25%), Most/highly improbable/unlikely (10%)
- Impossibility (0%): Cannot, could not, not possible, impossible
In a condition-prediction relationship, the statement of condition is preceded by 'if'. The verb tenses are important: the statement of condition is made in the present and relates to events of the prediction which will happen in the future.
Exercise (Identifying Condition and Prediction):
- Condition: if transport technology had developed as rapidly as computer technology β Prediction: a trip across the Atlantic Ocean today would take a few seconds
- Condition: unless some means of speeding up the analyses of census data were found β Prediction: it would take more than ten years to complete the job
- Condition: If the hammer in train printers hits a little early or late β Prediction: the character will appear slightly to the right of its proper position
- Condition: if it weren't for microminiaturization β Prediction: Mainframes would still be occupying a lot of space
- Condition: If computer technology continues growing at the rate it has β Prediction: bubble memory will soon replace the chip
β Key Takeaways
The most critical concepts from this lecture are the standard flowcharting symbols and their specific meanings: the terminal symbol (oval) for START/STOP, the parallelogram for input/output operations, the rectangle for processing, the diamond for decisions requiring yes/no answers, and arrows for showing flow direction. Flowcharting is a universal, language-independent step in programming that reveals a programmer's logical and analytical thinking. Two methods exist for creating flowcharts (freehand for temporary use, template for permanent records), and proper program documentation requires keeping the flowchart with the completed program and usage instructions. Flowcharts and condition-prediction relationships are closely linked, as decisions in flowcharts (diamonds) represent conditions whose outcomes predict what will happen next in the program.
π§ Quick Revision Questions
- What are the five standard flowcharting symbols, and what does each represent?
- What are the two methods of creating a flowchart, and when would you use each one?
- Why is flowcharting considered a language-independent step in programming?
- What is program documentation, and why is it important for understanding a program?
- In a condition-prediction relationship, what are the five levels of certainty and what expressions are used for each level?
π Lecture 22 β THE COMPOUND - COMPLEX Writing: Sentence Types
π Overview: This lecture shifts focus from reading comprehension to writing skills, introducing the fundamental rules of grammar, rhetoric, and composition. It explains how to classify sentences both by purpose/meaning and by structure, providing detailed instruction on simple, compound, complex, and compound-complex sentences. Mastering these sentence types is essential for producing clear, effective, and grammatically correct writing.
ποΈ Topics Covered
This lecture covers the three essential components of good writing: grammar (parts of speech, syntax, and special forms like participles, gerunds, infinitives, and relative adverbs), rhetoric (word choice and arrangement), and composition (structuring words into sentences, paragraphs, and longer units). It then provides an in-depth classification of sentences by purpose (declarative, interrogative, imperative, exclamatory) and by structure (simple, compound, complex, compound-complex), including definitions, examples, joining/dependent words, punctuation rules, and practice exercises for each type.
π Lecture Summary
The Compound - Complex Writing: Sentence Types
Writing is a learned skill that requires knowledge of three things: i) Rules of grammar-syntax, ii) Rhetoric (the choice of words and their effective arrangement), and iii) Composition (putting parts together to form a whole). Good writing depends on more than grammatical correctness; effective sentences require control over different sentence patterns. A sentence is a group of words containing a subject and a verb that expresses a complete thought.
π Definition β Grammar: deals with parts of speech, variations in word forms when used in different constructions, and the relationship between words within a sentence (syntax). π Definition β Rhetoric: deals with the choice of words and their effective arrangement. π Definition β Composition: the 'putting together' of parts to form a whole: words into sentences, sentences into paragraphs, and paragraphs into longer units.
π‘ Why this matters: Understanding the difference between grammar, rhetoric, and composition helps you see that writing is not just about being grammatically correctβit's about arranging words effectively for clear communication.
In addition to the 8 parts of speech (Noun, Verb, Pronoun, Adjective, Adverb, Preposition, Conjunction, Interjection), there are 4 kinds of words that combine two parts of speech into one:
π Definition β Participle: a verb and adjective combined. e.g. The retired headmaster distributed the prizes. π Definition β Gerund: a verb and noun combined. e.g. She is thinking of leaving her job. π Definition β Infinitive: a verb and noun combined. e.g. She wishes to deposit the money. π Definition β Relative Adverb: partly an adverb and partly a conjunction. e.g. I was relieved when the program ended.
Sentences can be classified according to their purpose/meaning:
- Declarative: To make a statement, assertion or declaration. e.g. He is a teacher.
- Interrogative: To ask a question. e.g. What day is it?
- Imperative: To issue commands. e.g. Go in.
- Exclamatory: To utter exclamations. e.g. If only it would stop raining!
- Greetings/expressions: e.g. Good morning. Hello.
The Simple Sentence
Any sentence, however long or short, that has only one subject-verb combination and expresses a complete thought is a simple sentence. It consists of one subject and one verb, though it may have more than one subject or more than one verb, or even several subjects and verbs.
Examples:
- Sparks fly upwards. (one subject: Sparks, one verb: fly)
- The tired, dirty and footsore tourists straggled wearily across the bridge, up the hill, and finally into the rest house. (one subject: tourists, one verb: straggled, despite 20 words)
- More than one subject: Lamb and Hazlitt wrote charming essays.
- More than one verb: The children splashed and squealed in the stream.
- Several subjects and verbs: Every Saturday night, Shama, Salman and Minko go to the movies, eat at a Chinese restaurant and play cards at the gymkhana club. (3 subjects & 3 verbs)
π Example: "The tired, dirty and footsore tourists, straggled wearily across the bridge, up the hill, and finally into the rest house." β Even though this sentence has 20 words, it has only one subject (tourists) and one finite verb (straggled), so it is classified as a simple sentence.
The Compound Sentence
A compound sentence is made up of two or more complete thoughts (independent clauses) joined by a comma and a joining word (coordinating conjunction). The joining words are: and (in addition), but (however), so (as a result), for (because), yet (however), or (shows alternatives), nor (shows a second negative statement).
Examples:
- Saima wants biryani for dinner, but she forgot to buy meat.
- His life was not an easy one, nor was it eventful.
- The driver failed to signal, and he went through a stop sign.
- I was very tired, but I still had two hours of assigned reading.
- The meal was not well cooked, so we sent it back to the kitchen.
- She works at home, for she wants to be with her two young children.
- My friend loves sewing, yet she decided to take up science in college.
- You can ride with us to the stadium, or you can go with someone else.
- Saad does not eat meat, nor does he eat fish.
The Complex Sentence
A complex sentence includes one independent clause (statement that can stand alone) and at least one dependent clause (statement that cannot stand alone). Dependent clauses begin with dependent words (also called subordinating conjunctions) and contain a subject and a verb.
Dependent clauses can function as:
- Adverbial: When the century began, there were many coffee houses in the city.
- Adjectival: Men who wanted to meet their friends visited these shops.
- Noun: We know that these gatherings led eventually to the formation of a new political party.
π Definition β Dependent Words: words such as although, as, even if, after, because, before, when, while, since, until, wherever, that introduce dependent statements. Also known as subordinating conjunctions.
Punctuation rule: When a dependent clause comes at the beginning of a sentence, use a comma after it. When it comes at the end, no comma is needed.
- As the mad man made demands on the phone, police surrounded the building. (comma needed)
- Ghazala will not sell her old gramophone even if she is offered a large sum of money. (no comma)
Other dependent words include: after, although, as, because, before, even, even though, if, since, though, unless, until, when, whenever, where, wherever, whether, while.
π Example: "When the century began, there were many coffee houses in the city." β "When the century began" is a dependent clause (cannot stand alone), while "there were many coffee houses in the city" is an independent clause (can stand alone as a simple sentence).
Compound - Complex Sentence
A compound-complex sentence consists of a compound sentence (two or more independent clauses) and at least one dependent clause.
Examples:
- The Rawal Lake was impressive, but Shahid thought that Lake Saiful Malook was really more beautiful than any other lake he had ever seen.
- The crowd of labourers had been standing patiently in the water for three hours, and a great shout of relief arose when the rescuers finally appeared.
π Example: "When Bobby saw a rainbow he ran to get his camera and the rainbow disappeared." β This sentence has one dependent clause ("When Bobby saw a rainbow") and two independent clauses ("he ran to get his camera" / "the rainbow disappeared") joined by "and," making it compound-complex.
β Key Takeaways
- Sentences are classified by structure into four basic types: simple (one independent clause), compound (two or more independent clauses joined by a comma and coordinating conjunction), complex (one independent clause and one or more dependent clauses), and compound-complex (two or more independent clauses and at least one dependent clause).
- A simple sentence can be long but still have only one subject-verb combination; it may also have multiple subjects and/or multiple verbs, but only one finite verb expresses the main action.
- Compound sentences use joining words (and, but, so, for, yet, or, nor) with a comma; complex sentences use dependent words/subordinating conjunctions (although, because, when, while, etc.) and require a comma only when the dependent clause comes first.
- Good writing requires knowledge of grammar (rules of syntax), rhetoric (word choice and arrangement), and composition (structure from words to paragraphs), and mastery of different sentence patterns is essential for effective written communication.
- The ability to recognize and construct all four sentence types is fundamental for writing clear, varied, and sophisticated prose in academic, professional, and personal contexts.
π§ Quick Revision Questions
- What are the three essential components of good writing mentioned in this lecture?
- How can you distinguish a simple sentence from a compound sentence? Provide an example of each.
- What is the difference between a dependent clause and an independent clause in a complex sentence?
- List four dependent words (subordinating conjunctions) and show how they create complex sentences.
- How does a compound-complex sentence differ from a compound sentence? Write an original example of a compound-complex sentence.