Add caption |
-
Introduction:
Medical companies effective and accurate billing system to be able to assure their revenue. Billing systems process the usage of medical strores that is used during the service usage into a single give the bill . The billing process involves receiving billing records from various , determining the billing rates associated with the billing records, calculating the cost for each billing record, aggregating these records periodically to generate invoices, sending invoices to the customer, and collecting payments received from the customer. Hardware requirement: turbo C compiler.
Microsoft windows 7 operating system. *Soft wear requartmant:Any personal computer with following configuration:
RAM: 212mb
HHD: 250mb - *Source code of C language:
#include<stdio.h>
#include<conio.h>
int tot=0;
void main()
{
int pr,per,sum,item,price,qty,cost,i,ma,total,tax;
char na[50],another;
float gst,paybill;
clrscr();
printf(" \n******************************************************************\n");
printf("\n\======================MAHESH MEDICAL STORE========================\n");
printf(" \n******************************************************************\n");
printf("ENTER PATIENTS NAME:");
scanf("%s",ma);
printf("\n+++++++++++++++++++++++++++++++++++++++\n");
printf("\n 1.prasitomol tablet");
printf("\n 2.albuerol HFA 90mg");
printf("\n 3.aspirin 81mg");
printf("\n 4.carvediol 25mg");
printf("\n 5.saradon cyclopan 45mg");
printf("\n 6. ENO 90mg");
printf("\n 7.adiflam plus 100m g");
printf("\n 8.flygill 250mg");
printf("\n 9.zolpodim 5mg");
printf("\n++++++++++++++++++++++++++++++++++++\n");
again:
printf("enter tablet number :");
scanf("%d",&item);
switch(item)
{
case 1:
printf("\n 1.prasitomol tablet");
printf("\n price:5rs");
printf("\nNo of medicine:");
scanf("%d",&qty);
cost=5*qty;
tot=tot+cost;
printf("\ncost=%d",cost);
printf("\n===============================================\n");
break;
case 2:
printf("\n 2.albuerol HFA 90mg");
printf("\n price:10Rs");
printf("\n NO of medicine:");
scanf("%d",&qty);
cost=10*qty;
tot=tot+cost;
printf("\ncost=%d",cost);
printf("\n===============================================\n");
break;
case 3:
printf("\n 3.aspirin 81mg");
printf("\n price:15rs");
printf("\n No of medicine:");
scanf("%d",&qty);
cost=15*qty;
tot=tot+cost;
printf("\ncost=%d",cost);
printf("\n===============================================\n");
break;
case 4:
printf("\n 4.carvediol 25mg");
printf("\n price:10Rs");
printf("\n NO of medicine:");
scanf("%d",&qty);
cost=10*qty;
tot=tot+cost;
printf("\ncost=%d",cost);
printf("\n===============================================\n");
break;
case 5:
printf("\n 5.saradon cyclopan 45mg");
printf("\n price:50Rs");
printf("\n NO of medicine:");
scanf("%d",&qty);
cost=10*qty;
tot=tot+cost;
printf("\ncost=%d",cost);
printf("\n===============================================\n");
break;
case 6:
printf("\n 6. ENO 90mg");
printf("\n price:100Rs");
printf("\n NO of medicine:");
scanf("%d",&qty);
cost=10*qty;
tot=tot+cost;
printf("\ncost=%d",cost);
printf("\n===============================================\n");
break;
}
printf("\nyou want another medicine y/n:\n");
another=getche();
if(another=='y')
goto again;
tax=tot*0.05;
printf("\n===================================================================\n");
paybill=tot+tax;
printf("Bill Amount to be paid: %f",paybill);
printf(" \n******************************************************************\n");
printf(" \n******************************************************************\n");
printf("\ncontact us: ");
printf("\nMAHESH DARVANKAR");
printf("\n9168407591");
printf(" \n******************************************************************\n");
getch();
} - output::
-
-
No comments:
Post a Comment