Monday

Use CodeBlocks to generate Nassi–Shneiderman Diagrams (NSDs) automatically

Subject: Use CodeBlocks to generate Nassi–Shneiderman Diagrams (NSDs) automatically

What is the Nassi-Shneiderman Diagram?
The Nassi-Shneiderman Diagram (NSD) is a graphical design representation for structured programming in computer programming. The Nassi-Shneiderman Diagram is also known as structured programming diagram.

What does the Nassi-Shneiderman Diagram look like?
NS diagram follows a top down design in a straightforward way using nested boxes to represent fundamental building blocks of a computer program.

What are the Nassi-Shneiderman Diagram building blocks?
The common Nassi-Shneiderman Diagram building blocks for computer programming are sequence of instructions block, true/false selection block, multiple selections block, test first loop block, test last loop block.

How to use CodeBlocks to generate Nassi–Shneiderman Diagrams automatically?
You do not need to create CodeBlocks project to generate Nassi-Shneiderman Diagrams.
Write a complete C++ program of one cpp file.
Highlight code lines in the main() function body.
Right-click on the highlighted code, select Nassi Shneiderman and then select Create Diagram to create Nassi Shneiderman Diagram automatically as an alternative to the flowchart diagram.

No comments:

Measure execution time with Julia, example using sorting algorithms

# random integers between 1 and 100 inclusive, generate thousands of them x = rand ( 1 : 100 , 100000 ) @time sort (x; alg=InsertionSort, r...