computer science on diabetes

Upload: vishaldube

Post on 02-Jun-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Computer Science on diabetes

    1/49

    Ram Shanti Vidya Mandir,

    Pandhurna (M.P)

    A

    PROJECT REPORT

    ON

    DIABETES DETECTION

    Submitted in partial fulfillment of requirement for the 12 thboard project

    !Central "oard of Secondar# Education$

    Submitted to% Submitted b#%

    &r' Tan(i &adam hu!h"u #adh$ani

    )ate%

    1 | P a g e

  • 8/10/2019 Computer Science on diabetes

    2/49

    Ram Shanti Vidya Mandir,

    Pandhurna (M.P)

    C%rti&i'at%

    Thi' i' to certif# that project entitled !Dia"%t%! d%t%'tin** i' bona fide

    +or, of hu!h"u #adh$ani durin- the academic #ear 2.12/2.10 in

    partial fulfillment of the requirement for the 12thboard project in C"SE.

    nder the -uidance of

    !&r' Tan(i &adam$

    3ecturer4

    )r A Panda

    Principal4

    2 | P a g e

  • 8/10/2019 Computer Science on diabetes

    3/49

    A'n$*%d+%m%nt

    5 +i'h to a(ail thi' opportunit# to ac,no+led-ement m# profound

    indebtedne'' 6 e7tend m# deep 'en'e of -ratitude to m# -uide

    Re'pected Mr!. Tani madam

    8er (aluable -uidance profound ad(ice and encoura-ement that ha' feel

    to the 'ucce''ful completion of thi' project

    'incere than,' to our re'pected principle Dr. A. Panda !irof the

    in'titute for pro(idin- u' the nece''ar# facilit# to carr# out the +or,

    5 +ould al'o li,e to than, all the people +ho directl# or indirectl# helped

    u' in completion of m# project

    9inall# 5 +ould li,e to e7pre'' m# deepe't -ratitude 6 rele(ance of m#

    parent' for the encoura-ement throu-hout the proce'' of thi' +or,

    PRO-ECTEES

    hu!h"u #adh$ani

    3 | P a g e

  • 8/10/2019 Computer Science on diabetes

    4/49

    ABSTRACT)iabete' i' a major health problem in both de(elopin- and de(eloped

    countrie' and it' incidence i' ri'in- dramaticall# 5n thi' 'tud#: +e

    in(e'ti-ate a no(el automatic approach to dia-no'e )iabete' di'ea'e

    ba'ed on 9eature ;ei-hted Support ?@ accurac# on C5 data'et The e7perimental re'ult' demon'trate

    that our method outperform' the pre(iou' method' b# not onl# -i(in-

    more accurate re'ult' but al'o 'i-nificantl# 'peedin- up the cla''ification

    procedure)iabete' di'ea'e dia-no'i' (ia proper interpretation of the

    )iabete' data i' an important cla''ification problem )iabete' occur'

    +hen a bod# i' unable to produce or re'pond properl# to in'ulin +hich i'

    needed to re-ulate -luco'e )iabete' not onl# i' a contributin- factor to

    heart di'ea'e: but al'o increa'e' the ri',' of de(elopin- idne# )i'ea'e:"lindne'': Ner(e dama-e: and blood (e''el dama-e Stati'tic' 'ho+ that

    more than ?. percent of people +ith )iabete' die from 'ome form of

    heart or blood (e''el di'ea'e' Currentl# there i' no cure for )iabete'B

    8o+e(er: it can be controlled b# injectin- in'ulin: chan-in- eatin-

    habit': and doin- ph#'ical e7erci'e' Polat and Dne': 2..4 )iabete'

    di'ea'e dia-no'i' (ia proper interpretation of the )iabete' data i' an

    important cla''ification problem

    4 | P a g e

  • 8/10/2019 Computer Science on diabetes

    5/49

    INDE

    S.No. Topic Pg. No.1. Introduction 6

    2. System Analysis 9

    a. Working 10

    . !e"uirement 12

    c. #easiility study 1$

    d. #uture purpose 1%

    e. &et'odology 1(

    $. System design 1)

    a. #lo* diagram 1+

    . Source code 21

    c. Processed output $2

    %. Testing , Implementation $(

    (. Application o- t'e proect %0

    6. Ad/antages , isad/antages %2

    ). onclusion %%

    +. iliograp'y %6

    5 | P a g e

  • 8/10/2019 Computer Science on diabetes

    6/49

    C/APTER I

    INTROD0CTION

    Aim & th% 1r2%'t3

    6 | P a g e

  • 8/10/2019 Computer Science on diabetes

    7/49

    Thi' project u'e' the concept of data file handlin- and other concept' of !object

    oriented pro-rammin-$ 5t' Aim i' to detect the diabete' in people u'in-

    pro-rammin- and ha(in- a loo, at '#mptom' Thi' project help' to detect the

    diabete' in patient' ea'il# Thi' Project i' for the academic #ear 2.12/2.10 in

    partial fulfillment of the requirement for the 12thboard project in C"SE 5n thi'

    project +e are detectin- the diabete' in patient'

    #hat I! Dia"%t%!4 #hat Cau!%!

    Dia"%t%!4

    Dia"%t%!: often referred to b# doctor' a' dia"%t%! m%**itu!: de'cribe' a -roup of

    metabolic di'ea'e' in +hich the per'on ha' hi-h blood -luco'e blood 'u-ar4: either

    becau'e in'ulin production i' inadequate: or becau'e the bod#F' cell' do not

    re'pond properl# to in'ulin: or both Patient' +ith hi-h blood 'u-ar +ill t#picall#

    e7perience pol#uria frequent urination4: the# +ill become increa'in-l# thir't#

    pol#dip'ia4 and hun-r# pol#pha-ia4

    )iabete' i' a di'ea'e in +hich the bod# doe' not ma,e an# in'ulin or canFt u'e the

    in'ulin it doe' ma,e a' +ell a' it 'hould 5n'ulin i' a hormone made in the bod# 5t

    help' -luco'e 'u-ar4 from food enter the cell' +here it can be u'ed to -i(e thebod# ener-# ;ithout in'ulin: -luco'e remain' in the blood 'tream and cannot be

    u'ed for ener-# b# the cell' O(er time: ha(in- too much -luco'e in the blood can

    cau'e man# health problem'

    )iabete' i' the leadin- cau'e of ne+ blindne'': ,idne# di'ea'e: and amputation:

    and it contribute' -reatl# to the 'tateF' and nationF' number one ,iller:

    cardio(a'cular di'ea'e heart di'ea'e and 'tro,e4 People +ith diabete' are more

    li,el# to die from flu or pneumonia

    )iabete' i' not cau'ed b# eatin- too much 'u-arB in fact there i' no 'uch thin- a'

    Gha(in- a touch of 'u-ar:G a' 'ome people belie(e Onl# a doctor or health care

    pro(ider can dia-no'e diabete' either b# conductin- a fa'tin- pla'ma -luco'e

    9P4 te't or an oral -luco'e tolerance te't OTT4

    7 | P a g e

    http://www.health.ny.gov/diseases/cardiovascular/heart_disease/http://www.health.ny.gov/diseases/conditions/diabetes/diagnosing_diabetes.htmhttp://www.health.ny.gov/diseases/conditions/diabetes/diagnosing_diabetes.htmhttp://www.health.ny.gov/diseases/conditions/diabetes/diagnosing_diabetes.htmhttp://www.health.ny.gov/diseases/conditions/diabetes/diagnosing_diabetes.htmhttp://www.health.ny.gov/diseases/cardiovascular/heart_disease/
  • 8/10/2019 Computer Science on diabetes

    8/49

    The term diabete' mellitu' de'cribe' a metabolic di'order of multiple a etiolo-#

    characteriHed b# chronic h#per-l#cemia +ith di'turbance' of carboh#drate: fat and

    protein metaboli'm re'ultin- from defect' in in'ulin 'ecretion: in'ulin action: or

    both The effect' of diabete' mellitu' include lon-I term dama-e: d#'function and

    failure of (ariou' or-an' )iabete' mellitu' ma# pre'ent +ith characteri'tic

    '#mptom' 'uch a' thir't: pol#uria: blurrin- of (i'ion: and +ei-ht lo'' 5n it' mo't

    'e(ere form': ,etoacido'i' or a nonI,etotic h#pero'molar 'tate ma# de(elop and

    lead to 'tupor: coma and: in ab'ence of effecti(e treatment: death Often '#mptom'

    are not 'e(ere: or ma# be ab'ent: and con'equentl# h#per-l#cemia 'ufficient to

    cau'e patholo-ical and functional chan-e' ma# be pre'ent for a lon- time before

    the dia-no'i' i' made The lon-Iterm effect' of diabete' mellitu' include

    pro-re''i(e de(elopment of the 'pecific complication' of retinopath# +ith

    potential blindne'': nephropath# that ma# lead to renal failure: andor neuropath#

    +ith ri', of foot ulcer': amputation: Charcot joint': and feature' of autonomic

    d#'function: includin- 'e7ual d#'function People +ith diabete' are at increa'edri', of cardio(a'cular: peripheral (a'cular and cerebra (a'cular di'ea'e

    8 | P a g e

  • 8/10/2019 Computer Science on diabetes

    9/49

    Cha1t%r II

    S5STEM ANA65SIS

    #ORIN7

    RE80IREMENT

    9EASIBI6IT5 ST0D5

    90T0RE P0RPOSE

    MET/ODO6O75

    9 | P a g e

  • 8/10/2019 Computer Science on diabetes

    10/49

    S5STEM ANA65SIS3

    #ORIN73

    Thi' pro-ram 'upport' t+o different pro-rammin- paradi-m'% rule ba'ed: object/

    oriented 5n rule/ba'ed pro-rammin-: it allo+' ,no+led-e to be repre'ented a'

    heuri'tic': or !rule' of thumb$: +hich 'pecif# a 'et of action' to be performed for a

    -i(en 'ituation Object/oriented pro-rammin- allo+' comple7 '#'tem' to be

    modeled a' modular component' The'e module' could be ea'il# in other

    component' 6 pro-ram'

    Thi' pro-ram i' de'i-ned to detect the diabete' in patient' u'in- their complete

    information and b# loo,in- at the '#mptom'

    5n thi' 'ection of the diabete' detection: the '#'tem prompt' the u'er to enter

    information about the patient Patient information include' name: a-e: 'e7 6

    famil# hi'tor# of diabete' Ne7t: diabete' pro-ram pre'ent' the nur'e +ith

    #e'no or #n 4 que'tion A' each que'tion i' an'+ered: another que'tion i'

    di'pla#ed The que'tion' pre'ented are 'imilar to the que'tion that )octor

    +ould a', a patient durin- a normal (i'it to a medical office

    9ir'tl#: +e ha(e to enter the complete information about particular per'on ie:

    Name: a-e: +ei-ht: hei-ht: 'e7 Then: for detectin- the diabete' in that per'on +e

    ha(e to ,eep a loo, at the '#mptom' of the diabete' accordin- to the le(el of the

    diabete' ie: le(el 1: le(el 2 or le(el 0 9or detectin- the diabete' +e 'hould ha(e

    10 | P a g e

  • 8/10/2019 Computer Science on diabetes

    11/49

    the complete information about the patient: +hich 'hould be accurate The +or,in-

    of thi' pro-ram con'i't' of the follo+in- condition'%

    Enter the name: a-e: +ei-ht: hei-ht and 'e7 &94 of the per'on +ho'e

    diabete' i' to be detected

    Then: fill the medical dia-no'i' form +hich include' the follo+in-

    information%

    Appetite

    9requenc# of thir't

    9requenc# of rination

  • 8/10/2019 Computer Science on diabetes

    12/49

    5f it i' 'econdar# diabete' then +e ha(e to quit

    5f it i' in'ulin dependent diabete' then al'o +e ha(e to quit

    5f it i' non in'ulin dependent diabete' then al'o +e ha(e to quit

    After proceedin- from le(el 1*' '#mptom' +e 'hould ha(e a loo, at le(el 2*'

    '#mptom': +hich are%

    Pancreatiti' PA4

    Carcinoma PA4

    Cirrho'i' PA4

    8CTS 83N4

    8epatiti' PA4

    8ormonal di'order PA4

    Pancreatectom# PA4

    Then: +e +ill mo(e to+ard' le(el 0 of diabetic '#mptom': +hich mainl#

    ta,e care about 'ome of the'e factor'%

    A-e #oun-K4 &iddle a-ed&4 Elderl#E4

    ;ei-ht normalN4 Abo(e normalA4 "elo+ normal"4 obe'e4

    )uration +ee,';4 &onth'&4 Kear'K4

    etonurea PA4

    Auto antibodie' PA4

    12 | P a g e

  • 8/10/2019 Computer Science on diabetes

    13/49

    RE80IREMENTS3

    /ard$ar% r%:uir%m%nt!3

    PC +ith 2 " hard/di',

    9or 3inu7%

    N -cc% L. upto L02

    9or ;indo+'%

    &icro'oft =?P

    &S/office 2..

    Turbo C 0.

    5ntel Pentium: 1.. &8H proce''or

    or hi-her

    13 | P a g e

  • 8/10/2019 Computer Science on diabetes

    14/49

    9EASIBI6IT5 ST0D53

    9EAS5"535TK ST)K i' a report directed mana-ement 5t e(aluate' the impact of

    the propo'ed chan-e' in the area'4 in que'tion The report i' a formal document

    for mana-ement: brief enou-h and 'ufficientl#: on technical to be under'tandable:

    #et detailed enou-h to pro(ide the ba'i' for de'i-n

    T%'hni'a* 9%a!i"i*ity/

    Technical fea'ibilit# center' around the e7i'tin- '#'tem hard+are:

    'oft+are: etc4 into +hat it can 'ort the propo'ed addition

    E'nmi'a* 9%a!i"i*ity ;

    Economical anal#'i' in the mo't frequentl# u'ed method for

    e(aluation the effecti(ene'' of a candidate '#'tem Thi' procedure i' to

    determine the benefit' and 'a(in- that are e7pected from a candidate '#'tem

    and compare it +ith co't

    O1%ratina* &%a!i"i*ity/

    Emplo#ee' of an# or-aniHation are inherentl# re'i'tant to chan-e'

    becau'e the# belie(e that it +ill be (er# difficult to adapt in the ne+ '#'tem

    Computer' ha(e been to facilitate chan-e' it i' +ell ,no+n that computeriHation

    ha' 'omethin- to do +ith tran'fer': retrainin- and chan-e' in emplo#ee job 'tatu'

    14 | P a g e

  • 8/10/2019 Computer Science on diabetes

    15/49

    MET/ODO6O753

    9ollo+in- are the header file' u'ed%

    Qincludeio'treamh

    Qinclude'tdioh

    Qincludeconioh

    Qincludect#peh

    Qincludedo'h

    Qinclude-raphic'h

    Qincludeproce''h

    15 | P a g e

  • 8/10/2019 Computer Science on diabetes

    16/49

    90T0RE P0RPOSE3

    The application certainl# ha' 'ame 'tri,in- ad(anta-e o(er manual '#'tem There

    +ill be no paper +or, a' po''ible and the information +ill be updated a' itchan-e'

    The operator doe' not require an# pre(iou' trainin- becau'e of it' u'er

    friendline'' the operator i' free from an# technicalit# of the bac,end

    proce''in-: that i' ho+ databa'e i' maintained

    5f the proce'' of the +or,in- chan-e' in future then the alteration in the

    '#'tem +ill be done ea'il# and +ill not cau'e in the mi'mana-in- of data

    9urthermore +ith it' implementation (er# lar-e amount of data +ill be 'ecure

    and editin- and addition or deletion of data i' done (er# ea'il#

    5n future accordin- to the u'er*' requirement it can be updated 'o that to reach

    the u'er 'pecification

    Pr2%'t P*an e a r s ; > =

    96O# DIA7RAM3

    9*$ 'hart &r th% d%t%'tin & dia"%t%! $ith

    'm1*%t% 1r'%!!

    19 | P a g e

  • 8/10/2019 Computer Science on diabetes

    20/49

    9*$ dia+ram !h$in+ th% 1r'%!!in+ & th% 1r+ram

    20 | P a g e

  • 8/10/2019 Computer Science on diabetes

    21/49

    Sur'% 'd%3

    21 | P a g e

  • 8/10/2019 Computer Science on diabetes

    22/49

    Qincludeio'treamh

    Qinclude'tdioh

    Qincludeconioh

    Qincludect#peh

    Qincludedo'h

    Qinclude-raphic'h

    Qincludeproce''h

    cla'' diabete'

    pri(ate%

    char nameUL.VB

    float a-eB

    int +tB

    float htB

    char 'e7B char M'B

    public%

    (oid +elcomeW'creen(oid4B

    (oid -et(alue(oid4B

    (oid -etle(el1W'#mptom'(oid4B

    (oid -etle(el2W'#mptom'(oid4B

    (oid -etle(el0W'#mptom'(oid4B

    int anal#'eW'#mptom'int4B

    char di'pla#Wme''a-eint:int4B

    XB

    (oid main4

    char ch:choice:choB

    int m:nY2B

    float mB

    int nY1B

    (oid dia-no'i'(oid4B

    diabete' dt'Bdt'+elcomeW'creen4B

    dt'-et(alue4B

    dia-no'i'4B

    dt'-etle(el1W'#mptom'4B

    mYdt'anal#'eW'#mptom'n4B

    choiceYdt'di'pla#Wme''a-em:n4B

    22 | P a g e

  • 8/10/2019 Computer Science on diabetes

    23/49

    choiceYtoupperchoice4B

    ifchoiceYYFKF4

    nB

    dt'-etle(el2W'#mptom'4B

    mYdt'anal#'eW'#mptom'n4B

    choiceYdt'di'pla#Wme''a-en:m4B

    choiceYtoupperchoice4B

    ifchoiceYYFKF4

    nB

    dt'-etle(el0W'#mptom'4B

    mYdt'anal#'eW'#mptom'n4B

    choYdt'di'pla#Wme''a-en:m4B

    choYtouppercho4B ifchoYYFKF4

    nB

    dt'-etle(el0W'#mptom'4B

    mYdt'anal#'eW'#mptom'n4B

    choiceYdt'di'pla#Wme''a-em:n4B

    X

    X

    X

    X

    (oid diabete'%%+elcomeW'creen4

    clr'cr4B

    -oto7#20:4B

    te7tcolorKE33O;4B

    cput'GMMMMMMMMM ; E 3 C O & E MMMMMMMMM G 4B

    -oto7#2>:=4B cput'GRA& S8ANT5

  • 8/10/2019 Computer Science on diabetes

    24/49

    'ound2...4B

    dela#12.4B

    no'ound4B

    -oto7#7:1L4B

    cput'G) O N E " K % G4B

    -oto7#7:14B

    cput'Ghu'hbu ;adh+ani G4B

    -oto7#L0:1?4B

    X

    -oto7#1:2>4B

    cput'GMMMMMMMMMM PRESS ANK EK TO CONT5NE MMMMMMMMM G4B

    -etch4B

    returnB

    X

    (oid diabete'%%-et(alue4

    clr'cr4B

    te7tcolor;85TE4B

    -oto7#2.:?4B

    cput'G P E R S O N A 3 5 N 9 O R & A T 5 O NG4B

    -oto7#2>:1.4B

    cput'GN A & E % G4B-oto7#2>:124B

    cput'GA E % G4B

    -oto7#2>:1L4B

    cput'G; E 5 8 T % G4B

    -oto7#2>:14B

    cput'G8 E 5 8 T % G4B

    -oto7#2>:1?4B

    cput'GS E &94% G4B

    te7tcolor;85TE4B-oto7#L2:1.4B

    -et'name4B

    -oto7#L2:124B

    cina-eB

    -oto7#L2:1L4B

    cin+tB

    24 | P a g e

  • 8/10/2019 Computer Science on diabetes

    25/49

    -oto7#L2:14B

    cinhtB

    -oto7#L2:1?4B

    cin'e7B

    -etch4B

    returnB

    X

    (oid dia-no'i'(oid4

    clr'cr4B

    te7tcolor;85TE4B

    -oto7#2.:>4B

    cput'G MM ) 5 A N O S 5 S ; 5 N ) O ; MM G4B

    coutGZnZnZnGB

    cput'G 3etF' ha(e aloo, at '#mptom'G4B coutGZnZnZnGB

    cput'G Plea'e enter the form in ne7t pa-e G4B

    coutGZnZnZnZnZnZnZtZtZt GB

    te7tcolorKE33O;4B

    cput'GMMMMM PRESS ANK EK MMMMM G4B

    -etch4B

    X

    (oid diabete'%%-etle(el1W'#mptom'(oid4

    clr'cr4B

    int iY.B

    -oto7#20:04B

    te7tcolor;85TE4B

    cput' G MMM &E)5CA3 )5AONOS5S 9OR& MMM G4B

    -oto7# 0:4B

    cput'GAPPET5TE 88584:33O;4:NNOR&A34%G4 B

    -oto7#L:4B

    cin'UiVB 'UiVYtoupper'UiV4B

    iB

    -oto7#0:?4B

    cput'G9RE[ENCK O9 T85RST88584:33O;4NNOR&A34%G4B

    -oto7#L:?4B

    cin'UiVB

    25 | P a g e

  • 8/10/2019 Computer Science on diabetes

    26/49

    'UiVYtoupper'UiV4B

    iB

    -oto7#0:1.4B

    cput'G9RE[ENCK O9 R5NAT5ON88584:33O;4:NNOR&A34%G4B

    -oto7#L:1.4B

    cin'UiVB

    'UiVYtoupper'UiV4B

    iB

    -oto7#0:124B

    cput'G

  • 8/10/2019 Computer Science on diabetes

    27/49

    -oto7#L:224B

    cin'UiVB

    'UiVYtoupper'UiV4B

    iB

    -oto7#0:2L4B

    cput'GOTT)N4G4B

    -oto7#L:2L4B

    cin'UiVB

    'UiVYtoupper'UiV4B

    iB

    X

    int diabete'%%anal#'eW'#mptom'int n4

    int iY.B

    int countY.B

    int re'ultY.B

    '+itchn4

    ca'e 1% if'U=VYYF)F 4

    re'ultY/1B

    el'e

    if'U>VYYFPF66 'UVYYFPF 66 'UVYYF8F4

    re'ultY/1B

    el'e

    foriY.Bi1.Bi4

    if'UiVYYF8F\\'UiVYYFPF\\'UiVYYF)F\\'UiVYYF5F4

    countB

    X

    ifcount>4

    re'ultY/1B X brea,B

    ca'e 2% if'U.VYYFPF4\\'U1VYYFPF4\\'U2VYYFPF4\\'U0VYYF8F4\\'ULVYYFPF4\\

    'U>VYYFPF4\\'UVYYFPF44

    re'ultY/1B

    el'e

    re'ultY.B

    27 | P a g e

  • 8/10/2019 Computer Science on diabetes

    28/49

    brea,B

    ca'e 0%

    if'U.VYYFKF466'U1VYYFNF466'U2VYYF;F466'U0VYYFPF466'ULVYYFPF4\\

    'U.VYYFKF466'U1VYYF"F466'U2VYYF;F466'U0VYYFPF466'ULVYYFPF4\\

    'U.VYYFKF466'U1VYYFNF466'U2VYYF&F466'U0VYYFPF466'ULVYYFPF4\\

    'U.VYYFKF466'U1VYYFNF466'U2VYYFKF466'U0VYYFPF466'ULVYYFPF44

    re'ultY.B

    el'e

    re'ultY/1B

    brea,B

    default%brea,B

    X returnre'ult4B

    X

    char diabete'%%di'pla#Wme''a-eint n:int m4

    char chB

    clr'cr4B

    '+itchn4

    ca'e 1%

    '+itchm4B

    ca'e .% -oto7#0.:124B

    cput'GT8E PERSON 5S NOT )5A"ET5CG4B

    -oto7#>.:2.4B

    cput'GPRESS ANK EK TO [5TG 4B

    -oto7#.:2.4B

    cinchB brea,B

    e7it.4B

    ca'e /1%

    -oto7#0.:2.4B

    28 | P a g e

  • 8/10/2019 Computer Science on diabetes

    29/49

    cput'GT8E PERSON 5S )5A"ET5C G4B

    -oto7#>L:2.4B

    cput'GPROCEE) KN4 ]G4B

    -oto7#.:2.4B

    cinchB

    brea,B

    default% brea,B

    X

    brea,B

    ca'e 2%

    '+itchm4

    ca'e .% -oto7#0.:124B cput'G5T 5S PR5&ARK )5A"ETESG4B

    -oto7#>.:2>4B

    cput'GProceedKN4]G4B

    -oto7#.:2>4B

    cinchB

    brea,B

    ca'e /1% -oto7#0.:124B

    cput'G5T 5S SECON)ARK )5A"ETESG4B

    -oto7#>.:2>4B

    cput'GPRESS ANK EK TO [5TG4B

    -etch4B

    brea,B

    X

    brea,B

    ca'e 0%'+itchm4

    ca'e .% -oto7#0.:124B

    cput'G 5T 5S 5NS35N )EPEN)ENT )5A"ETESG4B

    -oto7#>.:2>4B

    cput'Gpre'' an# ,e# to quitG4B

    -etch4B

    brea,B

    29 | P a g e

  • 8/10/2019 Computer Science on diabetes

    30/49

    ca'e /1% -oto7#0.:124B

    cput'G5T 5S NON 5NS35N )EPEN)ENT )5A"ETESG4B

    -oto7#>.:2>4B

    cput'GPRESS ANK EK TO [5T G4B

    -etch4B

    brea,B

    default% brea,B

    X

    brea, B

    default % brea,B X

    return ch4B

    X

    (oid diabete'%%-etle(el2W'#mptom'4

    clr'cr4B

    int jY.B

    -oto7#2.:?4B

    cput'GPANCREAT5T5SPA4 %G4B

    -oto7#.:?4B

    cin'UjVB

    'UjVYtoupper'UjV4B

    jB

    -oto7#2.:1.4B

    cput'GCARC5NO&APA4 %G4B

    -oto7#.:1.4B cin'UjVB

    'UjVYtoupper'UjV4B

    jB

    -oto7#2.:124B

    cput'GC5R88OS5SPA4 %G4B

    -oto7#.:124B

    30 | P a g e

  • 8/10/2019 Computer Science on diabetes

    31/49

    cin'UjVB

    'UjVYtoupper'UjV4B

    jB

    -oto7#2.:1L4B

    cput'G 8CTS 83N4 %G4B

    -oto7#.:1L4B

    cin'UjVB

    'UjVYtoupper'UjV4B

    jB

    -oto7#2.:14B

    cput'G8EPAT5T5SPA4 %G4B

    -oto7#.:14B

    cin'UjVB

    'UjVYtoupper'UjV4B

    jB -oto7#2.:1?4B

    cput'G 8OR&ONA3 )5SOR)ERPA4%G4B

    -oto7#.:1?4B

    cin'UjVB

    'UjVYtoupper'UjV4B

    jB

    -oto7#2.:2.4B

    cput'G PANCREATECTO&KPA4 %G4B

    -oto7#.:2.4B

    cin'UjVB

    'UjVYtoupper'UjV4B

    jB

    returnB

    X

    (oid diabete'%%-etle(el0W'#mptom'4

    int ,Y.Bclr'cr4B

    -oto7#1.:?4B

    cput'G AE#oun-K4&iddle a-ed&4Elderl#E44G4B

    -oto7#0:?4B

    cin'U,VB

    'U,VY toupper 'U,V4B

    31 | P a g e

  • 8/10/2019 Computer Science on diabetes

    32/49

    ,B

    -oto7#1.:124B

    cput'G"O)K ;E58TnormalN4Abo(e normalA4"elo+

    normal"4obe'e4G4B

    -oto7#0:124B

    cin'U,VB

    'U,VY toupper'U,V4B

    ,B

    -oto7#1.:14B

    cput'G )RAT5ON +ee,';4&onth'&4Kear'K44G4B

    -oto7#0:14B

    cin'U,VB

    'U,VY toupper'U,V4B

    ,B

    -oto7#1.:2.4B

    cput'GETONREAPA4G4B

    -oto7#0:2.4B

    cin'U,VB

    'U,VY toupper'U,V4B

    ,B

    -oto7#1.:2L4B

    cput'GATO ANT5"O)5ESPA4G4B

    -oto7#0:2L4B

    cin'U,VB

    'U,VY toupper'U,V4B

    ,B

    returnB

    X

    Pr'%!!%d ut1ut3

    Per'onal information

    32 | P a g e

  • 8/10/2019 Computer Science on diabetes

    33/49

    Name%

    A-e%

    ;ei-ht%

    8ei-ht%

    Se7 &94%

    )ia-no'i' ;indo+

    3et*' ha(e a loo, at '#mptom'^

    Plea'e enter the form in ne7t pa-e

    MMMMMMPRESS ANK EK TO CONT5NEMMMMMM

    MMMMMM&E)5CA3 )5ANOS5S 9OR&MMMMMMM

    APPET5TE 88584:33O;4:NNOR&A34%

    9RE[ENCK O9 T85RST 83N4%

    9RE[ENCK O9 R5NAT5ON 83N4%

  • 8/10/2019 Computer Science on diabetes

    34/49

    ETONREA P:A4

    9AST5N "3OO) SAR% 8:3:N4%

    R " S 8:3:N4%

    9A&53K 85STORK O9 )5A"ETES P:A4%

    OTT )N4%

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 T8E PERSON 5S )5A"ET5C

    PROCEE)KN4

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 N [5TWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 K

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    PANCREAT5T5S PA4%

    CARC5NO&A PA4%

    C5RR8OS5S PA4%

    34 | P a g e

  • 8/10/2019 Computer Science on diabetes

    35/49

    8CTS 83N4%

    8EPAT5T5S PA4%

    8OR&ONA3 )5SOR)ER PA4%

    PANCREATECTO&K PA4%

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 5T 5S A SECON)ARK )5A"ETES [5T

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 5T 5S A PR5&ARK )5A"ETES PROCEE)KN4

    59 K

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    AE KONK4&5))3E AE) &4E3)ER3K E44%

    "O)K ;E58T NOR&A34N4A"O

  • 8/10/2019 Computer Science on diabetes

    36/49

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 5T 5S A NON 5NS35N )EPEN)ENT )5A"ETES

    PRESS ANK EK TO [5T

    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

    59 5T 5S A 5NS35N )EPEN)ENT )5A"ETES

    PRESS ANK EK TO [5T^

    C/APTER IV

    TESTIN7 = IMP6EMENTATION

    36 | P a g e

  • 8/10/2019 Computer Science on diabetes

    37/49

    TESTIN7 = IMP6EMENTATION

    T%!tin+ t%'hni:u%!