-------------------------------------------------
Week Four
Structured Programming, Part II
* Demonstrate the iteration control structure. * Design complex program algorithms using the three basic control structures. ------------------------------------------------- Course Assignments 1. CheckPoint: Iteration Control Structure
DUE: Friday (Day 5)
* Design a program that models the worm’s behavior in the following scenario:
A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple by its own body length until the worm is close enough to enter the apple. The worm can enter the apple when it is within a body length of the apple.
2. Assignment: …show more content…
Currency Conversion Design
DUE: Sunday (Day 7) * Complete the hierarchy chart in Appendix H and the flowcharts in Appendix I, based on the Currency Conversion requirements and Input-Process-Output table you generated in Week Two.
* Develop the pseudocode for the program design.
* Post the assignment as an attachment.
-------------------------------------------------
Weekly Reminders
Discussion Questions
Discussion question responses will not count towards the class participation requirement and will be evaluated separately.
Only posts in the Main classroom forum will count towards your class participation score.
Summary of Week 4 Deliverables Assignment | Location | Due | Checkpoint:
Iteration Control Structure | ASSIGNMENT | FRIDAY | Assignment:
Currency Conversion Design | ASSIGNMENT | SUNDAY |
-------------------------------------------------
Week Five
Complex Data Structures
* Explain the need for composite complex data structures. * Generate the program design and pseudocode for a simple array. ------------------------------------------------- Course Assignments 1. Readings Read Ch. 5 and 6 of Extended Prelude to Programming: Concepts and Design.
Read this week’s Electronic Reserve Readings. 2. Discussion Questions *
DUE: Tuesday (Day 2)
Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program? For what kind of work project would you want to use this type of program? *
DUE: Thursday (Day 4)
Describe a programming project or situation in the workplace that would lend itself to array usage.
* 3. CheckPoint: Simple Array Process
DUE: Friday (Day 5)
* Complete Ch. 6, Exercise 3, on p. 198. You are required to generate only the pseudocode, as described in the Week Two CheckPoint. No charting is required, but you may have to incorporate the bubble sort algorithm on pp. 172–174 to determine the number of salaries above and below the mean.
-------------------------------------------------
Weekly Reminders
Discussion Questions
Discussion question responses will not count towards the class participation requirement and will be evaluated separately.
Only posts in the Main classroom forum will count towards your class participation score.
Summary of Week 5 Deliverables Assignment | Location | Due | CheckPoint:
Simple Array Process | ASSIGNMENT | FRIDAY | Discussion Questions | MAIN FORUM | TUESDAY/THURSDAY | Participation | MAIN FORUM | TWICE a day on each of 4 DAYS |
-------------------------------------------------
Week Six
Verification and Validation
* Recognize how requirements and desk review design are used to verify algorithms.
* Create test data to validate that algorithms handle user input data correctly. ------------------------------------------------- Course Assignments 1. CheckPoint: Algorithm Verification
DUE: Friday (Day 5)
* Answer the following questions about the information in Appendix J:
* What will be printed if the input is 0? * What will be printed if the input is 100? * What will be printed if the input is 51? * What will be printed if the user enters “Wingding”? * Is this design robust? If so, explain why. If not, explain what you can do to make it robust. * How many levels of nesting are there in this design? * Provide a set of values that will test the normal operation of this program segment. Defend your choices. * Provide a set of test values that will cause each of the branches to be …show more content…
executed. * Provide a set of test values that test the abnormal operation of this program segment.
2. Assignment: Currency Conversion Test Procedure
DUE: Sunday (Day 7)
* Generate a set of test inputs and expected results for the Currency Conversion program. * Post the test procedure as an attachment.
-------------------------------------------------
Weekly Reminders
Discussion Questions
Discussion question responses will not count towards the class participation requirement and will be evaluated separately.
Only posts in the Main classroom forum will count towards your class participation score.
Summary of Week 6 Deliverables Assignment | Location | Due | Checkpoint:
Algorithm Verification | ASSIGNMENT | FRIDAY | Assignment:
Currency Conversion Test Procedures | ASSIGNMENT | SUNDAY |
-------------------------------------------------
Week Seven
File and Database Processing
* Determine when a sequential file is more useful than a database. * Differentiate between a flat file and a relational database. * Design a suitable program to solve given programming problems using the top-down modular approach and pseudocode. ------------------------------------------------- Course Assignments 1. Readings Read Ch. 8 of Extended Prelude to Programming: Concepts and Design.
Read this week’s Electronic Reserve Readings. 2. Discussion Questions *
DUE: Tuesday (Day 2)
Under what circumstances would you use a sequential file over a database? Describe these circumstances. When would a database be more beneficial than a sequential file? Is it possible for the two types of permanent storage to be used interchangeably? Explain your answers. *
DUE: Wednesday (Day 3)
What are some of the key differences between a flat file and relational database? Which of the two storage methods do you think is most useful in a real-world application?
* 3. CheckPoint: Chapter 5 Programming Problems
DUE: Friday (Day 5)
* Complete Programming Problems 1 and 2. * Provide the analysis and pseudocode only (no diagrams are required). 4. Exercise: Peer Reviews of Currency Conversion Test Procedure
DUE: Friday (Day 5) * Perform peer/sample reviews of Currency Conversion Test Procedures, which your instructor will place in The Main Forum on Day 3. * Complete the Appendix K form for each of the peer/sample reviews. * Submit the completed Appendix K forms to the assignment as an attachment.
(do not respond in the main forum)
-------------------------------------------------
Weekly Reminders
Discussion Questions
Discussion question responses will not count towards the class participation requirement and will be evaluated separately.
Only posts in the Main classroom forum will count towards your class participation score.
Summary of Week 7 Deliverables Assignment | Location | Due | CheckPoint:
Chapter 5 Programming Problems | ASSIGNMENT | FRIDAY | Exercise:
Peer Reviews (2) of Currency Conversion Test Procedures | ASSIGNMENT | FRIDAY | Discussion Questions | MAIN FORUM | TUESDAY/THURSDAY | Participation | MAIN FORUM | TWICE a day on each of 4 DAYS |
-------------------------------------------------
Week Eight
Object-Oriented Design and Programming
* Identify both the top-level objects and the GUI interfaces of an electronic product. * Describe object-oriented, event-driven programming. * Describe a simple, object-oriented program. * Recognize the difference between object-oriented and structured program design. ------------------------------------------------- Course Assignments 1. CheckPoint: Interfaces and Communication Messages
DUE: Wednesday (Day 3)
Understanding object-oriented methodologies is often difficult. You already understand that object-oriented analysis and design emulates the way human beings tend to think and conceptualize problems in the everyday world. With a little practice, object-oriented programming will become second nature to you.
As an example, consider a typical house in which there are several bedrooms, a kitchen, and a laundry room—each with a distinct function. You sleep in the bedroom, you wash clothes in the laundry room, and you cook in the kitchen. Each room encapsulates all the items needed to complete the necessary tasks.
You do not have an oven in the laundry room or a washing machine in the kitchen. However, when you do the laundry, you do not just add clothes to the washer and wait in the laundry room; once the machine has started, you may go into the kitchen and start cooking dinner. But how do you know when to go back to check the laundry? When the washer buzzer sounds, a message is sent to alert you to go back into the laundry room to put in a new load. While you are folding clothes in the laundry room, the oven timer may ring to inform you that the meat loaf is done. What you have is a set of well-defined components: Each provides a single service to communicate with the other components using simple messages when something needs to be done.
If you consider a kitchen, you see it is also composed of several, smaller components, including the oven, refrigerator, and microwave. Top-level objects are composed of smaller components that do the actual work. This perspective is a very natural way of looking at our world, and one with which we are all familiar. We do the same thing in object-oriented programming:
* Identify components that perform a distinct service * Encapsulate all the items in the component necessary to get the job done * Identify the messages that need to be provided to the other components Although the details can be quite complex, these details are the basic principles of object-oriented programming.
* Consider the microwave oven in your kitchen, using the object-oriented thinking described
above.
* Create a table with the following four column headings: Top-Level Objects, Communicates With, Incoming Messages, and Outgoing Messages.
* Identity the top-level objects of the microwave.
* Explain some of the graphical user interfaces (GUIs) and communications messages that occur during the operation of a microwave.
* Describe some of the advantages of having a componentized system. For example, what happens if the microwave breaks? * Post your completed CheckPoint as an attachment. 2. CheckPoint: Object-Oriented Data and Processes
DUE: Friday (Day 5) * Identify a task you perform regularly, such as cooking, mowing the lawn, or driving a car. * Write a short, structured design (pseudocode only) that accomplishes this task. * Think about this task in an object-oriented way, and identify the objects involved in the task. * Identify how you can encapsulate the data and processes you identified into an object-oriented design. * Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why?
3. Assignment: Object-Oriented Design
DUE: Sunday (Day 7)
* Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection.
* Identify each of the classes, associated data, and operations for the classes.
* Generate the pseudocode for each of the classes as demonstrated on p. 251.
* Draw a GUI that will create the objects and provide access to each object’s processing methods. Note. Use the drawing tool in Microsoft® Word or in any other applicable drawing tool to complete this part of the assignment.