lecture12bw - Lecture 12 Pseudocode Flowchart UML EXAMPLE...

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

View Full Document Right Arrow Icon
Lecture 12 Pseudocode Textbook: Flowchart p. 169 UML Unified Modeling Language E7, Fall 2008, M. Frenklach EXAMPLE PROBLEM Read in the list of student records or each student record: For each student record: Determine if student’s grade above or below 60 If it is 60 or above 60 create a message that this student passed the test If it is below 60 create a message that this student failed the test Mail the message ake a copy of the entire list for your records Make a copy of the entire list for your records PSEUDOCODE. For each student record: If student’s grade is greater than or equal to 90 rint “A” print A else If student’s grade is greater than or equal to 80 print “B” else If student’s grade is greater than or equal to 70 print “C” else student’s grade is greater than or equal to 60 If student s grade is greater than or equal to 60 print “D” else print “F” MATLAB IMPLEMENTATION function numDays = numofdays(months) % n = NUMOFDAYS(cellArrayOfMonths) numDays = []; for i = 1:length(months)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/01/2009 for the course ENGLISH 7 taught by Professor Sengupta during the Spring '09 term at University of California, Berkeley.

Page1 / 2

lecture12bw - Lecture 12 Pseudocode Flowchart UML EXAMPLE...

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

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