Flowgorithm
Page Module:Message box/ambox.css has no content.
Page Module:Infobox/styles.css has no content.
| Flowgorithm | |
|---|---|
| Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found. | |
| Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found. | |
| Paradigm | Structured, imperative |
| Designed by | Devin Cook |
| First appeared | 2014 |
| Template:Infobox software/simple | |
| Typing discipline | Static, strong, safe |
| Implementation language | C# |
| OS | Windows |
| License | Freeware |
| Filename extensions | .fprg |
| Website | flowgorithm |
| 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
The name is a portmanteau of "flowchart" and "algorithm".[3]
Supported programming languages
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] Script error: No such module "Template wrapper".
Multilingual support
Flowgorithm supports the following languages:[5]
Script error: No such module "Template wrapper".
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.
- 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
Other educational programming languages include:
- Alice
- DRAKON
- LARP
- Microsoft Small Basic
- Raptor
- Scratch
- Blockly, interface used by Scratch to make the code blocks
- Visual Logic
References
Page Template:Reflist/styles.css has no content.
- ^ Page Module:Citation/CS1/styles.css has no content."ASEE PSW-2015 Conference Proceedings" (PDF). asee.org. p. 158. Retrieved 2016-05-04.
- ^ Page Module:Citation/CS1/styles.css has no content.Kourouma, Mathieu (22 October 2016). "Capabilities and Features of Raptor, Visual Logic, and Flowgorithm for Program Logic and Design". ResearchGate. Retrieved 16 July 2017.
- ^ Page Module:Citation/CS1/styles.css has no content."Info". Flowgorithm. Archived from the original on 2016-03-16. Retrieved 2016-01-15.
- ^ Page Module:Citation/CS1/styles.css has no content."Features". Flowgorithm. Archived from the original on 2015-12-09. Retrieved 2016-01-15.
- ^ Page Module:Citation/CS1/styles.css has no content."Flowgorithm - Flowchart Programming Language". flowgorithm.org. Archived from the original on 2025-11-01. Retrieved 2025-11-01.
External links
Page Module:Side box/styles.css has no content.Page Template:Sister project/styles.css has no content.
