Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 (a) Consider the following description of the problem domain for a hospital (15 marks) management system. A ward is a division of a

image text in transcribed
QUESTION 2 (a) Consider the following description of the problem domain for a hospital (15 marks) management system. A ward is a division of a hospital shared by patients who need a similar kind of care. In a hospital, there are a number of wards. Each ward has a unique name and may be empty or have patients on it. Wards are differentiated by the gender of its patients, i.e. male wards and female wards. A ward can only have patients of the appropriate gender admitted to it. Furthermore, every ward has a fixed capacity (determined by the number of beds in the ward) but different wards may have different capacities. Doctors in the hospital are organised into teams. Each team has a unique name or code (eg. Orthopaedics or Paediatrics) and is led by a consultant doctor with the appropriate speciality. She/he can supervise fellows, residents, and medical students. The rest of the team are all junior doctors. Each doctor can be a member of no more than one team. Document the domain model for this domain. (b) Consider the following code: (18 marks) 01. void deleteArrayElement(int array[], int arraySize, 02. Int value) 03. \& 04. int i; 05. int found = arraySize +1; 06. 07. for ( i=0; ii++) 08. If (array[i] = a value) 09. 10. found = i; 11. break; 12. \} 13. if (found +1 ) // really found? 15. \{ 16. for (i=found; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions