What's new

Closed Paano gumawa ng Flowchart?

Status
Not open for further replies.

Ooooooooo

Addict
Joined
Aug 28, 2020
Posts
237
Reaction
87
Points
111
What is a Flowchart?
Flowchart is a graphical representation of an algorithm. It uses symbols to determine each process of the algorithm.
Ano ang Flowchart?
Ang flowchart ay isang diagrammatic na representasyon ng isang algorithm. Ginagamit ang flowchart para ipakita ang bawat hakbang o ang step by step na proseso ng isang algorithm.


Basic Symbols used in Flowchart Designs:
1. Terminal:
terminal.png

The oval symbol indicates Start, Stop and Halt in a program’s logic flow.
Ito yung simula ginagamit para sa pag simula, pag tigil at pag tapos ng isang flowchart.

2. Input/Output:
input&output.png

A parallelogram denotes any function of input/output type.
Halimbawa nito ay kung yung program mo ay humihingi ng input o naglalabas ng output.

3. Processing:
process.png

A box represents arithmetic instructions. All arithmetic processes such as adding, subtracting, multiplication and division are indicated by action or process symbol.
Halimbawa nito ay 1+1 = 2 kung meron kang mga arithmetic operation na ganyan, yan ay nakapaloob sa isang rectangle.

4. Decision:
decision.png

Diamond symbol represents a decision point. Decision based operations such as yes/no question or true/false are indicated by diamond in flowchart.
Ginagamit ito pag yung flowchart ay may kasamang katanungan na nasasagot ng yes or no, o kaya naman kung meron condition na nasasagot ng true or false.

5. Connectors:
connector.png

Whenever flowchart becomes complex or it spreads over more than one page, it is useful to use connectors to avoid any confusions. It is represented by a circle.
Ginagamit ito kapag masyado nang mahaba ang flowchart mo at kailangan mo ng ipagpatuloy sa ibang page o kailangan mo ng putulin.


6. Flow Lines:
arrow.png

Flow lines indicate the exact sequence in which instructions are executed. Arrows represent the direction of flow of control and relationship among different symbols of flowchart.
Ito yung arrow sa flowchart para maipakita ang pagkasunod sunod ng proseso sa iyong flowchart.

Halimbawa ng isang Basic na Flowchart:
Sample program: Create a program that asks the user to enter two numbers, add the two numbers, then display the sum.
example.png


Halimbawa ng Flowchart na may decision symbol:
Sample Program: Create a program that asks the user to enter two numbers, add the two numbers, check if the sum is greater than or less than 50 then display the output.
example3.png


You do not have permission to view the full content of this post. Log in or register now.
https://www(.)YøùTùbé(.)com/watch?v=SWRDqTx8d4k
 

Attachments

Step 1 - Start
Step 2 - int A = 0, B = 0, C= 0, D = 0
Step 3 - Input A
Step 4 - Input B
Step 5 - if D < B
Step 5.1 - C = C + A
Step 5.2 - D = D + 1
Step 5.3 - Go to Step 5
Step 6 - Output C
Step 7 - End

Pa guide naman paps. Natigil nako jan nalito na ako. Ano kaya sunod ayan pong nasa taas ang ginagawan ko ng Flowchart
 

Attachments

Step 1 - Start
Step 2 - int A = 0, B = 0, C= 0, D = 0
Step 3 - Input A
Step 4 - Input B
Step 5 - if D < B
Step 5.1 - C = C + A
Step 5.2 - D = D + 1
Step 5.3 - Go to Step 5
Step 6 - Output C
Step 7 - End

Pa guide naman paps. Natigil nako jan nalito na ako. Ano kaya sunod ayan pong nasa taas ang ginagawan ko ng Flowchart
32.png

Gaya nga ng sabi ko kanina refrain from using A, B, C, etc. use proper naming convention for your variables to increase the readability. Pero ayan na yung gusto mo.

Algorithm:
1. Start
2. int A, B, C
3. Input A, Input B
4. int D = 0
5. If (D < B)
6. C += A
7. D += 1
8. Display C
9. End

Pag humirit kapa diyan sisingilin na talaga kita :ROFLMAO:
 

Attachments

Last edited:
[XX='Ooooooooo, c: 413030, m: 1757659'][/XX] ahhhhh.. Ganun poba. Salamat po talaga ng madaming madami ha. Sauulitin HAHA. Joke. 😂(birong totoo)
 
[XX='Ooooooooo, c: 413030, m: 1757659'][/XX] kuys pa help naman po uli kung hindi po kayo busy. Dapat po mapalabas yung example output na nanjan.
 

Attachments

