• Contact Us
Wednesday, December 21, 2022
-18 °c
Teman Ngoding
  • Home
  • Tutorial
    • Laravel
    • Codeigniter
    • PHP
    • Golang
    • Java
    • Javascript
    • React JS
    • SQL
    • Problem Solution
  • Video Tutorial
    • Video Laravel
    • Video Codeigniter
    • C++
    • Video Git
  • Events
  • Berita
  • Donate
  • Indonesia
    • English
No Result
View All Result
Teman Ngoding
  • Home
  • Tutorial
    • Laravel
    • Codeigniter
    • PHP
    • Golang
    • Java
    • Javascript
    • React JS
    • SQL
    • Problem Solution
  • Video Tutorial
    • Video Laravel
    • Video Codeigniter
    • C++
    • Video Git
  • Events
  • Berita
  • Donate
  • Indonesia
    • English
No Result
View All Result
Plugin Install : Cart Icon need WooCommerce plugin to be installed.
Teman Ngoding
No Result
View All Result

Basic Programming – Structured Control Theorem

admin by admin
September 23, 2022
in Laravel
0 0
0
Home Tutorial Laravel

This post is also available in: English

The Structured Control Theorem is a basic part of programming that you must learn to become a programmer. Structured Control Theorem is a concept of structured programming. The control structure is a program flow structure that is often used by programmers. There are three types of control structures that we will discuss this time, including:

  1. Sequence
  2. Selection
  3. Repetitation

Sequance

Sequence is an instruction that is executed sequentially according to the instruction flow. This diagram is divided into two dimensions, namely vertical and horizontal which shows the objects. This diagram is divided into two dimensions, namely vertical and horizontal which shows the objects.

The purpose of the sequence diagram is to determine the sequence of events to produce the desired output. As well as describe the workflow of an activity and describe the flow of data in more detail.

Sequence has several components that are often used.

  • Actor

The chord component serves to describe the user as a user who is outside the system who interacts with the system.

  • Lifeline

The lifeline component serves to describe the shape of the dotted line. This component has a box that has objects to describe the object’s activities.

  • Activation box

Activation box component serves to represent the time it takes the object to complete the object.

  • Object

The object component serves to describe having a box shape that contains the object name with an underline.

  • Message

The message component serves to describe communication between objects.

A basic example of a sequence diagram flow:

Instructions executed on the flow will be sorted from top to bottom according to the instructions.

Example of a sequence diagram on an ATM machine.

Example of a sequence diagram on the manufacture of an ATM machine system (Source: lucidchart.com)

Selection

Selection is an instruction flow where an instruction will be executed after certain conditions are met.

There are two selection models:

  • if – else
  • case

If-else & Case

Is a model to create a branching condition when processing a data, it will be checked first before the next data execution.

In the world of programming, it can be called branching, often made to condition the input and output processes. Branching in the programming world means a decision-making process.

An example of an if-else is as follows:

if (kondisi) {
 ….
}
else {
 ….

An example of this case is as follows;

switch (var) {
case nilai1: ….;
break;
default : ….;
}

Here is the diagram format.

Repetation

Repetition is a flow of instructions that function to be done repeatedly until the condition is reached.

In programming this can be done by looping. Loops can function to run code repeatedly with a certain number of up to a predetermined number.

We can use two repetition models, namely:

  • for
  • while

for repeat

We can use this collection as a repetition at the beginning of the format. Before you use repetition you must first determine how many times this repetition will occur.

Example using for:

for (initialValue; valueFinalLimit; multiplication) {
 ….
}
let text = "";
for (x=0; x<3; x++) {
   text += "The number is " + i +;
}


output:
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4

Example diagram for:

Those are some Structured Controls that we can learn for a basic understanding of programming.

Thanks.

ShareTweetShare
admin

admin

Next Post
Access MongoDB With Node.JS

Akses MongoDB Dengan Node.JS

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
Tutorial CodeIgniter 4 part 1 ~ RESTful API JWT Authentication

Tutorial CodeIgniter 4 part 1 ~ RESTful API JWT Authentication

June 2, 2022
Codeigniter 4 ~ Membuat Notifikasi Menggunakan SweetAlert

Codeigniter 4 ~ Membuat Notifikasi Menggunakan SweetAlert

June 8, 2022
Tutorial Codeigniter 4 ~ Login dan Register

Tutorial Codeigniter 4 ~ Login dan Register

May 30, 2022
REST API Login dan Register Node.js dengan JWT

REST API Login dan Register Node.js dengan JWT

July 28, 2022
Tutorial Codeigniter 4 ~ Login dan Register

Tutorial Codeigniter 4 ~ Login dan Register

5
Rekomendasi tempat belajar pemrograman

Rekomendasi tempat belajar pemrograman

3
Menghilangkan Public dan Index.php dari URL Codeigniter 4

Menghilangkan Public dan Index.php dari URL Codeigniter 4

2
Membuat Sitemap Otomatis Codeigniter 4

Membuat Sitemap Otomatis Codeigniter 4

1
Access MongoDB With Node.JS

Akses MongoDB Dengan Node.JS

September 26, 2022
Teorema Structured Control

Basic Programming – Structured Control Theorem

September 23, 2022
WEB CRUD LocalStorage Menggunakan JavaScript

WEB CRUD LocalStorage Menggunakan JavaScript

September 22, 2022
DOM dan GOM Javascript

Perbedaan BOM Dan DOM Pada JavaScript

September 20, 2022
Teman Ngoding

Teman Ngoding tempat berbagi tutorial pemrograman
Read more

Categories

  • Berita
  • C++
  • Codeigniter
  • Events
  • Flutter
  • Golang
  • Java
  • Javascript
  • Laravel
  • MongoDB
  • News
  • Node JS
  • Pemrograman
  • PHP
  • Problem Solution
  • React JS
  • SQL
  • Tutorial
  • TypeScript
  • TypeScript
  • Video Codeigniter
  • Video Git
  • Video Laravel
  • Video Tutorial

Tags

ajax belajar golang belajar reactjs blog browser seluler Cara mendapatkan Uang dari Blog codeigniter codeigniter 3 codeigniter 4 codeigniter4 embed html Error Handling flutter flutter vs react native golang golang dasar html infinite scroll javascript javascript tutorial laravel laravel 8 laravel9 laravel 9 load more ajax Menggunakan Multiple select2 dan menyimpan dengan format json mongodb nodejs pdf pemrograman ajax pemrograman golang pemrograman php reactjs reactjs tutorial reactjs vs react native rest api rest api codeigniter 4 tutorial codeigniter 4 tutorial golang tutorial javascript tutorial laravel tutorial laravel 8 tutorial nodejs tutorial reactjs uang dari blog

Recent News

Access MongoDB With Node.JS

Akses MongoDB Dengan Node.JS

September 26, 2022
Teorema Structured Control

Basic Programming – Structured Control Theorem

September 23, 2022

© 2022 Teman Ngoding.

No Result
View All Result
  • Home
  • Tutorial
    • Laravel
    • Codeigniter
    • PHP
    • Golang
    • Java
    • Javascript
    • React JS
    • SQL
    • Problem Solution
  • Video Tutorial
    • Video Laravel
    • Video Codeigniter
    • C++
    • Video Git
  • Events
  • Berita
  • Donate
  • Indonesia
    • English

© 2022 Teman Ngoding.

Login to your account below

Forgotten Password?

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • English
  • Indonesia