Sumber: Agar Posting Blog tidak bisa di Copy Paste! | jagoBlog.com

Jumat, 18 Maret 2011


TUGAS KE I PEMOGRAMAN KOMPUTER

  1. CLS
PRINT “********************”
PRINT “Politeknik Kesehatan Jakarta II”
PRINT “Jurusan Teknik Elektromedik”
PRINT “********************”


  1. CLS
PRINT “********************
PRINT “Politeknik Kesehatan Jakarta II
PRINT “Jurusan Teknik Elektromedik
PRINT “Jalan Hang Jebat III, KBY
PRINT “Jakarta Selatan
PRINT “********************

Oval: START


Text Box: **************


Text Box: Politeknik Kesehatan Jakarta II


Text Box: Jurusan Teknik Elektromedik


Text Box: Jalan Hang Jebat III, KBY


Text Box: Jakarta Selatan
 


Text Box: *************
 


Oval: End


  1. CLS
PRINT “2”
PRINT 2
PRINT “3 + 6”
PRINT 3 + 6
PRINT “4 * 2”
PRINT 4 * 2
PRINT “12 / 3”
PRINT 12 / 3
PRINT “4 + ( 4 / 2)”
PRINT 4 + ( 4 / 2
PRINT “( 4 + 4 )/ 2”
PRINT ( 4 + 4 )/ 2

  1. CLS
PRINT “A”
PRINT “XYZ”
A = 5
XYZ = 12
PRINT “A”
PRINT “XYZ”
A = A * 4
XYZ = XYZ * 3
PRINT “A”
PRINT “XYZ”

Oval: START


Text Box: “A”


Text Box: “XYZ”


Text Box: A = 5


Text Box: XYZ = 12


Text Box: “A”


Text Box: “XYZ”
 


Text Box: A = A * 4
 


Text Box: XYZ = XYZ * 3


Text Box: “A”


Text Box: “XYZ”


Oval: End
5.  CLS
PRINT “********”
PRINT “Selamat siang”
PRINT “Anda terdaftar sebagai mahasiswa Jurusan Teknik Elekromedik”
INPUT “Nirm : ”, A
INPUT “Nama Anda : ”, B
INPUT “Alamat : ”, C
PRINT “Nirm : ”, A
PRINT “Nama Anda : ”, B
PRINT “Alamat : ”, C
PRINT “********”
Oval: START


Text Box: “Selamat siang”


Text Box: “Anda terdaftar sebagai mahasiswa Jurusan Teknik Elekromedik”


Text Box: INPUT “Nirm : <nirm anda>”


Text Box: INPUT “Nama Anda : <nama anda>”


Text Box: INPUT “Alamat : <alamat anda>”


Text Box: “Nirm : <nirm anda>”


Text Box: “Nama Anda : <nama anda>”
 


Text Box: “Alamat : <alamat anda>”


Text Box: “********”
 


Oval: End


6.      Oval: STARTCLS
INPUT “Nilai”
If “nilai > 55” then
Print “Lulus”
Input“A”
 
Else “Nilai < 55” then
Print “Tidak Lulus”
END IF
 
















7.       CLS
INPUT “MASUKKAN NILAI”, A
IF “A > 84” THEN
   PRINT “A”
ELSE
IF “B > 69” THEN
PRINT “B”
ELSE
   IF “C  > 54” THEN
          PRINT “C”
   ELSE
IF “D > 43” THEN
PRINT “D”
ELSE
                 PRINT “E”
END IF
END IF
END IF














Oval: START

Text Box: INPUT “MASUKKAN NILAI”

Diamond: > 84                       T
 


Diamond: > 69          Y                          T
Diamond: > 54Text Box: PRINT “A”
PRINT “B”

 
                                Y                         T
 


                                                  Y
 

















8.      CLS
A = 1
MULAI :
PRINT “INI CETAKAN KE : ”, A
PRINT “TEKNIK ELEKTROMEDIK”
A = A + 1
IF A < 11 THEN
    GOTO MULAI
Oval: STARTELSE
    PRINT “SELESAI”
END IF

 









Diamond: A < 11                                                                                                                                      Y
 

                                                                                                            T
 












9.      CLS
FOR A = 1 TO 10
MULAI :
Oval: START
“SELESAI”

 
Diamond: A < 11
A = A + 1

 
“TEKNIK ELEKTROMEDIK”

 
“INI CETAKAN KE : ”,A
 
Oval: END              PRINT “INI CETAKAN KE : ”, A
PRINT “TEKNIK ELEKTROMEDIK”
NEXT
       PRINT “SELESAI”
END IF
 








                                                                                                                                          Y


                                                                                                               T

Tidak ada komentar: