What's new

Closed Help for my code paps needed ko na tlga

Status
Not open for further replies.
I mean posible yun. Ang tanong kaya mo ba yun? Mas mapapadali ang program kapag ganun.
Oo paps kada start nasa array na lahat yan yung problema yung pag scan ko sa file txt kasi example nag dl8 ako ng 1 student sa 5 student so 4 pag click ko sa sort lumalabs yung number 5 student with zero zero value gusto ko yung 4 lng lalabas paano?
 
Oo paps kada start nasa array na lahat yan yung problema yung pag scan ko sa file txt kasi example nag dl8 ako ng 1 student sa 5 student so 4 pag click ko sa sort lumalabs yung number 5 student with zero zero value gusto ko yung 4 lng lalabas paano?
di maglagay ka ng if statement na wag ilabas yung zero zero value mo.
 
Kasi yung pag start ng progran ko if add na save na sa file pati rin sa dl8 section yung need ko lang pag kuha sa file tapus sort to best or worst
Kasi yung pag start ng progran ko if add na save na sa file pati rin sa dl8 section yung need ko lang pag kuha sa file tapus sort to best or worst

Bale ganito yung algorithm

main:
1. Get the data from file and put on array
2. Let the user choice an option
2.1 add.
add student from array, delete the file then use array to create new file.
2.2 update
update student from array, delete the file then use array to create new file.
2.3 delete
delete student from array, delete the file then use array to create new file.
2.4 show
show the array
2.5 compute
compute the data in array
2.6 SortBest
sort the array then show
2.7 SortWorst
sort the array then show.



Bale may function ka na mag aacquire ng array at magcecreate ng file using that array para tawag nalang ng function at hindi paulit-ulit yung code.
 
Bale ganito yung algorithm

main:
1. Get the data from file and put on array
2. Let the user choice an option
2.1 add.
add student from array, delete the file then use array to create new file.
2.2 update
update student from array, delete the file then use array to create new file.
2.3 delete
delete student from array, delete the file then use array to create new file.
2.4 show
show the array
2.5 compute
compute the data in array
2.6 SortBest
sort the array then show
2.7 SortWorst
sort the array then show.



Bale may function ka na mag aacquire ng array at magcecreate ng file using that array para tawag nalang ng function at hindi paulit-ulit yung code.
Ma iba kasi paps eh kasi kapag nag dl8 ng paano ma dl8 yung array tapus dl8 muna zero value lalabas kapag na show na kasi pa rin yun na dl8 with zero value
 
Status
Not open for further replies.
Back
Top