day 182 /300 天 count down/
每次上international tax 都觉得让七十多岁的爷爷用zoom上课真的好残忍 每节课都要边道歉边慢慢摸索 登zoom share课件
( 之前范老师很好奇 问Patrick是不是新加坡人
他听了很伤心 觉得是因为自己普通话不够好 后来他下课找内地同学教他用普通话念我们班人的名字 之后的每次点名都努力用普通话点名 我真的爱了
每次上international tax 都觉得让七十多岁的爷爷用zoom上课真的好残忍 每节课都要边道歉边慢慢摸索 登zoom share课件
( 之前范老师很好奇 问Patrick是不是新加坡人
他听了很伤心 觉得是因为自己普通话不够好 后来他下课找内地同学教他用普通话念我们班人的名字 之后的每次点名都努力用普通话点名 我真的爱了
耗时一学期我和我的团队终于完成了导师交给的项目报告
————急性髓系白血病检测器
#include
#include
#include
#include
int main() {
time_t t = time(NULL);
struct tm tm = *localtime(&t);
char name[50],
address[100],
contact[25],
ic[25],
YY[4],
MM[4],
DD[4],
*gender,
*state,
state_num[4];
int i, x,
birth_year,
birth_month,
birth_date,
final_year,
final_month,
final_date;
int month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
FILE *outp;
jump: printf("-------------------------------------------------------------------------\n"); printf("-------------------------------------------------------------------------\n"); printf("\t\t\tPATIENT REGISTRATION\n"); printf("-------------------------------------------------------------------------\n"); printf("-------------------------------------------------------------------------\n"); printf("Enter Name : ");
gets(name);
printf("Enter IC Number : ");
gets(ic);
printf("Enter Contact Number gets(contact);
: ");
printf("Enter Address gets(address);
x = ic[11] ;
switch (x%2)
{
case 1:
gender = "Male";
break;
case 0:
gender = "Female";
break;
: ");
default:
printf("\n wrong IC number. Please insert again.\n");
goto jump;;
}
for (i=0; i<2; i++)
{
state_num[i] = ic[i+6];
}
x = atoi(state_num);
switch(x)
{
case 1: case 21: case 22: case 23: case 24: state = "Johor";
break;
case 2: case 25: case 26: case 27: state = "Kedah";
break;
case 3: case 28: case 29: state = "Kelantan";
break;
case 4: case 30:
state = "Melacca";
break;
case 5: case 31: case 59:
state = "Negeri Sembilan ";
break;
case 6: case 32: case 33: state = "Pahang";
23
break;
case 7: case 34: case 35:
state = "Penang";
break;
case 8: case 36: case 37: case 38: case 39:
state = "Perak";
break;
case 9: case 40:
state = "Perlis";
break;
case 10: case 41: case 42: case 43: case 44:
state = "Selangor";
break;
case 11: case 45: case 46:
state = "Terengganu";
break;
case 12: case 47: case 48: case 49:
state = "Sabah";
break;
case 13: case 50: case 51: case 52: case 53:
state = "Sarawak";
break;
case 14: case 54: case 55: case 56: case 57:
state = "Kuala Lumpur";
break;
case 15: case 58:
state = "Labuan";
break;
case 16:
state = "Putrajaya";
break;
case 82:
state = "Unknown State";
break; default:
printf("\n wrong IC number. Please insert again!\n");
goto jump;
}
for (i=0; i<2; i++)
{
YY[i] = ic[i];
MM[i] = ic[i+2];
DD[i] = ic[i+4];
}
birth_year = atoi(YY);
birth_month = atoi(MM);
birth_date = atoi(DD);
if ((birth_year>=23)&&(birth_year<=99))
{
birth_year = 1900 + birth_year;
}
else
{
birth_year = 2000 + birth_year;
}
tm.tm_year = tm.tm_year + 1900; tm.tm_mon = tm.tm_mon + 1;
if (birth_date > tm.tm_mday)
{
tm.tm_mday = tm.tm_mday + month[birth_month - 1];
tm.tm_mon = tm.tm_mon - 1;
}
if (birth_month > tm.tm_mon)
{
tm.tm_year = tm.tm_year - 1;
tm.tm_mon = tm.tm_mon + 12;
}
final_date = tm.tm_mday - birth_date; final_month = tm.tm_mon - birth_month; final_year = tm.tm_year - birth_year;
printf("\n Congratulation ! The patient is registered successfully!\n"); printf("Here is the patient's record: \n\n"); printf("-------------------------------------------------------------------------\n"); printf("\t\t\t PATIENT RECORD\n"); printf("-------------------------------------------------------------------------\n"); printf("Name: ");
puts(name);
printf("IC Number : ");
puts(ic);
printf("Birth Date (dd/mm/yyyy) : %d/%d/%d\n", birth_date, birth_month, birth_year);
printf("Age.: %d years %d months %d days\n", final_year, final_month,final_date);
printf("Gender :%s\n",gender);
printf("Birth State :%s\n",state)
printf("Contact Number:" );
puts(contact);
printf("Address :");
puts(address);
printf("Display Date : %s", time(&t));
outp= fopen("Patient_Record", "w");
fprintf(outp, "-------------------------------------------------------------------------\n"); fprintf(outp, "\t\t PATIENT RECORD\n");
fprintf(outp, "-------------------------------------------------------------------------\n"); fprintf(outp, "Name : ");
fputs(name, outp);
fprintf(outp, "\nIC Number:")
fputs(ic, outp);
fprintf(outp, "\nBirth Date (dd/mm/yyyy): %d/%d/%d\n", birth_date, birth_month,
birth_year);
fprintf(outp, "Age:%d years%d months %d days\n",final_year,final_month,
final_date);
fprintf(outp, "Gender:%s\n,gender);
fprintf(outp, "Birth State :%s\n",state);
fprintf(outp, "Contact Number :");
fputs(contact, outp);
fprintf(outp, "\nAddress :");
fputs(address, outp);
fprintf(outp, "\nDisplay Date :%s",time(&t));
fclose(outp);
//the condition
float WBC;
float Neutrophils;
float Lymphocytes;
float Monocytes;
float Eosinophils;
float Basophils;
float Hb;
float Hematocrit;
float Platelets;
//count
int z=0;
input:
printf("Please insert WBC value per microliter :");
scanf(" %f",&WBC);
if(WBC>=5000)
{
if(WBC>10000)
{
z=++z;
}
input2:
printf("Please insert Neutrophils value in percentage :");
scanf(" %f",&Neutrophils);
}
else
{
printf("Invalid WBC value.Please insert again!\n ");
goto input;
}
if(Neutrophils>=55 && Neutrophils<=90)
{
if(Neutrophils>70)
{
z=++z;
}
input3:
printf("Please insert Lymphocytes value in percentage :");
scanf(" %f",&Lymphocytes);
}
else
{
printf("Invalid Neutrophils value.Please insert again!\n");
goto input2;
}
if(Lymphocytes>=20 && Lymphocytes<=70) {
if(Lymphocytes>40)
{
z=++z;
}
input4:
printf("Please insert Monocytes value in percentage :");
scanf(" %f",&Monocytes);
}
else
{
printf("Invalid Lymphocytes value.Please insert again!\n");
goto input3;
}
if(Monocytes>=2 && Monocytes<=30)
{
if(Monocytes>8)
{
z=++z;
}
input5:
printf("Please insert Eosinophils value in percentage :"); scanf(" %f",&Eosinophils);
}
else
{
printf("Invalid Monocytes value.Please insert again!\n");
goto input4; }
if(Eosinophils>=1 && Eosinophils<=15)
{
if(Eosinophils>4)
{
z=++z;
}
input6:
printf("Please insert Basophils value in percentage :"); scanf(" %f",&Basophils);
}
else
{
printf("Invalid Eosinophils value.Please insert again!\n");
goto input5;
}
if(Basophils>=0.5 && Basophils<=5)
{
if(Basophils>1)
{
z=++z;
}
}
else {
printf("Invalid Basophils value.Please insert again!\n");
goto input6;
}
printf("Please insert Platelets value per microliter :");
scanf(" %f",&Platelets);
if(Platelets<150000 && Platelets>=400000)
{
z=++z;
}
printf("Please put Haemoglobin in g/dL :"); scanf(" %f",&Hb);
printf("Please put Hematocrit value in perecntage :");
scanf(" %f",&Hematocrit);
switch (x%2)
{
// male
case 1: if(WBC>10000)
{
z=++z;
}
if(Hb>17)
{
z=++z;
}
if(Hematocrit>55 && Hematocrit>=80)
{
z=++z;
}
break;
// female
case 0:
if(WBC>11000)
{
z=++z;
}
if(Hb>15.5)
{
z=++z;
}
if(Hematocrit>45)
{
z=++z;
}
break;
}
//judge from the input
}
return 0; }
if(z>=5)
{
printf("Result: High risk of getting leukemia");
}
else
{
printf("Result :Low risk of getting Leukemia");
}
return 0;
}
————急性髓系白血病检测器
#include
#include
#include
#include
int main() {
time_t t = time(NULL);
struct tm tm = *localtime(&t);
char name[50],
address[100],
contact[25],
ic[25],
YY[4],
MM[4],
DD[4],
*gender,
*state,
state_num[4];
int i, x,
birth_year,
birth_month,
birth_date,
final_year,
final_month,
final_date;
int month = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
FILE *outp;
jump: printf("-------------------------------------------------------------------------\n"); printf("-------------------------------------------------------------------------\n"); printf("\t\t\tPATIENT REGISTRATION\n"); printf("-------------------------------------------------------------------------\n"); printf("-------------------------------------------------------------------------\n"); printf("Enter Name : ");
gets(name);
printf("Enter IC Number : ");
gets(ic);
printf("Enter Contact Number gets(contact);
: ");
printf("Enter Address gets(address);
x = ic[11] ;
switch (x%2)
{
case 1:
gender = "Male";
break;
case 0:
gender = "Female";
break;
: ");
default:
printf("\n wrong IC number. Please insert again.\n");
goto jump;;
}
for (i=0; i<2; i++)
{
state_num[i] = ic[i+6];
}
x = atoi(state_num);
switch(x)
{
case 1: case 21: case 22: case 23: case 24: state = "Johor";
break;
case 2: case 25: case 26: case 27: state = "Kedah";
break;
case 3: case 28: case 29: state = "Kelantan";
break;
case 4: case 30:
state = "Melacca";
break;
case 5: case 31: case 59:
state = "Negeri Sembilan ";
break;
case 6: case 32: case 33: state = "Pahang";
23
break;
case 7: case 34: case 35:
state = "Penang";
break;
case 8: case 36: case 37: case 38: case 39:
state = "Perak";
break;
case 9: case 40:
state = "Perlis";
break;
case 10: case 41: case 42: case 43: case 44:
state = "Selangor";
break;
case 11: case 45: case 46:
state = "Terengganu";
break;
case 12: case 47: case 48: case 49:
state = "Sabah";
break;
case 13: case 50: case 51: case 52: case 53:
state = "Sarawak";
break;
case 14: case 54: case 55: case 56: case 57:
state = "Kuala Lumpur";
break;
case 15: case 58:
state = "Labuan";
break;
case 16:
state = "Putrajaya";
break;
case 82:
state = "Unknown State";
break; default:
printf("\n wrong IC number. Please insert again!\n");
goto jump;
}
for (i=0; i<2; i++)
{
YY[i] = ic[i];
MM[i] = ic[i+2];
DD[i] = ic[i+4];
}
birth_year = atoi(YY);
birth_month = atoi(MM);
birth_date = atoi(DD);
if ((birth_year>=23)&&(birth_year<=99))
{
birth_year = 1900 + birth_year;
}
else
{
birth_year = 2000 + birth_year;
}
tm.tm_year = tm.tm_year + 1900; tm.tm_mon = tm.tm_mon + 1;
if (birth_date > tm.tm_mday)
{
tm.tm_mday = tm.tm_mday + month[birth_month - 1];
tm.tm_mon = tm.tm_mon - 1;
}
if (birth_month > tm.tm_mon)
{
tm.tm_year = tm.tm_year - 1;
tm.tm_mon = tm.tm_mon + 12;
}
final_date = tm.tm_mday - birth_date; final_month = tm.tm_mon - birth_month; final_year = tm.tm_year - birth_year;
printf("\n Congratulation ! The patient is registered successfully!\n"); printf("Here is the patient's record: \n\n"); printf("-------------------------------------------------------------------------\n"); printf("\t\t\t PATIENT RECORD\n"); printf("-------------------------------------------------------------------------\n"); printf("Name: ");
puts(name);
printf("IC Number : ");
puts(ic);
printf("Birth Date (dd/mm/yyyy) : %d/%d/%d\n", birth_date, birth_month, birth_year);
printf("Age.: %d years %d months %d days\n", final_year, final_month,final_date);
printf("Gender :%s\n",gender);
printf("Birth State :%s\n",state)
printf("Contact Number:" );
puts(contact);
printf("Address :");
puts(address);
printf("Display Date : %s", time(&t));
outp= fopen("Patient_Record", "w");
fprintf(outp, "-------------------------------------------------------------------------\n"); fprintf(outp, "\t\t PATIENT RECORD\n");
fprintf(outp, "-------------------------------------------------------------------------\n"); fprintf(outp, "Name : ");
fputs(name, outp);
fprintf(outp, "\nIC Number:")
fputs(ic, outp);
fprintf(outp, "\nBirth Date (dd/mm/yyyy): %d/%d/%d\n", birth_date, birth_month,
birth_year);
fprintf(outp, "Age:%d years%d months %d days\n",final_year,final_month,
final_date);
fprintf(outp, "Gender:%s\n,gender);
fprintf(outp, "Birth State :%s\n",state);
fprintf(outp, "Contact Number :");
fputs(contact, outp);
fprintf(outp, "\nAddress :");
fputs(address, outp);
fprintf(outp, "\nDisplay Date :%s",time(&t));
fclose(outp);
//the condition
float WBC;
float Neutrophils;
float Lymphocytes;
float Monocytes;
float Eosinophils;
float Basophils;
float Hb;
float Hematocrit;
float Platelets;
//count
int z=0;
input:
printf("Please insert WBC value per microliter :");
scanf(" %f",&WBC);
if(WBC>=5000)
{
if(WBC>10000)
{
z=++z;
}
input2:
printf("Please insert Neutrophils value in percentage :");
scanf(" %f",&Neutrophils);
}
else
{
printf("Invalid WBC value.Please insert again!\n ");
goto input;
}
if(Neutrophils>=55 && Neutrophils<=90)
{
if(Neutrophils>70)
{
z=++z;
}
input3:
printf("Please insert Lymphocytes value in percentage :");
scanf(" %f",&Lymphocytes);
}
else
{
printf("Invalid Neutrophils value.Please insert again!\n");
goto input2;
}
if(Lymphocytes>=20 && Lymphocytes<=70) {
if(Lymphocytes>40)
{
z=++z;
}
input4:
printf("Please insert Monocytes value in percentage :");
scanf(" %f",&Monocytes);
}
else
{
printf("Invalid Lymphocytes value.Please insert again!\n");
goto input3;
}
if(Monocytes>=2 && Monocytes<=30)
{
if(Monocytes>8)
{
z=++z;
}
input5:
printf("Please insert Eosinophils value in percentage :"); scanf(" %f",&Eosinophils);
}
else
{
printf("Invalid Monocytes value.Please insert again!\n");
goto input4; }
if(Eosinophils>=1 && Eosinophils<=15)
{
if(Eosinophils>4)
{
z=++z;
}
input6:
printf("Please insert Basophils value in percentage :"); scanf(" %f",&Basophils);
}
else
{
printf("Invalid Eosinophils value.Please insert again!\n");
goto input5;
}
if(Basophils>=0.5 && Basophils<=5)
{
if(Basophils>1)
{
z=++z;
}
}
else {
printf("Invalid Basophils value.Please insert again!\n");
goto input6;
}
printf("Please insert Platelets value per microliter :");
scanf(" %f",&Platelets);
if(Platelets<150000 && Platelets>=400000)
{
z=++z;
}
printf("Please put Haemoglobin in g/dL :"); scanf(" %f",&Hb);
printf("Please put Hematocrit value in perecntage :");
scanf(" %f",&Hematocrit);
switch (x%2)
{
// male
case 1: if(WBC>10000)
{
z=++z;
}
if(Hb>17)
{
z=++z;
}
if(Hematocrit>55 && Hematocrit>=80)
{
z=++z;
}
break;
// female
case 0:
if(WBC>11000)
{
z=++z;
}
if(Hb>15.5)
{
z=++z;
}
if(Hematocrit>45)
{
z=++z;
}
break;
}
//judge from the input
}
return 0; }
if(z>=5)
{
printf("Result: High risk of getting leukemia");
}
else
{
printf("Result :Low risk of getting Leukemia");
}
return 0;
}
Love is not a matter of counting the days . It ' s making the days count .
Istill love you how long , you will like me .
电影感婚纱照/白色礼服/公路街拍/自然糕级
蜿蜒的公路延伸带着醉爱的人
穿上仪式的白纱
一起奔向未来
奔向这场属于彼此的爱情电影#婚纱照[超话]# https://t.cn/A6Xqwe20
Istill love you how long , you will like me .
电影感婚纱照/白色礼服/公路街拍/自然糕级
蜿蜒的公路延伸带着醉爱的人
穿上仪式的白纱
一起奔向未来
奔向这场属于彼此的爱情电影#婚纱照[超话]# https://t.cn/A6Xqwe20
✋热门推荐