Month: April 2017

  • Tugas Array dan Inheritance Kelompok 5

    Kelompok 5 Tugas Pembuatan Program Nama Rifky Yudhistira Mohamad Fadel Al Farizi Farhan Yuzarli Kelas SI-4003 Soal : Write a program in a class Character Frequency that counts the number of times a digit appears in a telephone number. Your program should create an array of size 10 that will hold the count for each…

  • 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

    Hafidz Rizky (1202160107) Ryski Mardina (1202164139) Rafi Gema (1202164270) import java.util.Scanner; public class CountFamilies { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner input = new Scanner(System.in); int n, nilai[], ntt, ntr; System.out.print(“Masukkan Jumlah Keluarga berpendapatan minimum : “); n = input.nextInt(); nilai = new int[n]; for(int…

  • Tugas Array dan Inheritance Kelompok 12

    Kelompok 12 SI-40-02 Nama: Ben Hughie Rezanda (1202164286) Dennis Nigel Cunong (1202160179) Ganar Nugraha Mahendrasta (1202164090) Ian Dzillan Malik (1202160194) BAB 8 Soal: 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 12

    Kelompok 12 SI-40-02 Nama: Ben Hughie Rezanda (1202164286) Dennis Nigel Cunong (1202160179) Ganar Nugraha Mahendrasta (1202164090) Ian Dzillan Malik (1202160194) BAB 7 Soal: 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…

  • Tugas Array dan Inheritance kelompok 11

    SI-40-03 Kelompok 11: · Dickson Perdanakusuma (NIM 1202160303) · Fajar Sidiq Tazkiyyah (NIM 1202160196) · Hirzan Ghufran (NIM 1202164346) 1. Soal no.1 Define a Class named employee whose object 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.…

  • Tugas Array dan Inheritance Kelompok 11

    SI-40-03 Kelompok 11: · Dickson Perdanakusuma (NIM 1202160303) · Fajar Sidiq Tazkiyyah (NIM 1202160196) · Hirzan Ghufran (NIM 1202164346) Soal No.13 Write a method beyondLastEntry(position) for the class OneWayNoRepeatsList, as given in Listing 7.9, that returns true when position is beyond the last entry on the list. · Penjelasan: Membuat method beyondLastEntry(position) untuk class OneWayNoRepeatsList…

  • Tugas Array dan Inheritance Kelompok 16

    Kelompok 16 – SI-40-02 Anggota : Adityo Satrio Bagaskoro (1202160066) Alif Jafar Fatkhurrohman (1202164058) Akbar Anggit Pambudi (1202150026) Muhammad Fikri Makmur (1202164329) BAB 7 ARRAYS a. SOAL : Revise the class Timebook in Listing 7.14 to use an enumeration for the days of the week instead of named constants. b. PENJELASAN SOAL Merevisi class Timebook…

  • Tugas Array dan Inheritance Kelompok 16

    Kelompok 16 – SI-40-02 Anggota : Adityo Satrio Bagaskoro (1202160066) Alif Jafar Fatkhurrohman (1202164058) Akbar Anggit Pambudi (1202150026) Muhammad Fikri Makmur (1202164329) BAB 8 a. SOAL : Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the engine (type int), and owner (type Person given in Listing…

  • Tugas Array dan Inheritance Kelompok 16

    KELOMPOK 16 – SI4003 · RETNA TAQIYYAH ADIBA(1202160253) · TRY ASPUTRI P (1202163163) · FADHILAH AMANI A. A.( 1202164172) BAB 8 Referensi buku “Java An Introduction to Problem Solving and Programming”. NO 6 (HAL 649) a. Soal Create a base class called Vehicle that has the manufacturer’s name (type String), number of cylinders in the…