This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Declare bag as real Declare bowl as real Sub program feed dogs Set get knife = open bag Put knife back End sub program Sub program feeding Pick up bowl Use bowl to scoop food in bowl Put bowl down End program Function get knife ()as real Set get knife as open dog food bag End function Function get dog bowl ()declare as real Set get bowl = scoop dog food out Set function set dog food down End function End program Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why? A modular approach starts with determining the major tasks as object orientation determines the major tasks. They both make a fair amount of sense to me though I can see how one may be better than the other under certain circumstances and programing needs or just the programmers preferances toward porograms...
View Full Document
- Spring '10