Top Banner

of 21

Kalkulator 2

Jul 06, 2018

Download

Documents

bestiakw
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/17/2019 Kalkulator 2

    1/21

    unit Unit1;

    interface

    uses

      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

      ialogs, StdCtrls;

    type

      !Form1 " class#!Form$

      %dit1& !%dit;

      %dit'& !%dit;

      %dit(& !%dit;

      )a*el1& !)a*el;

      )a*el'& !)a*el;

      )a*el(& !)a*el;

      )a*el+& !)a*el;

      utton1& !utton;

      utton'& !utton;

      utton(& !utton;

      procedure utton1Clic-#Sender& !.*/ect$;

      procedure utton'Clic-#Sender& !.*/ect$;

      procedure utton(Clic-#Sender& !.*/ect$;

      pri0ate

      2ri0ate declarations 3

      pu*lic

  • 8/17/2019 Kalkulator 2

    2/21

      2u*lic declarations 3

      end;

    0ar

      Form1& !Form1;

    implementation

    45 67dfm3

    procedure !Form17utton1Clic-#Sender& !.*/ect$;

    0ar

    nilai1,nilai',hasilℜ

    *egin

    nilai1 &" Str!oFloat#%dit17!e8t$;

    nilai' &" Str!oFloat#%dit'7!e8t$;

    hasil &" nilai1 9 nilai';

    %dit(7!e8t&" Float!oStr#hasil$;

    end;

    procedure !Form17utton'Clic-#Sender& !.*/ect$;

    0ar

    nilai1,nilai',hasilℜ

    *egin

    nilai1 &" Str!oFloat#%dit17!e8t$;

  • 8/17/2019 Kalkulator 2

    3/21

    nilai' &" Str!oFloat#%dit'7!e8t$;

    hasil &" nilai1 6 nilai';

    %dit(7!e8t&" Float!oStr#hasil$;

    end;

    procedure !Form17utton(Clic-#Sender& !.*/ect$;

    0ar

    nilai1,nilai',hasilℜ

    *egin

    nilai1 &" Str!oFloat#%dit17!e8t$;

    nilai' &" Str!oFloat#%dit'7!e8t$;

    hasil &" nilai1 : nilai';

    %dit(7!e8t&" Float!oStr#hasil$;

    end;

    end7

    o*/ect Form1& !Form1

      )eft " 1+

      !op " 1'(

      Width " ('

      Scienti?c @al-ulator Sederhana V717A>

      Color " cltnFace

  • 8/17/2019 Kalkulator 2

    4/21

      Font7Charset " %FBU)!C1>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    5/21

      Width " +

      '>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    6/21

      end

      o*/ect utton+& !utton

      )eft " 1I

      !op " '('

      Width " +

      +>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    7/21

      Font7Style " fsold

      2arentFont " False

      !a*.rder " +

      .nClic- " uttonKClic-

      end

      o*/ect uttonI& !utton

      )eft " 1'J

      !op " '('

      Width " +

      I>

      Font7Charset " %FBU)!C=>

  • 8/17/2019 Kalkulator 2

    8/21

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    9/21

      !op " 1'

      Width " +

      >

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    10/21

      .nClic- " utton1AClic-

      end

      o*/ect utton11& !utton

      )eft " 1I

      !op " JA

      Width " +

      Sin>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    11/21

      Font7Eame " >MS Sans Serif>

      Font7Style " fsold

      2arentFont " False

      !a*.rder " 11

      .nClic- " utton1'Clic-

      end

      o*/ect utton1(& !utton

      )eft " 1'J

      !op " JA

      Width " +

      !an>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    12/21

      Caption " >)og>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    13/21

      )eft " 'KI

      !op " 1'

      Width " +

      L>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    14/21

      !a*.rder " 1I

      .nClic- " utton1=Clic-

      end

      o*/ect utton1J& !utton

      )eft " 1I

      !op " (1'

      Width " +

      ,>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    15/21

      Font7MS Sans Serif>

      Font7Style " fsold

      2arentFont " False

      !a*.rder " 1J

      .nClic- " utton1Clic-

      end

      o*/ect utton'A& !utton

      )eft " 1I

      !op " 1'A

      Width " +

      Mr>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    16/21

      Mc>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    17/21

      o*/ect utton'(& !utton

      )eft " 'AA

      !op " (1'

      Width " +

      ">

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    18/21

      2arentFont " False

      !a*.rder " '(

      .nClic- " utton'+Clic-

      end

      o*/ect utton'K& !utton

      )eft " 'AA

      !op " '('

      Width " +

      D>

      Font7Charset " %FBU)!C.FF>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    19/21

      Font7Color " clWindow!e8t

      Font7MS Sans Serif>

      Font7Style " fsold

      2arentFont " False

      !a*.rder " 'K

      .nClic- " utton'IClic-

      end

      o*/ect utton'=& !utton

      )eft " 'AA

      !op " JA

      Width " +

      C>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    20/21

      Width " +

      9:D>

      Font7Charset " %FBU)!C8>

      Font7Charset " %FBU)!C

  • 8/17/2019 Kalkulator 2

    21/21

      end

      o*/ect hasil& !2anel

      )eft " 1I

      !op " 1I

      Width " 'J

      MS Sans Serif>

      Font7Style "

      2arentFont " False

      !a*.rder " '

      end

    end