Skip to content

petal07/HospitalScheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Hospital Scheduler

CPSC 312 project - Interval Scheduling Problem in Haskell

What You Need

Example Input

Note: format of the csv file

  • The starting and ending times must be from Zero to Twenty_Three (24 hour clock).
  • The syntax is as follows: Patient Name, Starting Time, Ending Time

Sample input .csv file

Ahmad Ali, Zero, Six
Betty White, One, Four
Cara Hayle, Three, Five
Donald Duck, Three, Eight
Emerald Wong, Four, Seven
Fiona Jefferson, Five, Nine
Gabby Snow, Six, Ten
Harold Goldberg, Twenty, Twenty_Two

Running The Program

  • In terminal, change directories to be wherever the project and input csv file are saved
  • run ghci
  • run :load HospitalScheduler
  • run run
  • Follow the prompts that appear
  • Output will appear on the command line and will also be printed to a txt output file

Example Output

***************************************************************
NOTE: To see all of today's patients, you would need 4 doctors.
***************************************************************


------------------------------
1st Doctor's Patient Schedule:
------------------------------
NAME, START TIME, END TIME
"Betty White", One, Four
"Emerald Wong", Four, Seven
"Harold Goldberg", Twenty, Twenty_Two



------------------------------
2nd Doctor's Patient Schedule:
------------------------------
NAME, START TIME, END TIME
"Cara Hayle", Three, Five
"Fiona Jefferson", Five, Nine



"Process complete."

About

CPSC 312 project - Interval Scheduling Problem in Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published