@Ooooooooo..kuys pa help naman po uli kung hindi po kayo busy. Dapat po mapalabas yung example output na nanjan.
Di ako marunong mag C#, C++ at Java lang konti alam ko pero since pareho lang naman fundamentals, nila ito:
[CODE@csharp..using System;

namespace Test
{
class Program
{
public static void Main(string[] args)
{
int[] numbers @ new int..;
int temp;
int[] odds @ new int..;
int[] evens @ new int..;

for (int i @ ..; i < 5; i++)
{
Console.Write("Enter element[" + i + "]: ");
numbers@i..= Convert.ToInt32(Console.ReadLine());

if ((numbers@i..% 2) @ ..) {
temp @ numbers..i];
odds@i..@ te..p;
} else if ((numbers@i..% 2) @ ..) {
temp @ numbers..i];
evens@i..@ te..p;
}

}

Console.WriteLine();

Console.Write("Odd Numbers: ");
for (int i @ ..; i < odds.Length; i++)
{
if (odds@i..!@ ..) {
Console.Write(odds@i.." ");
}
}

Console.WriteLine();

Console.Write("Even Numbers: ");
for (int i @ ..; i < evens.Length; i++)
{
if (evens@i..!@ ..) {
Console.Write(evens@i.." ");
}
}


Console.WriteLine();
Console.WriteLine("Press any key to continue . . . ");
Console.ReadKey(true);
}
}
}[/CODE]

Last mo na talaga to dapat matuto kang maghanap ng sagot na mag isa, halos lahat ng maitatanong mo ngayong beginner ka palang matagal ng itinanong ng iba at nasagot na, kailangan mo nalang hanapin. Effort ng konti, wala naman bayad mag Google.

Ganito mag-aral at maghanap ng sagot:
@ATTACH..type="full"]995731[/ATTACH]
 

Attachments

Di ako marunong mag C#, C++ at Java lang konti alam ko pero since pareho lang naman fundamentals, nila ito:
C#:
using System;

namespace Test
{
    class Program
    {
        public static void Main(string[] args)
        {
            int[] numbers = new int[5];
            int temp;
            int[] odds = new int[5];
            int[] evens = new int[5];
           
            for (int i = 0; i < 5; i++)
            {
                Console.Write("Enter element[" + i + "]: ");
                numbers[i] = Convert.ToInt32(Console.ReadLine());
               
                if ((numbers[i] % 2) == 1) {
                    temp = numbers[i];
                    odds[i] = temp;
                } else if ((numbers[i] % 2) == 0) {
                    temp = numbers[i];
                    evens[i] = temp;
                }
               
            }
           
            Console.WriteLine();
           
            Console.Write("Odd Numbers: ");
            for (int i = 0; i < odds.Length; i++)
            {
                if (odds[i] != 0) {
                    Console.Write(odds[i] + " ");
                }
            }
           
            Console.WriteLine();
           
            Console.Write("Even Numbers: ");
            for (int i = 0; i < evens.Length; i++)
            {
                if (evens[i] != 0) {
                    Console.Write(evens[i] + " ");
                }
            }
           
           
            Console.WriteLine();
            Console.WriteLine("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
    }
}

Last mo na talaga to dapat matuto kang maghanap ng sagot na mag isa, halos lahat ng maitatanong mo ngayong beginner ka palang matagal ng itinanong ng iba at nasagot na, kailangan mo nalang hanapin. Effort ng konti, wala naman bayad mag Google.

Ganito mag-aral at maghanap ng sagot:
View attachment 995731
Salamat po talaga paps. Aaralin kopo to. Salamat!
 
Di ako marunong mag C#, C++ at Java lang konti alam ko pero since pareho lang naman fundamentals, nila ito:
C#:
using System;

namespace Test
{
    class Program
    {
        public static void Main(string[] args)
        {
            int[] numbers = new int[5];
            int temp;
            int[] odds = new int[5];
            int[] evens = new int[5];
           
            for (int i = 0; i < 5; i++)
            {
                Console.Write("Enter element[" + i + "]: ");
                numbers[i] = Convert.ToInt32(Console.ReadLine());
               
                if ((numbers[i] % 2) == 1) {
                    temp = numbers[i];
                    odds[i] = temp;
                } else if ((numbers[i] % 2) == 0) {
                    temp = numbers[i];
                    evens[i] = temp;
                }
               
            }
           
            Console.WriteLine();
           
            Console.Write("Odd Numbers: ");
            for (int i = 0; i < odds.Length; i++)
            {
                if (odds[i] != 0) {
                    Console.Write(odds[i] + " ");
                }
            }
           
            Console.WriteLine();
           
            Console.Write("Even Numbers: ");
            for (int i = 0; i < evens.Length; i++)
            {
                if (evens[i] != 0) {
                    Console.Write(evens[i] + " ");
                }
            }
           
           
            Console.WriteLine();
            Console.WriteLine("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
    }
}

Last mo na talaga to dapat matuto kang maghanap ng sagot na mag isa, halos lahat ng maitatanong mo ngayong beginner ka palang matagal ng itinanong ng iba at nasagot na, kailangan mo nalang hanapin. Effort ng konti, wala naman bayad mag Google.

Ganito mag-aral at maghanap ng sagot:
View attachment 995731
Ano pong Step by step nyo sa pag hanap ng code kuys?
 
Ano pong Step by step nyo sa pag hanap ng code kuys?
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.
 
Status
Not open for further replies.

Similar threads

Back
Top