Wednesday, 29 January 2014

hidden picture

hjvkhv
jbkjbkjb
kjbkjbkjbk
jkjbkjbkjb
kjbkjbkjbkjb
kjbkjbkjbkjb
jkkjbkjbkjbkjbkjbkjb
kjbkjbkjb
kjbkjbkjb
kjbkjbkjbk
kjbkjbkjbkjbk
kjbkjbkjbkj
kjbkjbkjb
kjbkjbkjbkjb
kjbkjkjbkjbkjb

My-first add/subs click program

val = Controls.AddTextBox(0,0)
Controls.SetSize(val, 100, 50)
add = Controls.AddButton("+",300,0)
subs = Controls.AddButton("-",400,0)

Controls.ButtonClicked = process

Sub process
  If Controls.LastClickedButton = add then
    val1 = Controls.GetTextBoxText(val)
    val1 = val1 + 1
    Controls.SetTextBoxText(val, val1)
  Else
    val1 = Controls.GetTextBoxText(val)
    val1 = val1 - 1
    Controls.SetTextBoxText(val, val1)
  endif
 
EndSub

Tuesday, 28 January 2014

File Input and output LAB

Properties:
file.lasterror(

Operations:
file.readcontents
file.writecontents
file.readline
file.writeline
file.insertline
file.appendcontents
file.copyfile
file.deletefile
file.createdirectory
file.deletedirectory
file.getfiles
file.getdirectories
file.gettemporaryfilepath
file.getsettingsfilepath()

Bahan-bahan:
1. Sediakan sebuah file text kosong
2. Sediakan kata-kata yang akan dimasukkan

Remark:
1. jika file tidak ditemukan akan membuat file baru:
2. linefile dimulai dari angka 1
3

Write a program that performs the following steps:
  • Requests a suitable name for a directory from the user, and creates a directory of that name.
  • Downloads a file from the network, and copies it to the new directory.
  • Displays the contents of the downloaded file in the text window.
  • Accepts additional content from the user, and adds it to the file.
  • Displays the final content from the file in the text window.

Words: above, through, on, inside, up, within, down, beside, below placement


File lab

1. Read a file on a disk
How?


1. Sebelum n berubah nilai, lakukan apa yang harus dilakukan
jawab: sebelum nilai n berubah, nilai dari variable sum harus berubah

n = 0

- Program computer mempunyai kemampuan untuk mengambil nilai yang sebelumnya disimpan dan ditambahkan seperti ini: n = n + 1 atau ini: sum = sum + n

Dibandingkan dengan menggunakan array, cara seperti ini masih tergolong kurang efektif. Karena kamu hanya bisa mengambil satu nilai sebelum.

Jika menggunakan array, kamu bisa mengambil satu, dua, tiga nilai sebelum.






1. Pertama, asumsi,
2. Bangun tabel untuk memperlihatkan perubahan


Lihatkan perubahan:


Ambil kesimpulan

4.