This project solves three problems using C programming: intravenous rates calculator for hospitals, a binary search algorithm to help search numbers in large arrays and a resistor band calculator that returns the resistance value in ohms or kilo-ohms.
The project is created with:
- C Programming Language
- Geany
Clone the repo:
git clone https://github.com/icejan/C-end-term-project.git
The program prompts for the rate options, drop rate and tubing factor to calculate several different intravenous rates. Example is shown below.
![Intravenous Rates Calculator Output](https://private-user-images.githubusercontent.com/97641242/274800795-cdce47e5-0b31-4ce1-b9b5-dc9a6fee64fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjg2NDIsIm5iZiI6MTcxODgyODM0MiwicGF0aCI6Ii85NzY0MTI0Mi8yNzQ4MDA3OTUtY2RjZTQ3ZTUtMGIzMS00Y2UxLWI5YjUtZGM5YTZmZWU2NGZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDIwMTkwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzNTkzOTk3NTcxOGJhYzZmOTcyMTRiMDFhYzAwOGMwMjc0ZTA0NWY3NWFmNmU0NmM3ZDllY2JjOTYzMDA4ODgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UMspLG4KAF6lwg0nzOLMPmh3SKzhMje4BFn6KZ4hns0)
The program helps search for a target in an array. Example is shown below.
![Binary Search Algorithm Output](https://private-user-images.githubusercontent.com/97641242/274801651-a8ce5822-d687-4d7c-b858-e700cd0a76af.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjg2NDIsIm5iZiI6MTcxODgyODM0MiwicGF0aCI6Ii85NzY0MTI0Mi8yNzQ4MDE2NTEtYThjZTU4MjItZDY4Ny00ZDdjLWI4NTgtZTcwMGNkMGE3NmFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDIwMTkwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmNDVmYWFlY2UzNmE1OGMwNDBlYzQ5N2IxNDgzMjdmMzE3NTAwMTc2NmZlNTAxNWU0Y2U0NDk5Y2ZjMDE3OWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LFdlru5gS03RgVaL4fBT7aZf3Bx6TDOagFl4Nzcnl2E)
The program prompts for the colors of Band 1, Band 2, and Band 3, and then displays the resistance in kilo-ohms. Example is shown below.
![Resistor Color Bands Calculator Output](https://private-user-images.githubusercontent.com/97641242/274802088-303b64cd-1469-48a8-ba86-e89e28012dea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4Mjg2NDIsIm5iZiI6MTcxODgyODM0MiwicGF0aCI6Ii85NzY0MTI0Mi8yNzQ4MDIwODgtMzAzYjY0Y2QtMTQ2OS00OGE4LWJhODYtZTg5ZTI4MDEyZGVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDIwMTkwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmNjRkNGY4OTA2MGVkMTRjMTE1MTg5NmNlYzAyNGZlNzdlMWM3NjBkN2Q0Yjk2NjIxNjE2ZTY5NDg0NmRiNWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LtBIIUCbKL0rSLox_gYcc8_vL8TVx5sL1mv3iBibvSM)
- prompts for the rate in ml/hr and the tubing's drop factor then displays intravenous rate in drops per minute.
- returns number of hours for 1 liter or rate in ml/hr..
- inputs rate in mg/kg/hr, patient's weight in kg, and concentration in mg/ml, rate in units/hr and concentration in units/ml
- João Paulo Dos Santos Cruz
- Kevin Pham
- Josstina Beshay
- Julibeb Hussain