From Idea to Solution for (int i = 0; i < list.length; i++) { select the smallest element in list[i..listSize-1]; swap the smallest with list[i], if necessary; // list[i] is in its correct position. // The next iteration apply on list[i..listSize-1] } list[0] list[1] list[2] list[3] ... list[10] list[0] list[1] list[2] list[3] ... list[10] list[0] list[1] list[2] list[3] ... list[10] list[0] list[1] list[2] list[3] ... list[10] list[0] list[1] list[2] list[3] ... list[10] ... list[0] list[1] list[2] list[3] ... list[10]
24 Functions are not Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods are are are are are are are are are are are are are are are are are are are are are are are are not not not not not not not not not not not not not not not not not not not not not not not not Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods are are are are are are are are are are are are are are are are are are are are are are are are not not not not not not not not not not not not not not not not not not not not not not not not Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods F are are are are are are are are are are are are are are are are are are are are are are are are not not not not not not not not not not not not not not not not not not not not not not not not Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods Methods are are are are are are are are are are are are are are are are are are are are are are are are not not not not not not not not not not not not not not not not not not not not not not not not Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions Functions
Example: Define Dependencies (after 1 of 2) Changed one association to a dependency relationship. (This change discussed on ‘next’ slide) Here, during a registration session, the Registration Controller works with a single Student, the registrant, and one Schedule, the current Schedule for the Student. <> These instances need to be accessed by ICourseCatalogSystem more than one of the Registration Controller’s, (from External System Interfaces) operations so Field Visibility is chosen + getCourseOfferings(forSemester : Semester) : CourseOfferingList from Registration Controller Global visibility to Student and from Registration Controller <> <> Schedule to Schedule. RegistrationController (from University Artifacts) (from Registration) Thus relationships currentSchedule - semester remain + // submit schedule() 0..1+ submit() 0..1 + // save schedule() associations. + // save() + // create schedule with offerings() # any conflicts?() (more ‘permanent’) + // getCourseOfferings(forSemester) : CourseOfferingList Field + // create with offerings() A Student manages his/her own Schedules, so Field visibility is chosen from Student to Schedule – and relation remains aggregation. Again, more ‘permanent.’ 0..* 0..1 registrant - name - address - StudentID : int Field visibility 1 0..1 <> Student (from University Artifacts) see Schedule as parameter below + addSchedule(theSchedule : Schedule, forSemester : Semester) + getSchedule(forSemester : Semester) : Schedule + hasPrerequisites(forCourseOffering : CourseOffering) : boolean # passed(theCourseOffering : CourseOffering) : boolean 35 More 0..* alternateCourses 0..2 0..* primaryCourses 0..4 <> CourseOffering (from University Artifacts) - number : String = "100" - startTime : Time - endTime : Time - days : Enum + addStudent(studentSchedule : Schedule) + removeStudent(studentSchedule : Schedule) + new() + setData() 36 Parameter visibility see Course Offering in Student as parameter
Record Keeping Requirements ADMISSIONS/REGISTRATION DOCUMENTATION A. B. Copy of student’s Application for Admission Copy of high school transcript for Entering Freshman and Transfer Students C. Copies of transcripts for all post secondary education with chosen Curriculum “Transfer Credit” clearly documented. D. Copy of student’s current Curriculum with: (1) All todate credits and transfer credits clearly identified and, (2) If applicable, a prior credit re-assessment if student changes programs with new Curriculum record annotated accordingly. E. Copy of Remedial/Deficiency test scores (if applicable) F. Copies of Student Schedules with “non-Curriculum” course selections, i.e. not VA benefit eligible, clearly identified. G. H. Copies of completed Drop/Withdrawal forms Copies of Plan of Study course substitution approvals (if applicable) I. J. Copy of current academic transcript Copy of student ‘Attendance Records’ for clock-hour programs (if applicable) VA DOCUMENTATION a) (Optional) Copy of Application for VA Education Benefits (VA Form 1990) if available b) Copies of all Enrollment Certifications (VA Form 221999) to include Remedial/Deficiency CH (if applicable) identified separate from Curriculum CH c) Copies of all Changes in Student Status (VA Form 1999b); Amend, Adjust, Terminate d) Copies of Request for Change of Place of Training (VA Form 1995/5495) e) (Optional) Copies of DD-214s, Certificate of Eligibility and NOBEs as available f) Reporting fees usage