Langsung ke konten utama

Contoh Program Array dan Record

Buatlah program pascal  yang memiliki Array bernama DATA yang terdiri dari 6 indeks, dan Record terdiri dari variabel nama, NIM, dan nilai UTS. Di akhir program selain menampilkan data yang kita isi, juga menampilkan nilai rata-rata dari nilai UTS seluruh mahasiswa. (Proses pengisian Array tidak statis, tetapi diinput oleh user saat dirunning).

Sebagai contoh  tabel diisi oleh user sebagai berikut:

Adi
1101110001
88
Dira
1101110002
100
Asep
1101110003
90
Asep Surasep
1101110004
85
Ice Juice
1101110010
70
Tine Sutine
1101110021
99

Maka akan tampil :

Nama mahasiswa 1 : Adi
NIM : 1101110001
Nilai UTS : 88

Nama mahasiswa 2 :  Dira
NIM : 1101110002
Nilai UTS : 100

Nama mahasiswa 3 :  Asep
NIM : 1101110003
Nilai UTS : 90

Nama mahasiswa 4 :  Asep Surasep
NIM :  1101110004
Nilai UTS : 85

Nama mahasiswa 5 : Ice Juice
NIM : 1101110010
Nilai UTS : 70

Nama mahasiswa 6 : Tine Sutine
NIM :  1101110021
Nilai UTS : 99
Nilai rata-rata untuk mata kuliah Alpro adalah 88,67




Komentar

Postingan populer dari blog ini

sel tumbuhan dilihat melalui mikroskop

pengamatan ini dilakukan di SMA NEGERI 15 BANDUNG. oleh : Dwi Mutiara L Eprima Agnitasari Gusty Aditya A M Irfan Faisal Silmi Nazmi H dengan bimbingan guru biologi: Ibu Liza.

Kisah Nabi Isa a.s - Power Point

Presented by Gusty Aditya Arrazaq Dwi Mutiara Lestari M Irfan Faisal Silmi Nazmi H Candra Setiawan Wildan Paksi P Guru Pembimbing : Ibu Nining SMA NEGERI 15 BANDUNG JL. Sarimanis I http://www.sman15bdg.net/

Junior Masterchef Australia

Junior MasterChef Australia  is an Australian competitive cooking game show. It is a spin-off of  MasterChef Australia , itself an adaptation of the Britishshow  MasterChef , and features contestants aged 8 to 12. The first season of the show began production in July 2010 and included 50 contestants. Over 5,000 children from around the nation auditioned for the series. Gary Mehigan, George Calombaris and Matt Preston returned alongside new judge, Anna Gare. Callum Hann has also been involved in the series. In contrast to prior series,  Junior MasterChef Australia  is produced by Shine Australia. The promo was seen during the final episode of MasterChef Australia (Season 2). The series premiered on Sunday, 12 September 2010. Changes In the Junior series, contestants will not be eliminated every week, though four will be eliminated at a time once the top 12 is decided. Every elimina...