GithubHelp home page GithubHelp logo

hospital's Introduction

hospital

hospital ER mangement software using C

Purpose:

 Assesses a set of patients and determines for each patient whether the patient needs to be hospitalized and if so for how many days

Structure for the edited files(except from already provided):

drAssessment.c (executable drAssessment)
singleAssessment.c (executable singleMorph, use Makefile1)
singleSpawn.c (executable singleSpawn, use Makefile2)
multiSpawn.c (executable multiSpawn, use Makefile3)

Instruction to compile the program(examples provided)

To test TASK I, the user will provide the file name in the command line to read
	e,g. 
		make -f Makefile1
		./singleMorph patient.bin

To test TASK II, the user will provide the file name in the command line to read
	e,g. 
		make -f Makefile2
		./singleSpawn patient.bin

To test TASK III, the user will provide the file name in the command line to read
	e,g. 
		make -f Makefile3
		./multiSpawn patient.bin
		
To test drAssessment.c
	gcc -o drAssessment drAssessment.c
	./drAssessment

Limitations/Issues

N/A

How to use the software

make files will include all the dependencies for each program
use make file to create executables for each program

singleMorph: assess a single patient, to print any assessment, uncomment the print statments in drAssessment.c
singleSpawn: fork a child, morph the child to assess a single patient, parent print the assessment
multiSpawn: fork 10 children and assess 10 patients (only print the patients who needs hospitalization)

For details of each program, please read the header comments for each .c file 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.