Dismiss Notice
You are browsing this site as a guest. It takes 2 minutes to CREATE AN ACCOUNT and less than 1 minute to LOGIN

msaada wako unahitajika(programing)

Discussion in 'Tech, Gadgets & Science Forum' started by araway, Jul 28, 2009.

  1. araway

    araway JF-Expert Member

    #1
    Jul 28, 2009
    Joined: Sep 26, 2007
    Messages: 469
    Likes Received: 20
    Trophy Points: 35
    wakuu nilijaribu kusoma pascal programing miaka ya nyuma, sikuweza kuendelea nayo na kwa bahati mbaya ninamdogo wangu kafuata mkondo huo katika pitiapitia kakutana na nondo zangu za pascal programing lakini kwa kweli sikumbuki kitu. kaniomba nimsaidie assignmet yake ya mambo ya programing lakini imenishinda naomba msaada waungwana niweze kumsaidia.

    assigment yenyewe inasema hivi
    create a program which allows a user to perform either of two operatons in looping to culculate the are of the circle

    tumia - DO WHILE Loop, na REPEAT UNTIL Loop

    hapa anataka flowchart na pseudo-code zake

    nategemea mssaada kutoka kwenu wakuu
     
  2. Abdulhalim

    Abdulhalim JF-Expert Member

    #2
    Jul 28, 2009
    Joined: Jul 20, 2007
    Messages: 16,463
    Likes Received: 16
    Trophy Points: 135
    Duh hii imeshakuwa noma..yaani mnatumia hadi JF kudetha? teh teh teh..

    Kaazi kwelikweli.
     
  3. Abdulhalim

    Abdulhalim JF-Expert Member

    #3
    Jul 28, 2009
    Joined: Jul 20, 2007
    Messages: 16,463
    Likes Received: 16
    Trophy Points: 135
    This is a sketchy pseudocode mazee ipe nyama

    1. Start
    2. do while counter is less than final_counter
    2.1 enter the radius of the circle
    2.2 area=pi*r*r
    2.3 output area
    2.4 increase counter by 1
    3. stop
     
  4. araway

    araway JF-Expert Member

    #4
    Jul 28, 2009
    Joined: Sep 26, 2007
    Messages: 469
    Likes Received: 20
    Trophy Points: 35

    nashukuru sana mkuu nitakujulisha alichopata!
     
  5. Abdulhalim

    Abdulhalim JF-Expert Member

    #5
    Jul 28, 2009
    Joined: Jul 20, 2007
    Messages: 16,463
    Likes Received: 16
    Trophy Points: 135
    program kudetha_jf;
    var
    Counter: integer;
    radius,area:real;
    begin
    Counter := 5;

    repeat
    read(radius);
    area=3.14*radius*radius;
    Dec(Counter);
    WriteLn(area)
    until Counter = 0;
    end.
     
  6. Abdulhalim

    Abdulhalim JF-Expert Member

    #6
    Jul 28, 2009
    Joined: Jul 20, 2007
    Messages: 16,463
    Likes Received: 16
    Trophy Points: 135
    Duh..hiyo ni sketchy tu mazee inabidi aifyatue vizuri..itokee kikamili. au degree haitaki?
     
  7. araway

    araway JF-Expert Member

    #7
    Jul 28, 2009
    Joined: Sep 26, 2007
    Messages: 469
    Likes Received: 20
    Trophy Points: 35

    mkuu hapo ashindwe mwenyewe! nishajivua lawama!ahsante sana mkuu
     
Loading...