Category: Mahasiswa

  • 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)…

  • Tugas Array dan Inheritance Kelompok 8

    Soal (Nomor 8 hal 648) Create a new class called Dog that is derived from the Pet class given in listing 6.1 of chapter 6. The new class has the additional attributes of breed (type String) and boosterShot (type boolean), which is true if the pet has had its booster shot and false if not.…

  • Tugas Array dan Enhiretance Kelompok 11

    Hanif Ramadhan Abdillah 1202160034 Fahri Hamzalah = 1202160236 Ilham Satria = 1202164345 Muhammad Farhan Z = 1202160321 No.1 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 15

    TUGAS ARRAY KELOMPOK 15 Soal Define two classes, Patient and Billing, whose objects are records for a clinic. Derive Patient from the class Person given in Listing 8.1. A Patient record has the patient’s name (defined in the class Person) and identification number (use the type String). A Billing object will contain a Patient object…