What's new

Closed Paano gumawa ng Flowchart?

Status
Not open for further replies.
Ganito kasi yan pag binigyan ka ng question or problem dapat idissect mo muna yan, sa binigay sayong question or problem pwede ka pang makaformulate ng mga bagong question.

Gawin nalang natin na example yung problem mo:
Write a C# program that enters 5 elements to an array. Display all the odd numbers and even numbers separately.
Sa problem na yan pwede kang makapag formulate ng questions at yun muna yung sasagutin mo:
1. How to ask for user input in C#?
2. What is an array in C#?
a. How to declare an array?
b. How to loop through an array?
3. How to find the odd numbers inputted by the user in C#?
4. How to find the even numbers inputted by the user in C#?
5. How to display user input in C#?

Then pag nahanap mo na yung mga sagot sa tanong na ginawa mo, subukan mo ng sagutan yung buong problem kung sa tingin mo kaya mo na, eh kung hindi pa maghanap ka pa ng ibang sagot hanggang sa maintindihan mo yung problem, then sagutan mo ulit.
Kuys paano to? Pa explain naman sakin po. Please.
 

Attachments

Kuys paano to? Pa explain naman sakin po. Please.
5892507
012345
When your dealing with arrays the position of the array elements is called index and it starts with 0.
Lahat ng elements sa loob ng array ay may position na nag sisimula sa 0.
Example: Ano ang index ng number 25? Ang element number 25 ay pang 4 na element, pero yung index niya or position niya sa array ay 3 dahil nag sisimula ang index sa 0.

6. (arr[4] + arr[0]) * arr[2]
(0 + 5) * 8 = ?
Ikaw naman sumagot oh basic arithmetic operation nalang yan ah.
Follow BIDMMAS/BODMMAS rule in programming operations.
Bracket, Indices, Division, Modulo, Multiplication, Addition, Subtraction ( (), [], **, /, %, *, +, - )

7. Alam mo na dapat yan gaya lang din naman to ng no. 6

8. Address of the first element, by address it is referring to the index. First element is 5, so ano yung index ng 5?

9. Address of the last element, oh ito pareho lang din ang logic sa no. 8

10. Length of the arr[] it is referring to the number of elements, nandun na sa given yung sagot, ilan lahat ng elements?

Ubos na yung 3 lives mo, sa sunod mong tanong sisingilin na talaga kita :devilish:
 
Last edited:
[XX='G I N E B R A, c: 417068, m: 1031988'][/XX] sinabi ba na icode pa yan? Ipeperform lang naman ata yung operation tapos hinahanap lang naman ata yung sagot
 
[XX='Ooooooooo, c: 417271, m: 1757659'][/XX] oo nga hehe. Hindi po pla i cocode. Kala ko icocode para makuha yung sagot
 
[XX='G I N E B R A, c: 417391, m: 1031988'][/XX]
Oo ganyan at para madaling maintindihan i sulat mo ng ganito
7 - (25 / 5) - Dito yung uunahin mo yung nasa loob ng bracket
7 - 5
2 - Ito na yung sagot.
 
Last edited by a moderator:
Status
Not open for further replies.

Similar threads

Back
Top