- Messages
- 4,715
- Reaction score
- 2
- Points
- 28
elow poh can someone help me,,. my pinpgwa poh xe program smin ung prof nmin sa visual basic 6.0 ggwa poh ng 10 arrays tpos mgeenter dw ng 10 no. in any order (ex. 1,3,6,9,8,7,5,4,2,10) ngaun poh pg cnlick ung command button laalabas sa form load ung kung ano ung pgkakasunod sunod na nilgay moh, at sa isang command button nmn poh ung dapat lumabas na sa form load un g sunod suno na no.(ex. 1,2,3,4,5,6,7,8,9,10) .sana poh ,my tumulong kylangfan npoh gang friday eh.
gawa ka po mung ng inital code mo, saka natin ayusin, dont expect na members dito ang gagawa ng assignment mo para sayo.
try to write the code as you understood it.
Eto ang steps dyan.
Define an array of 10 elements
Define an array counter
Set counter to zero
On a button click event, show an input box to accept your input
assign this input to the first member of the array using counter as index ====ZArray(counter) = input from input box
Increment counter === counter = counter + 1
click the button again to accept the next input
repeat this until counter reaches 10
when you have all the 10 inputs, display mo na yung mga inputs
Print ZArray(0)
Print ZArray(1)
Print ZArray(2)
......
run ithe array thru a sorting algorithm
ipinagpapalit lang nya yung mas mababa kes mas mataas until masort lahat ng laman
then i display mo ulit yung sorted array
that should be the steps, now try mo muna i code po yan, then ayusin natin para makita mo kung saan ka nagkamali.