{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture12bw

lecture12bw - Lecture 12 Pseudocode Flowchart UML EXAMPLE...

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

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)

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

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
Ask a homework question - tutors are online