Pages

Latihan 4 Struktur Data

Contoh 1
program lat_recor;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type  mahasiswa=record
      nim:integer;
      nama,jurusan,alamat:string;
end;

var mhs1,mhs2,mhs3,mhs4,mhs5:mahasiswa;
begin
      writeln('----------------------');
      writeln('input data mahasiswa 1');
      writeln('----------------------');
      write('nim mhs1     : ');readln(mhs1.nim);
      write('nama mhs1    : ');readln(mhs1.nama);
      write('jurusan mhs1 : ');readln(mhs1.jurusan);
      write('alamat mhs1  : ');readln(mhs1.alamat);
      writeln;
      writeln('----------------------');
      writeln('input data mahasiswa 2');
      writeln('----------------------');
      write('nim mhs2     : ');readln(mhs2.nim);
      write('nama mhs2    : ');readln(mhs2.nama);
      write('jurusan mhs2 : ');readln(mhs2.jurusan);
      write('alamat mhs2  : ');readln(mhs2.alamat);
      writeln;
      writeln('----------------------');
      writeln('input data mahasiswa 3');
      writeln('----------------------');
      write('nim mhs3     : ');readln(mhs3.nim);
      write('nama mhs3    : ');readln(mhs3.nama);
      write('jurusan mhs3 : ');readln(mhs3.jurusan);
      write('alamat mhs3  : ');readln(mhs3.alamat);
      writeln;
      writeln('----------------------');
      writeln('input data mahasiswa 4');
      writeln('----------------------');
      write('nim mhs4     : ');readln(mhs4.nim);
      write('nama mhs4    : ');readln(mhs4.nama);
      write('jurusan mhs4 : ');readln(mhs4.jurusan);
      write('alamat mhs4  : ');readln(mhs4.alamat);
      writeln;
      writeln('----------------------');
      writeln('input data mahasiswa 5');
      writeln('----------------------');
      write('nim mhs5     : ');readln(mhs5.nim);
      write('nama mhs5    : ');readln(mhs5.nama);
      write('jurusan mhs5 : ');readln(mhs5.jurusan);
      write('alamat mhs5  : ');readln(mhs5.alamat);
      writeln;
      writeln;
      writeln('                  DAFTAR MAHASISWA                       ');
      writeln('=========================================================');
      writeln('|    nim    |     nama     |    jurusan    |    alamat   |');
      writeln('=========================================================');
      writeln(mhs1.nim:10,mhs1.nama:13,mhs1.jurusan:15,mhs1.alamat:15);
      writeln(mhs2.nim:10,mhs2.nama:13,mhs2.jurusan:15,mhs2.alamat:15);
      writeln(mhs3.nim:10,mhs3.nama:13,mhs3.jurusan:15,mhs3.alamat:15);
      writeln(mhs4.nim:10,mhs4.nama:13,mhs4.jurusan:15,mhs4.alamat:15);
      writeln(mhs5.nim:10,mhs5.nama:13,mhs5.jurusan:15,mhs5.alamat:15);

      readln;
  { TODO -oUser -cConsole Main : Insert code here }
end.


Contoh 2
program lat2_recor;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type  penjualan=record
      kode,harga:integer;
      barang:string;
end;

var jual1,jual2,jual3:penjualan;
begin
      writeln('----------------------');
      writeln('input data penjualan 1');
      writeln('----------------------');
      write('kode jual1   : ');readln(jual1.kode);
      write('barang jual1 : ');readln(jual1.barang);
      write('harga jual1  : ');readln(jual1.harga);
      writeln;
      writeln('----------------------');
      writeln('input data penjualan 2');
      writeln('----------------------');
      write('kode jual2   : ');readln(jual2.kode);
      write('barang jual2 : ');readln(jual2.barang);
      write('harga jual2  : ');readln(jual2.harga);
      writeln;
      writeln('----------------------');
      writeln('input data penjualan 3');
      writeln('----------------------');
      write('kode jual3   : ');readln(jual3.kode);
      write('barang jual3 : ');readln(jual3.barang);
      write('harga jual3  : ');readln(jual3.harga);
      writeln;
      writeln;
      writeln('            DAFTAR PENJUALAN                ');
      writeln('   ============================');
      writeln('   |  kode  |  barang  | harga |');
      writeln('   ============================');
      writeln(jual1.kode:10,jual1.barang:10,jual1.harga:10);
      writeln(jual2.kode:10,jual2.barang:10,jual2.harga:10);
      writeln(jual3.kode:10,jual3.barang:10,jual3.harga:10);
      writeln;

      writeln('TOTAL HARGA : ',jual1.harga+jual2.harga+jual3.harga);

      readln;
  { TODO -oUser -cConsole Main : Insert code here }
end.


Istilah-Istilah Berbahasa Inggris di dalam Pembelajaan Tentang Komputer




Computer User

Programmer is someone who writes computer software.

Web designer is someone who planning and creating a website.

Operator is someone who operate a computer.

Gamers is someone who played role-playing games and wargames in computer.

