Jump to content

Flowgorithm: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
DPL bot (talk | contribs)
m Robot: adding dablinks template; 7or more disambig links (see the FAQ)
 
(31 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{dablinks|date=November 2025}}
{{Short description|Graphical authoring tool with flowcharts}}
{{Short description|Graphical authoring tool with flowcharts}}
{{primary sources|date=July 2017}}
{{primary sources|date=July 2017}}
Line 53: Line 52:


==Multilingual support==
==Multilingual support==
Flowgorithm supports the following languages:<ref>{{Cite web |title=Flowgorithm - Flowchart Programming Language |url=https://www.flowgorithm.org/ |archive-url=http://web.archive.org/web/20251101070522/https://www.flowgorithm.org/ |archive-date=2025-11-01 |access-date=2025-11-01 |website=flowgorithm.org |language=en}}</ref>
Flowgorithm supports the following languages:<ref>{{Cite web |title=Flowgorithm - Flowchart Programming Language |url=https://www.flowgorithm.org/ |archive-url=https://web.archive.org/web/20251101070522/https://www.flowgorithm.org/ |archive-date=2025-11-01 |access-date=2025-11-01 |website=flowgorithm.org |language=en}}</ref>


{{Columns-list |
{{Columns-list |
*[[Afrikaans]]
*[[Afrikaans]]
* [[Arabic]]
* [[Arabic]]
* [[Catalan]]
* [[Catalan language|Catalan]]
* [[Chinese]]
* [[Chinese language|Chinese]]
* [[Croatian]]
* [[Croatian language|Croatian]]
* [[Czech]]
* [[Czech language|Czech]]
* [[Dutch]]
* [[Dutch language|Dutch]]
* [[English]]
* [[English language|English]]
* [[Farsi]]
* [[Farsi]]
* [[French]]
* [[French language|French]]
* [[Galician]]
* [[Galician language|Galician]]
* [[German]]
* [[German language|German]]
* [[Hebrew]]
* [[Hebrew]]
* [[Hungarian]]
* [[Hungarian language|Hungarian]]
* [[Indonesian]]
* [[Indonesian language|Indonesian]]
* [[Italian]]
* [[Italian language|Italian]]
* [[Japanese]]
* [[Japanese language|Japanese]]
* [[Korean]]
* [[Korean language|Korean]]
* [[Latvian]]
* [[Latvian language|Latvian]]
* [[Malay]]
* [[Malay language|Malay]]
* [[Mongolian]]
* [[Mongolian language|Mongolian]]
* [[Polish]]
* [[Polish language|Polish]]
* [[Portuguese]]
* [[Portuguese language|Portuguese]]
* [[Romanian]]
* [[Romanian language|Romanian]]
* [[Russian]]
* [[Russian language|Russian]]
* [[Spanish]]
* [[Spanish language|Spanish]]
* [[Swedish]]
* [[Swedish language|Swedish]]
* [[Slovenian]]
* [[Slovene language|Slovenian]]
* [[Tamil]]
* [[Tamil language|Tamil]]
* [[Thai]]
* [[Thai language|Thai]]
* [[Turkish]]
* [[Turkish language|Turkish]]
* [[Ukrainian]]
* [[Ukrainian language|Ukrainian]]
}}
}}


==Graphical shapes==
==Graphical shapes==
Flowgorithm combines the classic flowchart symbols and those used by SDL diagrams. The color of each shape is shared by the associated generated code and the console window. The colors can be changed to several built-in themes.
Flowgorithm combines the classic flowchart symbols and those used by SDL diagrams. The color of each shape is shared by the associated generated code and the console window. The colors can be changed to several built-in themes.



[[File:Flowgorithm Shapes.png]]
[[File:Flowgorithm Shapes.png]]


#include <iostream>
==Example==
using namespace std;
The image below has the solution for [[99 Bottles of Beer]]. A function is used to return a string that either contains the singular "bottle" or plural "bottles" depending on the value of the parameter.
// Function to calculate percentage
<br/>
float calculatePercentage(int marks[], int size) {
[[File:Flowgorithm 99 Bottles of Beer.png]]
int sum = 0;
for(int i = 0; i < size; i++) {
sum += marks[i];
}
return (float)sum / size;
}
// Function to check admission eligibility
void checkAdmission(float percentage) {
if(percentage >= 80) {
cout << "Admission in Computer Science\n";
}
else if(percentage >= 70) {
cout << "Admission in Software Engineering\n";
}
else if(percentage >= 60) {
cout << "Admission in Information Technology\n";
}
else if(percentage >= 50) {
cout << "Admission in Business Studies\n";
}
else {
cout << "Sorry! Not eligible for admission\n";
}
}
// Function using pointer to display student data
void displayStudent(string *name, float *percentage) {
cout << "\n--- Student Result ---\n";
cout << "Name: " << *name << endl;
cout << "Percentage: " << *percentage << "%" << endl;
}
int main() {
int numStudents;
cout << "Enter number of students: ";
cin >> numStudents;
string names[numStudents];
float percentages[numStudents];

for(int i = 0; i < numStudents; i++) {
cout << "\nEnter name of student " << i+1 << ": ";
cin >> names[i];
int marks[5];
cout << "Enter marks of 5 subjects:\n";
for(int j = 0; j < 5; j++) {
cout << "Subject " << j+1 << ": ";
cin >> marks[j];
}
// Calculate percentage
percentages[i] = calculatePercentage(marks, 5);
// Display result using pointers
displayStudent(&names[i], &percentages[i]);
// Check admission
checkAdmission(percentages[i]);
}
return 0;
}


== See also ==
== See also ==
Line 121: Line 174:
* {{Official website|http://www.flowgorithm.org/}}
* {{Official website|http://www.flowgorithm.org/}}


[[Category:Visual programming languages]]
[[Category:Flowchart-based visual programming languages]]
[[Category:Educational programming languages]]
[[Category:Educational programming languages]]
[[Category:Educational software]]
[[Category:Educational software]]

Latest revision as of 12:09, 20 August 2026

Flowgorithm
ParadigmStructured, imperative
Designed byDevin Cook
First appeared2014
Stable release
4.5.0 / October 8, 2024
Typing disciplineStatic, strong, safe
Implementation languageC#
OSWindows
LicenseFreeware
Filename extensions.fprg
Websiteflowgorithm.org
Influenced by
Flowcharts

Flowgorithm is a graphical authoring tool which allows users to write and execute programs using flowcharts. The approach is designed to emphasize the algorithm rather than the syntax of a specific programming language.[1] The flowchart can be converted to several major programming languages. Flowgorithm was created at Sacramento State University.[2]

Origin of name

[edit | edit source]

The name is a portmanteau of "flowchart" and "algorithm".[3]

Supported programming languages

[edit | edit source]

Flowgorithm can interactively translate flowchart programs into source code written in other programming languages. As the user steps through their flowchart, the related code in the translated program is automatically highlighted. The following programming languages are supported:[4]

Multilingual support

[edit | edit source]

Flowgorithm supports the following languages:[5]

Graphical shapes

[edit | edit source]

Flowgorithm combines the classic flowchart symbols and those used by SDL diagrams. The color of each shape is shared by the associated generated code and the console window. The colors can be changed to several built-in themes.

  1. include <iostream>

using namespace std; // Function to calculate percentage float calculatePercentage(int marks[], int size) {

   int sum = 0;
   for(int i = 0; i < size; i++) {
       sum += marks[i];
   }
   return (float)sum / size;

} // Function to check admission eligibility void checkAdmission(float percentage) {

   if(percentage >= 80) {
       cout << "Admission in Computer Science\n";
   }
   else if(percentage >= 70) {
       cout << "Admission in Software Engineering\n";
   }

else if(percentage >= 60) {

       cout << "Admission in Information Technology\n";
   }
   else if(percentage >= 50) {
       cout << "Admission in Business Studies\n";
   }
   else {
       cout << "Sorry! Not eligible for admission\n";
   }

} // Function using pointer to display student data void displayStudent(string *name, float *percentage) {

   cout << "\n--- Student Result ---\n";
   cout << "Name: " << *name << endl;
   cout << "Percentage: " << *percentage << "%" << endl;

} int main() {

   int numStudents;

cout << "Enter number of students: ";

   cin >> numStudents;
string names[numStudents];
   float percentages[numStudents];
   for(int i = 0; i < numStudents; i++) {
       cout << "\nEnter name of student " << i+1 << ": ";
       cin >> names[i];

int marks[5];

       cout << "Enter marks of 5 subjects:\n";
for(int j = 0; j < 5; j++) {
           cout << "Subject " << j+1 << ": ";
           cin >> marks[j];
       }

// Calculate percentage

       percentages[i] = calculatePercentage(marks, 5);

// Display result using pointers

       displayStudent(&names[i], &percentages[i]);
 // Check admission
       checkAdmission(percentages[i]);
   }
return 0;

}

See also

[edit | edit source]

Other educational programming languages include:

References

[edit | edit source]
  1. ↑ "ASEE PSW-2015 Conference Proceedings" (PDF). asee.org. p. 158. Retrieved 2016-05-04.
  2. ↑ Kourouma, Mathieu (22 October 2016). "Capabilities and Features of Raptor, Visual Logic, and Flowgorithm for Program Logic and Design". ResearchGate. Retrieved 16 July 2017.
  3. ↑ "Info". Flowgorithm. Archived from the original on 2016-03-16. Retrieved 2016-01-15.
  4. ↑ "Features". Flowgorithm. Archived from the original on 2015-12-09. Retrieved 2016-01-15.
  5. ↑ "Flowgorithm - Flowchart Programming Language". flowgorithm.org. Archived from the original on 2025-11-01. Retrieved 2025-11-01.
[edit | edit source]