Author: Irfan Darmawan

  • Tugas Array dan Enhiretance Kelompok 11

    Hanif Ramadhan Abdillah = 1202160034 Fahri Hamzalah = 1202160236 Ilham Satria = 1202164345 Muhammad Farhan Z = 1202160321 Output: Main Code: package sadkjdsfasd; import java.util.Scanner; /** * * @author hramadhaan */ public class ssdsd { public static final int MAX_SIZE = 3; //Assumed > 0 public static void main(String[] args) { OneWayNoRepeatsList toDoList = new…

  • Tugas Array Dan Inheritance Kelompok 14

    Kelas : SI-40-03 Nama Anggota 14 : 1. Mohamad Azka Julda Suparman (1202164204) 2. Fadlil Muhammad (1202160019) 3. Briliant Marista Zakka Billy (1202160338) 4. Soal : Define a class named Doctor whose objects are records for a clinic doctors. Derive this class from the class from the class person given in listing 8.1 A Doctor…

  • Tugas Array Dan Inheritance Kelompok 14

    Kelas : SI-40-03 Nama Anggota 14 : 1. Mohamad Azka Julda Suparman (1202164204) 2. Fadlil Muhammad (1202160019) 3. Briliant Marista Zakka Billy (1202160338) 16. Soal : Overload the method selectionShort in Listing 7.10 so that an array whose indiced range from first to last, where 0 <= first <= last, and last is less than…

  • Tugas Array dan Inheritance Kelompok 13

    1. Soal 03. Define two derived classes of the abstract class ShapeBase in Listing 8.19. Your two classes will Your two classes will be called RightArrow and LeftArrow. These classes will be like the Classes Rectangle and Triangle, but they will draw arrows that point right and left, respectively. 2. Penjelasan Soal Di soal ini…

  • Revisi Tugas Inhertance kelompok 15_SI4003

    KELOMPOK 15 SI-40-03 AULIA IRSYAD (1202160155) CHANDRA ADHITYA (12021160229) FEBRIAN RIZKY(1202160262) MUHAMAD FARHAN ADITYA (1202164027) Nomor 5.(hal:648 Inhertance) A. Defines two classes Patient and Billing, whose objects are records for a clinic. Derive Patient from the class Person given in listing . Patient record has the patient’s name (defined in the class Person) and identification…

  • Tugas Array dan Inheritance Kelompok 15

    KELOMPOK 15 SI-40-02Nama : 1. M Luthfi Ridhwan (1202160353) 2. Zenitho Madyagantang Haki (1202162310) 3. Muhammad Ishak Syukri (1202164371) 4. Hafiz Afandi (1202150030) BAB 7 Array 17. Revise the method selectionSort that appears in Listing 7.10 so that it calls the method described in the previous exercise Penjelasan soal : 17. Perbaikilah method selectionSort yang…

  • Tugas Array dan Inheritance Kelompok 12

    Kelompok 12 SI-40-02 Nama: Ben Hughie Rezanda (1202164286) Ian Dzillan Malik (1202160194) BAB 8 Soal: 2. Define a class called Diamond that is derived from either the class Shapebasics (Listing 8.12) or the abstract class SpabeBase (Listing 8.19). A diamond has the same sort of top half as a Triangle object, and its bottom half…

  • Tugas Array dan Inheritance Kelompok 12

    Kelompok 12 SI-40-02 Nama: Ben Hughie Rezanda (1202164286) Ian Dzillan Malik (1202160194) BAB 7 Soal: 14. Revise the class OneWayNoRepeatsList, as given in Listing 7.9, so that is it allocates an extra element in the array entry and ignores entry [0], as suggested earlier near the end of the section entitled “More About Array Indices”.…

  • TUGAS ARRAY DAN INHERITANCE KELOMPOK 13 SI4002

    ARRAY No.15. Write a static method for selection sort that will sort an array of charracters ​ Disini kita menggunakan Scanner untuk menerima jumlah inputan karakter/bilangan Array yang akan dimasukkan oleh Pengguna ketika menjalankan program tersebut. System.out.println("\nMasukkan " + jumlah+" Buah Bilangan Integer"); System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"); for(a=0; a<jumlah;a++) { System.out.print("Bilangan Ke- " + (a+1)+" ="); array[a]=scan.nextInt(); }…

  • TUGAS ARRAY DAN INHERITANCE KELOMPOK 13 SI4002

    INHERITANCE Define two derived classes of the abstract class ShapeBase in Listing 8.19. Your two classes will Your two classes will be called RightArrow and LeftArrow. These classes will be like the Classes Rectangle and Triangle, but they will draw arrows that point right and left, respectively class Leftarrow { public static void main(String[] args)…