Chapter 1 Assignment Page
The Program Development Cycle (PDC) steps are the steps that are followed to design and develop programs. They are performed during the fourth phase (Develop the New System) of the System Development Life Cycle. This portion of the course will focus on step 1 and step 2 of the Program Development Cycle. Although the textbook covers the System Development Life Cycle, covering the topic in the course may confuse the focus of the course. The discussion of the PDC sets the tone for the entire course. You need to realize that most of time in the Program Development Cycle should be spent designing the program. The more time they spend designing, if the design is correct, the less amount of time they will spend debugging the program. This can be compared to building a house without a blueprint.
Steps of the Program Development Cycle
Step 2: Develop the Program Logic - the actual processing steps within each program in the system are developed. This step is the focus of the book. There are many tools that can be used to design a program. This book focuses on flowcharting and pseudocode. Program flowcharts graphically depict the problem-solving logic using standard symbols. Psuedocode consists of English-language statements that describe the processing steps of a program in paragraph form. NOTE: Normally you do not need to design the program twice. Both design tools will give the same result. In the beginning chapters of the textbook, both design tools will be used to teach a graphical and a nongraphical design tool. Flowcharting is a preferred design tool for visual learners. Flowcharts give you a graphical overview of the entire program. Following a flowchart is similar to following a map to get from one location to another. Pseudocode is a design tool that is preferred by some people because it closely resembles a programming language. It is easier to transfer a pseudocode design to a language than to transfer a flowchart to a language. When designing programs, you should design each problem using both design tools. You should use both design tools for the first 5 chapters and then choose a design tool. During the last portion of the course, you will be required to solve a problem using one design tool once you have selected a design tool. If you choose flowcharting, you may need to convert the flowchart to pseudocode before you write the program. The textbook mentions the hierarchy chart, this topic will be discussed in detail in the chapter on modules.
Step 3: Write the program – After the program logic has been developed, it must be expressed in a programming-language form. The selection of the language depends on the type of application and on the software development tools available. In the past, most business applications were written in COBOL, since it is oriented to business use. Now, more structured languages such as Pascal and C are more frequently used because they contain language elements that closely parallel the structures used in program design. NOTE: The programming language COBOL has been very prevalent in the news lately because of the Year 2000 problem. There are hundreds of programming languages. Some of the languages disappeared as quickly as they appeared on the market because of the lack of support by business and industry.
Computer programming languages are either procedure-oriented (procedural) or nonprocedural. With procedure-oriented languages, a programmer must specify the exact steps the computer needs to follow to solve a problem. Nonprocedural languages include most fourth generation languages. With fourth generation languages (4GLs), a programmer defines what needs to be done and not how to do it.
With the increased use of applications containing graphical user interfaces, visual languages such as Visual BASIC and Visual C++ have become popular. These languages support the concept of event-driven programming. An event-driven program is one that is designed to respond to actions that occur when the program is executing. For example when a user clicks on the OK button, a click even is initiated.
The widespread use to the Internet has been accompanied by rapid growth in the use of a relatively new programming language known as Java.
Step 4: Test and Debug the Program – Once the program is written using a programming language, the program must be typed in the computer system using software called a compiler. The compiler is a program that converts the programming language statements to binary code and checks them against the syntax of the language. Syntax errors occur when the programmer does not follow the rules of the language he or she is using. For example, many statements in C must end with semicolons. If the programmer forgets to enter a semicolon, he or she makes a syntax error. Such errors are easy to fix. You need to use a reference manual for the language and look up the correct syntax for the statement and make the necessary corrections. A logic error occurs when a step in the program logic is incorrect. For example, an averaging program to average the sum of 5 numbers will produce the wrong answer, if the sum of the numbers is divided by 6. Such errors are not always easy to detect. The programmer may need to go back and review the logic created in the second step of the program development cycle in order to locate the error. The program must be tested using sample data that covers all possible conditions. NOTE: Syntax errors are easy to correct and usually are caused by typing errors. However, logic errors are more difficult to correct because not all people think logically. It is usually easier for another person to find your logic error. Other people will be far more critical of your programs. You may spend days trying to find an error in a program and giving it to someone else may take a few minutes to find the error.
Step 5: Complete the Program Documentation – Documentation is an ongoing process that occurs throughout the program development cycle. A technical reference needs to be created for programmers who may need to modify one or more of the programs. User guides need to be created to tell users how to use and operate the system. Documentation can either be in printed form or on-line. This is the type of documentation you see on the screen when you type help to aid you in using a computer system.
Simple Sequence – represents the computer’s ability to execute instructions in a step-by-step, sequential manner. A simple sequence example is to give a friend directions to your house. The steps must be followed in a sequential manner, otherwise your friend might get lost.
Exercises: The problems in
Chapter 1 are essay.