Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Ocaml Programming File example : John;1;0;n;y;y;n;y;y;n;m; Mary;2;1;n;y;n;n;y;n;y;l; Paul;1;3;y;y;n;n;y;n;n;h; Etc... ****LANGUAGE TO BE USED -> OCaml **** The National Health System (NHS) intends to identify the
Ocaml Programming
File example :
John;1;0;n;y;y;n;y;y;n;m;
Mary;2;1;n;y;n;n;y;n;y;l;
Paul;1;3;y;y;n;n;y;n;n;h;
Etc...
****LANGUAGE TO BE USED -> OCaml ****
The National Health System (NHS) intends to identify the elderly that require more health care, or that are more at risk. Check tables: Table 1 Priority Category Observed Facts 1 Health 1. Number of diagnosed diseases (ndiseases); 2. Take medicine daily (medicine y); 3. Had accidents or has suffered surgical interventions (accidenty); 4. Have a disease that restrict acitvities in the other categories (diseasey); 2 Social 5. Live alone at home aloney): 6. Have autonomy and do not rely on others (autonomy-y) 3 Sport 7. Played sports when they were younger (sports y); 8. Have physical autonomy(physicalauto-y); 9. Do jogging or are physicaly active (physical y); Professional 10. Risk level in their profession (professionrisk - Experience low/medium/high) 4 Develop a program that allows the NHS to determine the risk of the elderly on a scale: low, medium, high. The identification must consider the observed facts according to the rules presented in Table 2. Table 2 Risk Rules High Have more than 2 diseases(ndiseases), take more than 3 pills(medicine) per day, had diseases that restrict other categories (diseases), has no autonomy(autonomy), has no physical autonomy (physicalauto), had a high or medium risk profession Medium May have 2 diseases, take up to 3 pills(medicine) per day, did not played sports when younger(sports), do not jog, may had a medium risk profession Low Can take up to 2 pills(medicine) per day, do not had accidents, nor diseases, but can not live alone , had a low risk profession Your program must implement the following features 1. Read the facts from a file 2. Identify the level of risk for each elderly person The National Health System (NHS) intends to identify the elderly that require more health care, or that are more at risk. Check tables: Table 1 Priority Category Observed Facts 1 Health 1. Number of diagnosed diseases (ndiseases); 2. Take medicine daily (medicine y); 3. Had accidents or has suffered surgical interventions (accidenty); 4. Have a disease that restrict acitvities in the other categories (diseasey); 2 Social 5. Live alone at home aloney): 6. Have autonomy and do not rely on others (autonomy-y) 3 Sport 7. Played sports when they were younger (sports y); 8. Have physical autonomy(physicalauto-y); 9. Do jogging or are physicaly active (physical y); Professional 10. Risk level in their profession (professionrisk - Experience low/medium/high) 4 Develop a program that allows the NHS to determine the risk of the elderly on a scale: low, medium, high. The identification must consider the observed facts according to the rules presented in Table 2. Table 2 Risk Rules High Have more than 2 diseases(ndiseases), take more than 3 pills(medicine) per day, had diseases that restrict other categories (diseases), has no autonomy(autonomy), has no physical autonomy (physicalauto), had a high or medium risk profession Medium May have 2 diseases, take up to 3 pills(medicine) per day, did not played sports when younger(sports), do not jog, may had a medium risk profession Low Can take up to 2 pills(medicine) per day, do not had accidents, nor diseases, but can not live alone , had a low risk profession Your program must implement the following features 1. Read the facts from a file 2. Identify the level of risk for each elderly personStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started