Cracker is someone who breaks into someone else's computer system, often on a network; bypasses passwords or licenses in computer programs; or in other ways intentionally breaches computer security.

Password cracker is someone who recovers encrypted passwords from data that has been stored in or transmitted by a computer system or associated to accounts as a measure for restricting access to a computer.

Software cracker is someone who modifies software to remove or disable copy protection and digital rights management features.

 

Hacker is a term used by some to mean "a clever programmer" and by others, especially those in popular media, to mean "someone who tries to break into computer systems."

 

System Administrator is a person who operates a computer system.

 

Surfers is a person who “surfing” in the internet.

 

Software developer is a person concerned with facets of the software development process.


Software engineer is an engineer who applies the principles of software engineering to the design, development, testing, and evaluation of the software and systems that make computers or anything containing software, such as computer chips, work.


Action
Reload is to start a program over again, usually because it has crashed or because it has begun to display aberrant behavior.

Restart  is a command to turn off and it will be turn on again automatically.

Update  is a way to add something to be new.

Eject is a command to remove an input device.

Convert  is a command to change filetype of data.

Chatting is talking to other people who are using the Internet at the same time you are.

Drag is an action to move with your finger keep press in the left-click of mouse.

Delete is an action to remove.

Insert  is an action to add something like pictures, chart, line, etc.

Exit is a command to close/quit.

Burn is an action to fill a CD with data.

Recovery is an action to return data to its original condition if files have become damaged.

Reboot is to restart a computer and reload the operating system.

Build can mean either to write code or to put individual coded components of a program together.

Testing is finding out how well something works.

Install is the act of putting the program onto a computer system so that it can be executed.

Uninstall is a utility software designed to remove other software or parts of it from a computer. It is the opposite of an installer.

Hardware
Scanner is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image.

Printer  a peripheral which produces a text or graphics of documents stored inelectronic form, usually on physical print media such as paper or transparencies.

Monitor  is an electronic visual display for computers.

Webcam  is a video camera that feeds its images in real time to a computer or computer network, often via USB, ethernet, or Wi-Fi.

Modem  is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information.

Central Processing Unit (CPU) is responsible for interpreting and executing most of the commands from the computer's hardware and software.

Mouse is a small device that a computer user pushes across a desk surface in order to point to a place on a display screen and to select one or more actions to take from that position.

Keyboard is the primary text input device

Flash drive is a small storage device that can be used to transport files from one computer to another

Compact Disc-Read-Only Memory, a type of optical disk capable of storing large amounts of data -- up to 1GB, although the most common size is 650MB (megabytes). A single CD-ROM has the storage capacity of 700 floppy disks, enough memory to store about 300,000 text pages.

Microphone is an acoustic-to-electrictransducer or sensor that converts sound into an electrical signal.

Software
Adobe Flash Player  is a cross-platform, browser-based application runtime that provides uncompromised viewing of expressive applications, content, and videos across browsers and operating systems. 

Winamp  is a media player for Windows-based PCs and Android devices, written by Nullsoft, now a subsidiary of AOL.

Any Video Converter is an all-in-one video converting freeware with easy-to-use graphical interface, fast converting speed, and excellent video quality. It can convert almost all video formats including DivX, XviD, MOV, RM, RMVB, MPEG, VOB, DVD, WMV, and AVI to MPEG-4 movie format for PSP or other portable video device, MP4 player, or smartphones.

MiniLyrics  is a lyrics viewer and editor software written by Crintsoft LLC.

Visual FoxPro is a relational database with an object-oriented programming environment from Microsoft that comes with prewritten classes

Adobe Photoshop is a graphics editing program developed and published by Adobe Systems Incorporated.

VisualBasic is a computer language used to create an interactive program in a webpage. Microsoft Corp. Developed by the company

Windows Media Player (abbreviated WMP) is a media player and media library application developed by Microsoft that is used for playing audio, video and viewing images on personal computers running the Microsoft Windows operating system, as well as on Pocket PC and Windows Mobile-based devices.

Internet
Paypal  is an American-based global e-commerce business allowing payments and money transfers to be made through the Internet

IP Address  is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication

Link  is a reference to data that the reader can directly follow, or that is followed automatically.

Home Page  is the first Web page that is displayed after starting a Web browser like Netscape's Navigator or Microsoft's Internet Explorer.

Disconnect  is a condition that we can’t use the internet.

URL  is a specificcharacter string that constitutes a reference to an Internet resource.

WAP: Wireless Application Protocol, is a facility on a cell phone can be used to run certain applications that connect to the internet

Server  is a computer in the service of distribution and processing of information required by the Client. Servers are usually controlled by an admin.

Web Site is a set of related webpages containing content (media), including text,  video, music, audio, images, etc.

Social networking service is an online service, platform, or site that focuses on building and reflecting of social networks or social relations among people, who, for example, share interests and/or activities.

Online shopping is a form of electronic commerce whereby consumers directly buy goods or services from a seller over the Internet without an intermediary service.