1 file7 days ago
1

hospital billing management system:

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273/* A hospital billing management system: 
	1. Add list of patients and their amount of bill
	2. Present the list of patients
	3. Search the information via patient's ID
	4. Present the payment
	
	Written by: Nguyen Tien Nhat 
				Vu Thanh Phuong
				Cao Trung Kien
				Do Van Thanh
	Date: 15/5/2020
*/

#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<windows.h>
#include<stdlib.h>
//Struct Decalaration
struct subscriber
{
char ID[20];
char name[50];
float amount;
}s;
//Function Declaration
void addrecords();
void listrecords();
void modifyrecords();
void deleterecords();
void searchrecords();
void payment();
char get;
int main()
{	
	//Local Declaration
	int password;
	int ID;
	INT choice;
	// Statements
	// The display of the menu
	printf("\n******************************************************************************************");
	printf("\n*********           WELCOME TO THE HOSPITAL BILLING MANAGEMENT SYSTEM            *********");
	printf("\n******************************************************************************************");
	printf("\n*********                        CHOOSE YOUR OPTION                              *********");
	printf("\n********* 1. Add new record                                                      *********");
	printf("\n********* 2. List the records                                                    *********");
	printf("\n********* 3. Search the records                                                  *********");
	printf("\n********* 4. Show the payments                                                   *********");
	printf("\n******************************************************************************************");
	printf("\n*********                   ENTER THE NUMBER OF YOUR CHOICE                      *********");
	printf("\n******************************************************************************************");
	do
	{	printf("\nType your choice ");
    	scanf("%d", &choice);
		switch(choice) 
		{
		case 1: 
		addrecords();
		break;
		case 2: 
		listrecords();
		break;
		case 3:
		searchrecords();
		break;
		case 4;
		payment();
		break;
		default: printf("Try another option.");
		break;
	}
} //main