Вы находитесь на странице: 1из 6

PRACTICAL TASK PROGRAMMING

Submitted To Meet Lecture Practices Programming

Arranged By :

MUHAMMAD FAIZ AL HAFIZH WINOF PUTRA


17063099

ELECTRICAL ENGINEERING EDUCATION


PADANG STATE UNIVERSITY
YEAR 2019
A. Understanding Dev C++
Dev-C++ is a free full-featured integrated development environment (IDE) distributed under
the GNU General Public License for programming in C and C++.

It is bundled with, and uses, the MinGW or TDM-GCC 64bit port of the GCC as its compiler.
Dev-C++ can also be used in combination with Cygwin or any other GCC-based compiler.[1]

Dev-C++ is generally considered a Windows-only program, but there are attempts to create a
Linux version: header files and path delimiters are switchable between platforms.
B. Conculasion Code
Instruksi understanding
Include for reading programs that will be filled in tells the preprocessor
to enter the standard iostream file.
Using namesapce std used to access the functions that are used or the code that will
be applied to the source code
Int main used to execute code that will be used
Cout used to save a subset of input words that are entered
Return used for repeating all programs
// used to mark the program so as not to forget where the
program
While looping is still below or equal, while will increase if int is
smaller than 0 with program ++.
Do while the beginning of the loop statement, the terms or limits of
repetition, where the loop will be done if the conditions are
still fulfilled or true.
If when the value in parentheses is in niminal and the conditions
are the same then the program will run in the if block
Else if for place values and character differences

For Repeat command values have a minimum


EXEMPLE PROGRAMMING
1. Program 1

the result

Program Explanation
this program is used to read arrays that have been created so that the results can be seen, the
int set is made to read the array that has been filled in then for use to be able to read the
results of the program in a neat stack.
Flowchart

START

Int himpunan
[10] =
{1,2,3,4,5,6,7,8,
9}

END i=0;i<len;i++

i=0;i<len;i++

Print i
Print himpunan [i]

Repeat function for


Repeat command values have a minimum, date so that array can to read.

2. Program 2
The result

Program Explanation
this program is used to read 2 arrays that have been created so that the results can be seen, the
int set is made to read the array that has been filled in then for use to be able to read the
results of the program in a neat stack.

Flowchart
START

Int himpunan [4][2] =


{{1,2},{3,4},{5,6},{7,8}};
Int len sizeof (himpunan)
Int len2 = (himpunan[0])
Int len1 = len/len2

i=0;i<len1;i++

J=0;j<len2;j++

Print
himpunan
[i][j]

J+1

END

Repeat function for


used to read int len1 len2 so that the input is read by for it, therefore it takes 2 for to read
because in this program it uses 2 arrays.
Program 3

The Result

Program Explanation
from this program the string is used to read to an array, the results of this program explain the
string of desert state universities the results of the first words of the university the results of
the word negatives can be concluded that this program to read 2 words into separate.
The result acording the position of the words. If the position of the letter as it is on the
program then letter words that appear in the output in accordance with the position of the
letters
why string is an array because
stirng is a collection of characters so that arrays can be used to read the desired program
results

Вам также может понравиться