Catatanku Si Bendot.Tue

"Apapun yang kutahu kan kuberikan padamu, dan berharap membawa kebaikan"

Tugas Algoritma 2 (Okt.18) Ralat

leave a comment »

Udah Gw sertain juga flowchartnya,

Maav nih, jawaban yang kemarin gw posting pas di cek lagi ternyata banyak yang salah, gw salah baca soal n ngitung nya.. hhe

nih, file jawabannya yang dah gw ralat, di dalemnya juga uda ada FlowChart nya..

Link Selengkapnya : Kelik Disini

ni isinya,

Soal-01
Gambar 1
#include
void main ()
{ int n ;
printf(“Input Bilangan: “); scanf(“%i”, &n);
if (n>50)
{n = n-25;}
else
{n = n+10;}
printf(“%i”, n);
}

Gambar 2
#include
void main ()
{ int n ;
printf(“Input Bilangan: “); scanf(“%i”, &n);
if (n>50)
{n = n-25;}
n = n+10;
printf(“%i”, n);
}

Soal-02
a. 30 = 40
b. 50 = 60
c. 65 = 40

Soal-03
a. 30 = 40
b. 50 = 60
c. 65 = 50

Soal-04
#include
void main ()
{ int n ;
printf(“Input Bilangan: “); scanf(“%i”, &n);
if (n>50)
{
if (n>75)
{n = n-25;}
n = n-10;
}
else
{n = n+10;}
printf(“%i”, n);
}

Soal-05
a. 30 = 40
b. 50 = 60
c. 65 = 55
d. 75 = 65
e. 90 = 55

Soal-06.A
#include
void main ()
{ int n ;
printf(“Input Bilangan: “); scanf(“%i”, &n);
if (n>50)
{
if (n>75)
{n = n-25;}
else
{n = n-10;}
}
n = n+10;
printf(“%i”, n);
}

Soal-06.B
a. 30 = 40
b. 50 = 60
c. 65 = 65
d. 75 = 75
e. 90 = 75

Soal-07.A
#include
void main ()
{ int n ;
printf(“Input Bilangan: “); scanf(“%i”, &n);
if (n>75)
{n = n-25;}
else
{
if (n>50)
{n = n-10;}
n = n+20;
}
printf(“%i”, n);
}

Soal-07.B
#include
void main ()
{ int n ;
printf(“Input Bilangan: “); scanf(“%i”, &n);
if (n>50)
{
n = n+25;

if (n>75)
{n = n-20;}
else
{n = n-10;}
}
printf(“%i”, n);
}

Soal-08
a. 30 = 50
b. 50 = 70
c. 65 = 75
d. 75 = 85
e. 90 = 65

Soal-09
a. 30 = 30
b. 50 = 50
c. 65 = 70
d. 75 = 80
e. 90 = 95

Soal-10.A
a. 30 = 5
b. 50 = 25
c. 75 = 85

Soal-10.B
a. 30 = 5
b. 50 = 25
c. 75 = 85

Soal-10.C
a. 30 = 5
b. 50 = 25
c. 75 = 85

Soal-10.D
a. 30 = 70
b. 50 = 90
c. 75 = 60

Soal-10.E
a. 30 = 15
b. 50 = 35
c. 75 = 95
Soal-10.F
a. 30 = 15
b. 50 = 35
c. 75 = 95

Soal-11.A

Soal-11.B

Soal-12.A1

Soal-12.A2

Soal-12.B1
a. 85 = A
b. 64 = C

Soal-12.B2
a. 85 = A
b. 64 = C

Soal-13.A1

Soal-13.B2

Soal-13.C1
Soal-13.D1

Soal-13.E1

Soal-13.F1

Soal-13.A2
a. 90 = 55
b. 75 = 65
c. 50 = 60
d. 35 = 45

Soal-13.B2
a. 90 = 75
b. 75 = 75
c. 50 = 60
d. 35 = 45

Soal-13.C2
a. 90 = 65
b. 75 = 65
c. 50 = 60
d. 35 = 45

Soal-13.D2
a. 90 = 65
b. 75 = 75
c. 50 = 60
d. 35 = 45

Soal-13.E2
a. 90 = 65
b. 75 = 85
c. 50 = 70
d. 35 = 55

Soal-13.F2
a. 90 = 55
b. 75 = 40
c. 50 = 50
d. 35 = 35

Soal-14
#include
void main ()
{ int a,b,c ;
printf(“Input Bilangan A: “); scanf(“%i”, &a);
printf(“Input Bilangan B: “); scanf(“%i”, &b);
printf(“Input Bilangan C: “); scanf(“%i”, &c);
if (a>b)
{
if (a>c)
{printf(“%i”, a);}
else
{printf(“%i”, c);}
}
else
{
if (b>c)
{printf(“%i”, b);}
else
{printf(“%i”, c);}
}
}

Soal-15.A
5 7 10 = 10

Soal-15.B
5 10 7 = 10

Soal-15.C
7 5 10 = 10

Soal-15.D
7 10 5 = 10

Soal-15.E
10 5 7 = 10

Soal-15.F
10 7 5 = 10

Soal-16
Jawaban : Benar

Soal-17.A
5 7 10 = 10

Soal-17.B
5 10 7 = 7

Soal-17.C
7 5 10 = 10

Soal-17.D
7 10 5 = 10

Soal-17.E
10 5 7 = 7

Soal-17.F
10 7 5 = 10

Soal-18
Jawaban : Salah

Soal-19

Soal-20
a. 5, 7, 10 = 7
b. 5, 10, 7 = 8
c. 7, 5, 10 = 3
d. 7, 10, 5 = 6
e. 10, 5, 7 = 3
f. 10, 7, 5 = 2

FlowChartnya ada di file nya, di dl aj.. thx..

Written by bendot.tue

Oktober 17, 2010 pada 10:40 am

Tinggalkan Tanggapan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: