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

1. ### arawayJF-Expert Member

#1
Jul 28, 2009
Joined: Sep 26, 2007
Messages: 469
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

2. ### AbdulhalimJF-Expert Member

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

Kaazi kwelikweli.

3. ### AbdulhalimJF-Expert Member

#3
Jul 28, 2009
Joined: Jul 20, 2007
Messages: 16,463
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. ### arawayJF-Expert Member

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

nashukuru sana mkuu nitakujulisha alichopata!

5. ### AbdulhalimJF-Expert Member

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

repeat
Dec(Counter);
WriteLn(area)
until Counter = 0;
end.

6. ### AbdulhalimJF-Expert Member

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

7. ### arawayJF-Expert Member

#7
Jul 28, 2009
Joined: Sep 26, 2007
Messages: 469