Course Hero Logo

Truong Giang Nguyen Khoa_170868_0.pdf - ASSIGNMENT 2 FRONT...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 9 out of 28 pages.

ASSIGNMENT 2 FRONT SHEETQualificationBTEC Level 5 HND Diploma in ComputingUnit number and titleUnit 20: Advanced ProgrammingSubmission dateDate Received 1st submissionRe-submission DateDate Received 2nd submissionStudent NameNguyen Khoa Truong GiangStudent IDGCH18272ClassGCH0715Assessor nameDoan Trung TungStudent declarationI certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand thatmaking a false declaration is a form of malpractice.Student’s signatureK.GiangGrading grid
P3P4M3M4D3D4
Summative Feedback:Resubmission Feedback:Grade:Assessor Signature:Date:Lecturer Signature:3.1
Contents1.Introduction..............................................................................................................................................................................................52. Scenario analysis.....................................................................................................................................................................................52.1. Scenario............................................................................................................................................................................................52.2. Diagram............................................................................................................................................................................................63. Implementation.......................................................................................................................................................................................73.1. Code.................................................................................................................................................................................................73.1.1.Header Files...............................................................................................................................................................................73.2. Program screenshots..................................................................................................................................................................184.Discussion..............................................................................................................................................................................................214.1.Range of similar patterns................................................................................................................................................................214.2. Usage of pattern.............................................................................................................................................................................245.Conclusion.............................................................................................................................................................................................26Bibliography.............................................................................................................................................................................................27
1.IntroductionIn this report, I will present a program designed by the Observer Pattern for the Ministry of Health to send updates on Covid-19. Athome monitoring the situation can also be updated with the latest and fast information. The report will detail the class diagram, codeand how the program works.2. Scenario analysis2.1. ScenarioIn the context of the covid-19 pandemic that is raging across every continent, the quick update of information is what people need topay attention to know how the situation is going. In order to quickly update information for everyone and all subjects, the Ministry ofHealth has used the method of updating data tables on the web to keep all residents and hospitals up to date. For ordinary people, whenregistering to receive notification from the Ministry of Health, they will receive information such as continuous updates of new cases,total number of current cases in the country update time and advice.For hospitals that register to receive notifications from the Ministry of Health, they will receive regular updates as residents and warningsif there are too many new cases at the same time. Warning of danger to the hospital to promptly allocate staff and accompanied by thewishes of the health department to the doctors.
2.2. DiagramFigure 1. Class Diagram for ScenarioClassMinistryOfHealth: Provides methods to add, remove, and report follower’s messages.Class Follower: Receive notices and data from MinistryOfHealth class and notify other followers who have signed up for information.Class Citizen & Class Hospital: 2 Follower has signed up for notifications from the MinistryOfHealth class and has different displaymethods.Class Menu: User interaction with data.
3. Implementation3.1. Code3.1.1.Header Files3.1.1.1. ministryOfHealth.hFigure 2 ministryOfHealth.h

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 28 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Design pattern, Ministry of Health, Erich Gamma

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture