lecture14-feb22-1 - Announcements - Lecture 14 Exam 1 back...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Announcements - Lecture 14 • Exam 1 back – High – 100 – Low – 31.5 – Median – 87.5 – Average – 84.5 – MIA’s - 5 A’s – 40% B’s – 35% C’s – 15% D’s – 7% F’s – 3% Curve - ?? Regrades to me! Assignment 3 Program due Thursday Read Chapters 13 for this week Read 11, 12 and 22 for next week Topics for today Design example Matrices Assn 3 Design - IPO Find all primes up to a given max #, and then the palindromes & CPSP’s (order 3) in the list of primes Inputs Outputs Process Y/N to repeat the process Maximum # of the range User prompts for Repeating & max # Table of prime #s Table of palindromes Report of CSPS of order 3 Modular Design easier to build, easier to change, easier to fix . .. modularity —compartmentalization of data and function into a logical sub unit (a relatively independent part) Next Level of Design • Inspect the assignment (and the overall process) looking for potential sub-processes that naturally seem to be an identi±able subtask, e.g., which can be solved separately, or which need to be done more than once. • These would become functions in a modular solution program – Need to discover at least 2, besides main () Functional Block Diagram Symbology 101 Function Name 1 [+ brief description] Data flow Function Name 2 [+ brief description] Data flow Values passed Values returned Functional block diagram Main: Get user inputs, call the sub-functions, report results, and repeat as directed by the user Find and return the list of palindromes in the list of primes array of primes array of palindromes Find and return the list of prime #s up to the max # Max # Array of primes With values Filled in Find and return the list of CPSP’s of order 3 in the list of primes array of primes array of CPSP’s Print out the given array in a 7 column Table format Array to Be printed You do not have to use this design - use your own
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 High Level Algorithm Prompt user and Input a max # for The range of primes start Is it Valid?
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/15/2010 for the course EE 16005 taught by Professor Krasner during the Spring '10 term at University of Texas at Austin.

Page1 / 5

lecture14-feb22-1 - Announcements - Lecture 14 Exam 1 back...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online