* UNIVERSITY Abu Dhabi University College of Engineering CSC 202 - Object Oriented Programming Group Project Introductio

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

* UNIVERSITY Abu Dhabi University College of Engineering CSC 202 - Object Oriented Programming Group Project Introductio

Post by answerhappygod »

University Abu Dhabi University College Of Engineering Csc 202 Object Oriented Programming Group Project Introductio 1
University Abu Dhabi University College Of Engineering Csc 202 Object Oriented Programming Group Project Introductio 1 (66.62 KiB) Viewed 29 times
PLEASE USE SIMPLE QUERIES TO SOLVE THE PROGRAM. URGENNTT!!!!!
* UNIVERSITY Abu Dhabi University College of Engineering CSC 202 - Object Oriented Programming Group Project Introduction: Medical health records are of complex nature. Hence, there is always a need to manipulate sensors readings as well parameters that effect patient's condition to a form that can be modelled for further analysis. The purpose of this project is to map a given medical records to a certain format. The aim of this project is to enhance student's communication skills as well as demonstrating their ability to actively participating in a team, and to become an active team player. Requirements: You are required to write a java program that read the data file medical Records.txt that represent a set of medical readings. Your program should use the UML shown below. Description of each class and interface are detailed below Patient Mapping Comparable Laboratory Medical Mapper 1. Class Patient, consists of the following attributes: a. pid-int b. age-int c. gender - int d. height - double e. weight- double f. getBMI):double Aim of this method is to calculate the BMI of the patient based on his/her height and weight according to the following formula: BMI = Weight / (height * 0.01 )² 2. Class Laboratory, consists of the following attributes

a. sbp-int b. dbp - int c. fbs-double d. chol-double e. hdl-double f. Id-double g. tg-double h. hba1c-double 3. Interface Mapping has the following abstract methods: a. mapBMI():double Aim of this method is to map the calculated BMI (via getBMI() method) in to a mapping values as per the table below: Range map 0-17.9 0 18-24.9 1 25-29.9 2 30 - 100 3 b. mapBlood Pressure int This method maps the sbp and dbp and as follows: SBP DBP Mapp <130 <80 1 <=130 80 2 >130 <100 3 >150 >100 4 >200 5 c. mapFBS(fbs:double):int Aim of this method is to map fbs attribute as per the table below: map Range 70-110 1 111 - 140 2 141-200 3 201-300 4 301 - 400 5 d. mapCholestrol(chol:double): int

Aim of this method is to convert the chol attribute as per the table below: Range map 50 - 149 1 150-184 2 185 - 199 3 200-249 4 240 - 500 5 e. mapHDI (hdl:double): int Aim of this method is to convert the attribute hd as per the table below: map Range 0-39 5 40 - 59 4 60-74 3 75-99 2 100 - 200 1 f. mapLDL(Idl:double): int Aim of this method is to convert Idl as per the following table Range map 0-99 1 100 - 129 2 130 - 159 3 160-189 4 190 - 500 5 g. getTG( tg: double): int Aim of this method is to map TG as follows: Range Level 0-149 1 150 - 179 2 180-199 3 200 - 499 4 500-1000 5

h. mapHB1AC (hba1c:double): int Aim of this method is to map hba1c attribute as per the table shown below: map Range 4-6 1 6.1-7 2 7.1-8 3 8.1-9 4 9.1 - 20 5 4. Class MedicalMapper, should implement all interface methods as well as the following methods a. convertGender (gender: int ) : char Aim of this method is to convert the gender as follow: Read Map gender gender 1 M 2 F b. implement all methods in 3a to 3h above c. getTotal():int Aim of this method is to total value of attributes (excluding pid, age and gender) 5. Write a test class that do the followings: a. Create objects of type MedicalMapper b. Reads values in the file medical Records.txt and assign them to the appropriate attributes c. Convert the values read using the mapping methods that are stated in the Mapping interface and implemented in the class MedicalMapper d. Sort the records as per total of the attributes obtained in getTotal() Method e. Write the converted attributes in an output file using the toString() methods. The File is called converted Medical Records.txt that have a text values 6. Note that the data in the file are arranged in the following manner pid age gender weight height sbp. dbp fbs cbol ldk bdl tg hba1c 7. Below is a sample input and output of the program: a. Assume the input record is read as follow: 1002 43 2 72.6 157 110 70 133.2 204.6 139.0 30.1 185.8 7.5

b. The output after conversion would look like the followings: pid 1002 1002 age 43 43 gender 2 F weight (kg) 72.6 29.45 → 2 Height (cm) 157 sbp 110 1 dbp 70 fbs 133.2 2 chol 204.6 4 hdl. 139.0 1 Idl 30.1 1 ta 185.8 3 7.5 3 hba1c getTotal() 17 Therefore, the output would be as follow 1002 43 F 2 1 2 4 1 1 3 3 17
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply