Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TUGAS ALGORITMA LOOPING INDIVIDU
#1
Rainbow 
Nama : Yosi Patricia Yulintan
Kelas : . 13. 1A. 21
NIM : 13180690
Tugas Algoritma Membuat Program untuk STRUKTUR LOOPING WHILE, DO…..WHILE, DAN FOR
 
WHILE
1.      FLOWCHART WHILE
 
 
KONDISI

 
KODE BLOK

 
 

 


 


                                                                                                                  FALSE

 

                                      

                                       TRUE

 

 

 

PROGRAM C++

#include<iostream.h>

#include<conio.h>

#include<stdio.h>

#include<string.h>

 

main()

{

int a=9;

while(a>0)

{

cout<<"SAYA JOMBLO  "<<a<<endl;

a=a-2;

}

getch();

}

 

DO...WHILE

2.   FLOWCHART DO...WHILE

 

KODE BLOK


KONDISI

 


 

 

 

 

 

 


                  TRUE                                                                           

                                                                          

      PROGRAM C++                                                               FALSE

#include<iostream.h>

#include<conio.h>

#include<stdio.h>

#include<string.h>

 

main()

{

int counter;

counter=0;

do

{

cout<<"AKU CINTA INDONESIA"<<endl;

}

while(counter<15);

 

 

getch();

}

 

 

FOR

3.   FLOWCHART FOR

 

 

Insialisasi_nilai


kondisi_nilai


Kode Blok


operasi_perubahan_nilai

 


 

 

 

 


                                                                                                                                                             FALSE

 

 

 

TRUE

 

 

 

 

 
PROGRAM C++

#include<iostream.h>

#include<conio.h>

#include<stdio.h>

#include<string.h>

 

 

main()

{

 

int x;

cout<<"Masukan nominal :";

cin>>x;

for(int i=1;i<=x;i=i+1) {

cout<<"KULIAH? BSI AJA !!  "<<i<<endl;

}

getch();

}

 

Terimakasih J


Attached Files
.docx   TUGAS INDIVIDU ALGORITMA LOOPING.docx (Size: 72.45 KB / Downloads: 3)
Reply
#2
TUGAS INDIVIDU

ARIF DWI SAPUTRA

13.1A.21

13180695


1. LOOPING WHILE

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string.h>

main()
{

int x=1;
while (x<=9)
{
cout<<"silahkan tunggu ...."<<endl<<endl;
x++;
}
getch();
}

2. DO WHILE

#include <iostream.h>

int main()
{
float number, sum=0.0;

      do{
      cout<<"Enter a number : ";
         cin>>number;
         sum += number;
      }
      while(number != 0.0);
      cout<<"Total sum = "<<sum;

      return 0;
}

3. FOR

#include <iostream.h>
#include <conio.h>


int main()
{
int a;
   for(a=1;a<=10;a++) {
    cout <<a<<endl;
      }
      getch();
}


MUAH. Heart


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 60.13 KB / Downloads: 2)
Reply
#3
Nama : Ridho Rafif Nawal S
Kelas : 13.1A
NIM : 13180435


1. WHILE 

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string.h>

main()
{

int x=1;
while (x<=9)
{
cout<<"silahkan tunggu ...."<<endl<<endl;
x++;
}
getch();
}

2.DO WHILE

#include <iostream.h>

int main()
{
float number, sum=0.0;

      do{
      cout<<"Enter a number : ";
         cin>>number;
         sum += number;
      }
      while(number != 0.0);
      cout<<"Total sum = "<<sum;

      return 0;
}

3. FOR

#include <iostream.h>
#include <conio.h>


int main()
{
int a;
   for(a=1;a<=10;a++) {
    cout <<a<<endl;
      }
      getch();
}

MANTUL PAK  Big Grin


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 60.13 KB / Downloads: 1)
Reply
#4
Nama : Devi Eka Indra Nur Khofifah
Nim    : 13180036
Kelas  : 13.1A.21

1. LOOPING WHILE

#include <iostream.h>
#include <conio.h>

