Month: April 2017

  • Tugas Array dan Inheritance Kelompok 01

    Chapter 8 a. Define a class named Employee whose objects are records for employees. Derive this class from the class Person given in Listing 8.1. An employee record inherits an employee’s name from the class Person. In addition, an employee record contains an annual salary represented as a single value of type double, a hire…

  • Tugas Array dan Inheritance Kelompok 09

    KELOMPOK 9 KELAS SI4003 IRENE IRAWATY (1202160043) STEFI MUTIA SARI (1202160051) KARINA TARIGAN (1202164188) NO 2. a. Soal Create an interface MessageDecoder that has a single abstract method decode(cipherText), where cipherText is the message to be decoded. The method will return the decoded message. Modify the classes SubstitutionCipher and ShuffleCipher, as described in Exercises 16…

  • Tugas Array dan Inheritance Kelompok 09

    KELOMPOK 9 KELAS SI4003 IRENE IRAWATY (1202160043) STEFI MUTIA SARI (1202160051) KARINA TARIGAN (1202164188) NO 1. a. Soal No 11 Hlm 559 Suppose that we are selling boxes of candy for a fund-raiser. We have five kinds of candy to sell: Mints, Chocolates with Nuts, Chewy Chocolates, Dark Chocolate Creams, and Sugar-Free Suckers. We will…

  • Tugas Array dan Inheritance Kelompok 02

    Anggota Kelompok 2: Anisya Anggita F (1202160130) Ayuvira Kusuma M (1202164203) Vera Adelia (1202164114) Kelas : SI-40-02 BAB 8 (Inheritance) 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…

  • Tugas Array dan Inheritance Kelompok xx

    Anggota Kelompok 2: Anisya Anggita F (1202160130) Ayuvira Kusuma M (1202164203) Vera Adelia (1202164114) Kelas : SI-40-02 BAB 8 (Inheritance) 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…

  • Tugas Array dan Inheritance Kelompok 02

    Anggota Kelompok 2: Anisya Anggita F (1202160130) Ayuvira Kusuma M (1202164203) Vera Adelia (1202164114) Kelas : SI-40-02 BAB 7 (ARRAY) Soal : 2. Write a program in a class countFamiles that counts the number of families whose income is below a certain value. Rean an integer k from the keyboard and then create an array…

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