main()
{

 int i;
 i = 1;
 while (i <= 10)

{
  cout<<"logika dan algoritma "<<i<<endl;
  i++;
}

getch();
}


2. LOOPING DO WHILE

#include <iostream.h>
#include <conio.h>


main()
{


int i;
i = 1;
do {
cout<<"Saya devi "<<i<<endl;
i++;
}
while (i <= 10);

getch ();
}


3. LOOPING FOR

#include <iostream.h>
#include <conio.h>

main()
{

 int i,x;
 cout<<"Masukkan batas :";
 cin>>x;
 for(i=1; i<=x; i++)
{
 cout<<i<<" ";
}

getch();
}


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 59.77 KB / Downloads: 3)
Reply
#5
Nama : Bangkit Kusuma Pradana
Nim    : 13180700
Kelas  : 13.1A.21

1. LOOPING WHILE

#include <iostream.h>
#include <conio.h>

main()
{

 int i;
 i = 1;
 while (i <= 10)

{
  cout<<"logika dan algoritma "<<i<<endl;
  i++;
}

getch();
}


2. LOOPING DO WHILE

#include <iostream.h>
#include <conio.h>


main()
{


int i;
i = 1;
do {
cout<<"Bangkit Kusuma "<<i<<endl;
i++;
}
while (i <= 10);

getch ();
}


3. LOOPING FOR

#include <iostream.h>
#include <conio.h>

main()
{

 int i,x;
 cout<<"Masukkan batas :";
 cin>>x;
 for(i=1; i<=x; i++)
{
 cout<<i<<" ";
}

getch();
}


Sleepy


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 61.98 KB / Downloads: 1)
Reply
#6
Nama : Bisma Setya N
Kelas : 13.1A
NIM : 13180692


1.WHILE

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string.h>

main()
{

int x=1;
while (x<=9)
{
cout<<"silahkan tunggu ...."<<endl<<endl;
x++;
}
getch();
}


2. FOR

#include <iostream.h>
#include <conio.h>


int main()
{
int a;
   for(a=1;a<=10;a++) {
    cout <<a<<endl;
      }
      getch();
}


3. DO WHILE

#include <iostream.h>

int main()
{
float number, sum=0.0;

      do{
      cout<<"Enter a number : ";
         cin>>number;
         sum += number;
      }
      while(number != 0.0);
      cout<<"Total sum = "<<sum;

      return 0;
}

Cool


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 60.13 KB / Downloads: 2)
Reply
#7
Nama : DIMAS FERDIANSYAH
Kelas : 13.1A.21
NIM : 13180007


1. WHILE

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string.h>

main()
{

int x=1;
while (x<=9)
{
cout<<"silahkan tunggu ...."<<endl<<endl;
x++;
}
getch();
}

2. FOR

#include <iostream.h>
#include <conio.h>


int main()
{
int a;
   for(a=1;a<=10;a++) {
    cout <<a<<endl;
      }
      getch();
}

3. DO WHILE

#include <iostream.h>

int main()
{
float number, sum=0.0;

      do{
      cout<<"Enter a number : ";
         cin>>number;
         sum += number;
      }
      while(number != 0.0);
      cout<<"Total sum = "<<sum;

      return 0;
}

Cool


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 60.13 KB / Downloads: 0)
Reply
#8
Nama : Rima Lontan Dhamayanti
Nim : 13180272
Kelas : TI 13.1A.21

1. LOOPING WHILE 

#include <iostream.h>
#include <conio.h>

main()
{

 int i;
 i = 1;
 while (i <= 10)

{
  cout<<"logika dan algoritma "<<i<<endl;
  i++;
}

       getch();

    }


2.LOOPING DO WHILE

#include <iostream.h>
#include <conio.h>


main()
{


int i;
i = 1;
do {
cout<<"Saya rima "<<i<<endl;
i++;
}
while (i <= 10);

getch ();
}

3.LOOPING FOR

#include <iostream.h>
#include <conio.h>

main()
{

 int i,x;
 cout<<"Masukkan batas :";
 cin>>x;
 for(i=1; i<=x; i++)
{
 cout<<i<<" ";
}

getch();
}


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 59.8 KB / Downloads: 0)
Reply
#9
Nama : OKI CANDRA AGUSTIAN
Kelas  : 13 1A 21
NIM    : 13180411
 
Tugas Algoritma Looping


1.WHILE

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string.h>

main()
{

int x=1;
while (x<=9)
{
cout<<"silahkan tunggu ...."<<endl<<endl;
x++;
}
getch();
}

2. DO..WHILE

#include <iostream.h>

int main()
{
float number, sum=0.0;

      do{
      cout<<"Enter a number : ";
         cin>>number;
         sum += number;
      }
      while(number != 0.0);
      cout<<"Total sum = "<<sum;

      return 0;
}

3.FOR

#include <iostream.h>
#include <conio.h>


int main()
{
int a;
   for(a=1;a<=10;a++)
 {
    cout <<a<<endl;
      }
      getch();
}


Attached Files
.docx   TUGAS INDIVIDU FLOWCHART.docx (Size: 60.13 KB / Downloads: 0)
Reply
#10
NAMA: LUFTI NURLAELI SAFITRI
NIM: 13180527
KELAS: 13.1A
 
1.while
#include <stdio.h>
#include <string.h>
#include <iostream.h>
#include <conio.h>
main()
{
int i=1;
while(i<=15)
{
cout<<”nama saya adalah rizal”<<i<<endl;
++i;
}
getch();
}
2.do……while
#include <stdio.h>
#include <string.h>
#include <iostream.h>
#include <conio.h>
main()
{
int i=10;
do
{
cout<<”nama saya adalah rizal”<<i<<endl;
i=i+2;
}
while(i<=100);
getch();
}
3.for
#include <stdio.h>
#include <string.h>
#include <iostream.h>
#include <conio.h>
main()
{
int x;
cout<<”masukan nomor:”;
cin>>x;
for(int i=1;i<=100;i=i+1){
cout<<”nama saya adalah rizal”<<i<<endl;
}
getch();
}
 
[img=111x35]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps88DE.tmp.png[/img]
[img=6x6]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps88EF.tmp.png[/img][img=78x311]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps88F0.tmp.png[/img][img=9x9]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps88F1.tmp.png[/img][img=9x9]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps88F2.tmp.png[/img]
[img=10x31]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8902.tmp.png[/img] 
[img=8x34]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8903.tmp.png[/img][img=166x65]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8904.tmp.png[/img][img=8x42]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8915.tmp.png[/img][img=126x81]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8916.tmp.png[/img][img=9x9]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8917.tmp.png[/img]
[img=127x195]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8918.tmp.png[/img][img=15x12]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8928.tmp.png[/img][img=112x41]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8929.tmp.png[/img]
[img=130x41]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps892A.tmp.png[/img][img=8x35]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps893B.tmp.png[/img][img=158x72]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps893C.tmp.png[/img][img=8x53]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps893D.tmp.png[/img][img=163x96]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps893E.tmp.png[/img][img=135x41]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps894F.tmp.png[/img][img=8x51]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8950.tmp.png[/img]
 
 
[img=71x168]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8951.tmp.png[/img] 
 
 
 
 
 
 

 

[img=162x263]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8961.tmp.png[/img][img=146x50]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8962.tmp.png[/img][img=17x14]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8963.tmp.png[/img][img=8x20]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8974.tmp.png[/img][img=173x59]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8975.tmp.png[/img][img=8x32]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8976.tmp.png[/img][img=242x66]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8987.tmp.png[/img][img=153x59]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8988.tmp.png[/img][img=8x26]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps8989.tmp.png[/img][img=210x53]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps898A.tmp.png[/img][img=8x29]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps899A.tmp.png[/img] 
[img=56x312]file:///C:\Users\ASUS\AppData\Local\Temp\ksohtml\wps899B.tmp.png[/img]


Attached Files
.zip   tugas individu algoritma lutfi.zip (Size: 50.6 KB / Downloads: 0)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)